verylittlewire.device.Device.internalPullup

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

Sets the state of the internal pull-up resistor for the selected GPIO pin.

Call this function after you assign the GPIO pin as an input. Otherwise this method has no effects.

Parameters
  • pin (int) – Mandatory “pin” number that have to setup 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: ENABLE, or DISABLE

Return type

None

USB CTR

18, 19