C++ Library for Accessing MacBook Lid Angle Sensor
2025-09-08
This open-source project provides a C++ library for reading MacBook lid angle sensor data. By reverse-engineering HID device specifications, the library offers real-time, precise angle measurements (0-360 degrees), a high-performance, easy-to-use API, and comprehensive exception handling. It supports 16-inch MacBook Pros from 2019 and later, and M-series MacBook Pros. This library is a C++ port and extension of Sam Gold's original Objective-C work.
Development