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