digital_read

digital_read#

method

BaseArduinoDriver.digital_read(pin: int) int[source]#

Tell the arduino to read a value from a digital pin.

Parameters:
pinint

Integer that represents the digital in pin number on an arduino

Returns:
int

The value read by the digital pin, 0 (LOW) or 1 (HIGH)