Ambient Light Sensor

From WebOS Internals
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Showing up as an input is something identified as a temt6200_light.

That's probably something doing an a2d conversion of Vishay Semiconductors TEMT 6200 ambient light sensor

You can read the ambient light value from /sys/class/input/input4/result

Putting the pre in complete darkness: <source lang="text"> root@castle:/sys/class/input/input4# cat result 4 </source>

Exposing it to low light levels <source lang="text"> root@castle:/sys/class/input/input4# cat result 11 </source>