is it possible to make for loop with some delay? I want to make an average sum for first few readings from ADS but for loop without delay between following readings pico return only 0 value,
when with the same code but analogRead function instead of ads read it works fine, maybe ADS need some time to send another value and for loop in espruino is to fast? some debounce kind operation is necessary?
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.
is it possible to make for loop with some delay? I want to make an average sum for first few readings from ADS but for loop without delay between following readings pico return only 0 value,
when with the same code but analogRead function instead of ads read it works fine, maybe ADS need some time to send another value and for loop in espruino is to fast? some debounce kind operation is necessary?