The reason is actually rather interesting. There are two sensors, one sensitive to visible plus infrared light, the other just to infrared. The reading from the infrared sensor gets subtracted from the broad spectrum sensor to give the value of visible light.
Unfortunately due to manufacturing tolerances it turns out that at very low light levels the broad spectrum will be zero, but the infrared will sometimes be 1. 0 - 1 is a negative number, which when interpreted as an unsigned integer by the code comes out as a large positive number, thus the code thinks its VERY bright in the room! It was a simple fix to make sure all negative numbers got set to zero. John S. -- JohnSwenson ------------------------------------------------------------------------ JohnSwenson's Profile: http://forums.slimdevices.com/member.php?userid=5974 View this thread: http://forums.slimdevices.com/showthread.php?t=80964 _______________________________________________ Touch mailing list Touch@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/touch