zhexo

RPi Pico W blink

Dec 21st, 2023
1,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | Software | 0 0
  1. import machine
  2. import time
  3.  
  4. led = machine.Pin('LED', machine.Pin.OUT) #LED Pin
  5.  
  6. while True:
  7.     led.value(True)   #ukljuci LED
  8.     time.sleep(1)     #pauziraj 1 sekundu
  9.     led.value(False)  #iskljuci LED
  10.     time.sleep(1)     #pauziraj 1 sekundu
  11.  
Tags: micropython
Advertisement
Add Comment
Please, Sign In to add comment