To read from a pin call Read and pass the function a pin from the analog Pin enum.
Public Types
-
enum Pin
Values:
Public Functions
-
Analog() = default
-
mockable ~Analog() = default
-
mockable void init ()
Initializes the ADC and connects the configured analog pins to it.
-
mockable uint16_t read (Analog::Pin pin) const
Reads voltage across the specified pin. Units in mV.