Did you know your MacBook has a sensor that knows the exact angle of the screen hinge?

It’s not exposed as a public API, but I figured out a way to read it and make it sound like an old wooden door.

Source code and a downloadable app to try it yourself: github.com/samhenrigold/LidAng

3
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/samhenrigold/statuses/115159295473019599 on your instance and quote it. (Note that quoting is not supported in Mastodon.)