Advertisement
tdrobotica

Proyecto Hola mundo

Jan 6th, 2022
2,121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. from machine import Pin
  2. import time    
  3.  
  4. led1 = Pin(12, Pin.OUT) #Definir la variable LED1 como objeto ligado al Pin 12 como salida digital
  5.  
  6. while (True):
  7.         led1.value(1)
  8.         time.sleep(1)
  9.         led1.value(0)
  10.         time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement