mac-angle: Open-source C++ library for reading MacBook lid angle sensor data
By
ufoym
8mo ago· 7 min readenCode
100/100
Golden Brown
Bagelometer↗
Slow-proofed and worth the wait. Worth its weight in flour.
Score100Typepress releaseSentimentneutral
Summary
A C++ library called 'mac-angle' that provides direct access to MacBook lid angle sensor data through reverse engineering of HID device specifications. It supports MacBook Pro 16-inch (2019) and newer models, including M2/M3/M4 series, offering real-time angle measurements (0-360 degrees) with a modern C++14 implementation, exception handling, and CMake build system support.
Key quotes
· 4 pulledA 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
C++ library for reading MacBook lid angle sensor data - ufoym/mac-angle
