import machine LED = machine.Pin(2, machine.Pin.OUT) LED.low()
import board import digitalio LED = digitalio.DigitalInOut(board.D13) LED.direction = digitalio.Direction.OUTPUT LED.value = FalseIn both examples, the Python machine.Pin function is used to create an object with a specific pin number and mode (input or output). Then, the .low() method is used to set the pin to the LOW or OFF state. This is useful for turning off LEDS or other components connected to the board. The package libraries used were Micropython and CircuitPython respectively.