PDA

View Full Version : reading light sensor values




davethewave
Aug 21, 2007, 03:30 AM
hi all folks!
i wonder if there is a way to read values from light sensor incorporated on some :apple:mac and :apple:portables. i mean that one that control the backlighting of keyboard on mbpro and that one that control the brightness of led while the imac is asleep (not the last imac though).
some suggestions?
thanks in advance
Davide



AaronX
Oct 25, 2009, 06:19 PM
As above, I was wondering if there's any program to measure ambient light using the light sensor, like there's a seismometer using the HDD shock meter.

xStep
Oct 26, 2009, 03:29 PM
The only reference I could find to reading the light sensor is this post titled "A gentler kind of smack (http://blog.medallia.com/2006/06/shadowbook.html)". Apparently there is source code somewhere according that page.