Trying to get my head around using the device tree for accessing an ADC channel on the Feather. Getting inspiration from this Zephyr 101 video, this sample, this post and I get nowhere near my goal. There seems to be a couple of ways of doing this and I’m unsure which one to pursue with. Does anyone have a working sample (including overlay, conf and other required files as needed) or come clues for reading ADC channels on the nrf9160 Feather? Many thanks!
Reading ADC on nrf9160 Feather
@Martin_CDWare have you looked at the vanilla samples?
https://docs.zephyrproject.org/latest/hardware/peripherals/adc.html
In particular the driver samples for the ADC should be helpful:
https://docs.zephyrproject.org/latest/samples/drivers/adc/README.html
There are some nRF overlays in the boards folder so it should get you going.
The battery sample also reads the ADC but there are some abstractions that add complexity.
jaredwolff Thank you Jared, looks like a valid starting point indeed!