pico-sdk
pico-sdk copied to clipboard
Some useful macros for ADC module
Implementation of 2 simple values related to ADC (reference voltage and max read value) that make calculations of actual voltage readings easier.
Also, since there is a linear relationship between ADC channels and GPIO pins connected to ADC, a simple conversion macro can be added to convert (redefined) GPIO pins number from any configuration list to an ADC channel related to them.
Fixes #1512