toggle

AAPL Stock: 123.38 ( + 0.61 )

Printed from http://www.macnn.com

Details on Apple's ambient light sensor

updated 07:20 am EDT, Tue June 20, 2006

Apple ambient light sensor

Mac developer Amit Singh has posted details on Apple's ambient light sensor found on Apple's MacBook Pros (and some newer PowerBooks). Although Apple has not provided any details on the API for the light sensors, which are used to adjust the brightness on the notebook's illuminated keyboard, Singh has offered details on its operation and some example code. In particular, the developer offers details on retrieving readings from the ambient light sensor, retrieving and setting the LED brightness value of the backlit keyboard, and initiating an LED fade to a target brightness value over a specified duration. Singh says he has tested all of the code on a MacBook Pro, but that it may work on some newer PowerBooks as well. In addition, Singh offers cource for retrieving and setting a display's brightness, although he says has not yet tested it. Singh was the first to offer details on Apple's Sudden Motion Sensor, which lead to the development of an application interface that allowed other developers to develop innovative uses for Apple's notebook sensor, including the SmackBook software, which produces a horizontal transition to a new desktop when a user taps ("smacks") the notebook/screen on either side.




by MacNN Staff

POST TOOLS:

TAGS :

toggle

Comments

Comments are closed.

toggle

Network Headlines

Follow us on Facebook

toggle

Most Popular

Advertisement

Recent Reviews

15-inch MacBook Pro with Force Touch

Apple's 15-inch Retina MacBook Pro continues to be a popular notebook with professional users and prosumers looking for the ultimate ...

Typo keyboard for iPad

Following numerous legal shenanigans between Typo -- a company founded in part by Ryan Seacrest -- and the clear object of his physica ...

Entry-level 27-inch Retina iMac

The 27-inch Apple iMac with 5K Retina display is already one of the best value-for-money Macs that Apple has ever released. It was som ...

toggle

Most Commented