verylittlewire.device.Device.digitalRead

Device.digitalRead(pin: int) int[source]

Returns the current digital level state of the selected GPIO.

Parameters

pin (int) – Mandatory “pin” number that have to read and can only be a well known number of: PIN1, PIN2, PIN3, or PIN4

Returns

Digital level state of given “pin” and can only be a value of: HIGH, or LOW

Return type

int

USB CTR

20