tdrobotica

Soporte nivel J

Dec 18th, 2025
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from machine import Pin
  2. from time import sleep
  3.  
  4. pin12 = Pin(12, Pin.OUT)
  5. pin13 = Pin(13, Pin.OUT)
  6.  
  7. while(1):
  8.     pin12.on()
  9.     pin13.off()
  10.     sleep(2)
  11.     pin12.off()
  12.     pin13.on()
  13.     sleep(2)
  14.    
Advertisement
Add Comment
Please, Sign In to add comment