While the signal does move around, I think one of the reported values (.raw?) does have some filtering to smooth out the big jerks caused by the LED power changing over time. If that's run through a filter to remove the low frequency parts it should be reasonably good.
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.
While the signal does move around, I think one of the reported values (
.raw
?) does have some filtering to smooth out the big jerks caused by the LED power changing over time. If that's run through a filter to remove the low frequency parts it should be reasonably good.