Skip to content

Digital Output Methods

set_pin_mode_digital_output

  def set_pin_mode_digital_output(self, pin_number)

    Set a pin as a digital output pin.

    :param pin_number: pico pin number

NOTE: This method must be called before calling digital_write.

digital_write

 def digital_write(self, pin, value)

    Set the specified pin to the specified value.

    :param pin: pico pin number

    :param value: pin value (1 or 0)

Example: blink.py



Copyright (C) 2021 Alan Yorinks. All Rights Reserved.