lancaster-university / codal-nrf52

MIT License
3 stars 15 forks source link

Alternative NRF52ADC support for NRF52Pin::getAnalogue #24

Closed martinwork closed 3 years ago

martinwork commented 3 years ago

To fix https://github.com/lancaster-university/codal-microbit-v2/issues/81 As suggested by @finneyj, avoids stopping the continuous ADC. Enabled by #define NRF52ADC_RECENT_SAMPLE 1 in NRF52ADC.h

WORK IN PROGRESS... I have added extra functions, which perhaps should be replacements for existing ones.

martinwork commented 3 years ago

There appears to be a memory leak. After testing over night... panic 020.