Experimenting With Light On Apple Notebook Computers
Since I keep receiving queries on accessing the light-related data associated with the ambient light sensor and the backlit keyboard on Apple notebook computers, here is a more detailed discussion, along with source code, on performing the following operations.
- Retrieving readings from the ambient light sensor
- Retrieving and setting the LED brightness value of the backlit keyboard
- Initiating an LED fade to a target brightness value over a specified duration
- Retrieving and setting a display’s brightness