Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from machine import Pin
- import time
- # Initialize the LEDs
- led1 = Pin(13, Pin.OUT)
- led2 = Pin(14, Pin.OUT)
- led3 = Pin(15, Pin.OUT) # Add more LEDs as needed
- # Create a simple light pattern
- while True:
- led1.on()
- time.sleep(0.5)
- led1.off()
- led2.on()
- time.sleep(0.5)
- led2.off()
- led3.on()
- time.sleep(0.5)
- led3.off()
- time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement