I'm reading chunks of data using Waveform, which returns UInt values.
There are accompanying single measurements via analogRead. Unfortunately analogRead values need to be converted from Float to Integer to be comparable with the Waveform data. Is there a way to make analogRead return integers (may be a flag)?
Any other reliable, though probably hacky way to get ADC data fast and as int?
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.
I'm reading chunks of data using Waveform, which returns UInt values.
There are accompanying single measurements via analogRead. Unfortunately analogRead values need to be converted from Float to Integer to be comparable with the Waveform data. Is there a way to make analogRead return integers (may be a flag)?
Any other reliable, though probably hacky way to get ADC data fast and as int?