You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("Hello World")
importtimeimportboardimportdigitalio# Set up pin 20 as an outputpin20=digitalio.DigitalInOut(board.GP20)
pin20.direction=digitalio.Direction.OUTPUT# Set up pin 19 as an outputpin19=digitalio.DigitalInOut(board.GP19)
pin19.direction=digitalio.Direction.OUTPUTdefturn_on(pin):
pin.value=Truedefturn_off(pin):
pin.value=Falsedefset(is_on, delay):
ifis_on:
print("On")
turn_on(pin20)
turn_on(pin19)
else:
print("Off")
turn_off(pin20)
turn_off(pin19)
time.sleep(delay)
# Blink the pins in a loopwhileTrue:
delay=3delay=1delay=0.08delay=0.5set(True, delay)
set(False, delay)
The text was updated successfully, but these errors were encountered:
https://youtu.be/EmjB1322PQA
EloiStree/HelloInput#282
The text was updated successfully, but these errors were encountered: