from machine import Pin
from utime import sleep
print("Hello, ESP32!")
botao = Pin (4, Pin.IN, Pin.PULL_UP)
led = Pin (15, Pin.OUT)
while True:
if botao.value() == 0:
led.on()
else:
led.off()
from machine import Pin
from utime import sleep
print("Hello, ESP32!")
botao = Pin (4, Pin.IN, Pin.PULL_UP)
led = Pin (15, Pin.OUT)
while True:
if botao.value() == 0:
led.on()
else:
led.off()