Advertisement
hwthinker

01-Blinky

Aug 1st, 2022
1,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import time
  2. import board
  3. import digitalio
  4.  
  5. led = digitalio.DigitalInOut(board.LED)
  6. led.direction = digitalio.Direction.OUTPUT
  7.  
  8. while True:
  9.     led.value = not led.value
  10.     time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement