verylittlewire.device.Device.pinMode

Device.pinMode(pin: int, mode: int) None[source]

Sets GPIO pin as input or output.

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

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

Return type

None

USB CTR

13, 14