I'm not 100% sure I understand the question?
For single reads, analogRead is easiest. For multiple reads you could use Waveform and I think that should be slightly faster.
You can also configure the nRF52 hardware to just take readings automatically which is probably the fastest - see https://www.espruino.com/NRF52LL#read-a-buffer-of-data-from-the-adc
© Espruino, powered by microcosm.
Report a problem