reading light sensor values

Discussion in 'Mac Programming' started by davethewave, Aug 21, 2007.

  1. macrumors member

    Joined:
    Jul 30, 2007
    Location:
    Trieste, Italy
    #1
    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
     
  2. macrumors member

    Joined:
    Jul 29, 2009
    Location:
    Australia
    #2
    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.
     
  3. macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #3
    The only reference I could find to reading the light sensor is this post titled "A gentler kind of smack". Apparently there is source code somewhere according that page.
     

Share This Page