Mark Zachmann
Feb 5, 2021

Hi,

The main routine here is called AnalogRead and you pass in the channel you want to read. On the nrf52840 that I’m using each channel corresponds to a specific hardware pin (dependent on the packaging of the chip) so there’s no need to state the pin-pairing associated with the channel.

This is sample code and only lets you define each channel style once — like a typical application.

Mark Zachmann
Mark Zachmann

Written by Mark Zachmann

Entrepreneur, software architect, electrical engineer. Ex-academic.

No responses yet