I did not actually time the Waveform capture, so I would need to repeat the test to know the actual capture rate. The AnalogRead spent 0.0196s to capture 100 samples.
Edit: I tried to repeat the Waveform capture and came up with different time values depending on how many data points I captured. at 200 points it seemed that the sample rate was around 42kHz, and if I increased the number of samples it seemed that the rate increased. However, I did not have the time to make real time measurements, I relied on getTime() readings before and after the capture.
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 did not actually time the Waveform capture, so I would need to repeat the test to know the actual capture rate. The AnalogRead spent 0.0196s to capture 100 samples.
Edit: I tried to repeat the Waveform capture and came up with different time values depending on how many data points I captured. at 200 points it seemed that the sample rate was around 42kHz, and if I increased the number of samples it seemed that the rate increased. However, I did not have the time to make real time measurements, I relied on getTime() readings before and after the capture.