Gordon, I'll checked that, values are still floating :(
maybe is possible to use average example code you wrote, and set something like permanent refresh of function which will count analog Value again and again from the start?
average function was very accurate on the beginning but not after a while, maybe is should reset old value and start with new one every let say 1000 ms?
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.
Gordon, I'll checked that, values are still floating :(
maybe is possible to use average example code you wrote, and set something like permanent refresh of function which will count analog Value again and again from the start?
average function was very accurate on the beginning but not after a while, maybe is should reset old value and start with new one every let say 1000 ms?