Get the latest tech news

Show HN: C++ library for reading MacBook lid angle sensor data


C++ library for reading MacBook lid angle sensor data - ufoym/mac-angle

A C++ library for reading MacBook lid angle sensor data, based on reverse engineering of HID device specifications. πŸ” Direct access to MacBook's built-in lid angle sensor πŸ“ Real-time precise angle measurements (0-360 degree range) ⚑ High-performance C++ implementation with modern C++14 standard support πŸ›‘οΈ Comprehensive exception handling mechanism πŸ”§ Clean and easy-to-use API interface πŸ“¦ CMake build system support We extend our sincere gratitude to Sam for his pioneering work in reverse engineering the MacBook lid angle sensor HID interface and making this functionality accessible to developers.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of MacBook

MacBook

Photo of C++ library

C++ library

Related news:

News photo

The MacBook has a sensor that knows the exact angle of the screen hinge

News photo

Is this the most promising Chromebook yet? This Acer has specs that almost rival my MacBook

News photo

I gave iPadOS 26 a full summer trial - my verdict on using it as a MacBook alternative