verylittlewire.device.Device.digitalWrite

Device.digitalWrite(pin: int, state: int) None[source]

Writes a digital high or low to the selected GPIO pin.

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

  • state (int) – Mandatory “state” identifyer that have to use for the given “pin” and can only be a value of: HIGH, or LOW

Return type

None

USB CTR

18, 19