Looking at your other post with the low battery level, I wonder whether this could be related to that.
A higher polling rate will draw much more power from the battery (at 1000Hz you're looking at 4mA probably), which will drop the battery voltage, which will in turn cause the readings from the ADC to change.
If that's correct then a newer battery would make the situation better, but I could also see if I could add some kind of adjustment for battery voltage to the Puck.light() function.
Having said that, reading the light sensor that often is going to drain your battery extremely quickly - so I wouldn't recommend doing it apart from for testing purposes :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Looking at your other post with the low battery level, I wonder whether this could be related to that.
A higher polling rate will draw much more power from the battery (at 1000Hz you're looking at 4mA probably), which will drop the battery voltage, which will in turn cause the readings from the ADC to change.
If that's correct then a newer battery would make the situation better, but I could also see if I could add some kind of adjustment for battery voltage to the
Puck.light()
function.Having said that, reading the light sensor that often is going to drain your battery extremely quickly - so I wouldn't recommend doing it apart from for testing purposes :)