Hi all, Since the 1.8.0 adopted a new version of the nrfx driver. The old ADC code is not working.
I wonder if there is a tested working ADC example available for nrf52 with version 1.8.0? I have been working on this for almost two weeks to get it work but with no success. The ADC always gives a value of 0. Can anyone help update the example code in the tutorial on the official website https://mynewt.apache.org/latest/tutorials/sensors/nrf52_adc.html Or share a working code with me? <https://mynewt.apache.org/latest/tutorials/sensors/nrf52_adc.html>Regarding nrf52 adc, my specific question is: in the following configuration structure, what should I input for cc.pin ? I input NRF_SAADC_INPUT_AIN1, but it won't work. struct adc_chan_cfg cc = { .pin = NRF_SAADC_INPUT_AIN1, .differential = false, .pin_negative = NRF_SAADC_INPUT_DISABLED, .gain = ADC_GAIN1_6, .reference = ADC_REFERENCE_INTERNAL }; Thank you very much! -- Mo