analog_read

analog_read#

method

BaseArduinoDriver.analog_read(pin: int) float[source]#

Tell the arduino to read a value from an analog pin.

Parameters:
pinint

Integer that represents the analog in pin number on an arduino

Returns:
float

The value read by the analog pin (0 - 1.0)