print("Hello, ESP32!")
from machine import Pin
import time
led1=Pin(21,Pin.OUT)
led2=Pin(22,Pin.OUT)
led3=Pin(23,Pin.OUT)
buz=Pin(18,Pin.OUT)
BTN=Pin(19,Pin.IN)
while True:
if BTN.value()==1:
led1.value(1)
led2.value(0)
led3.value(0)
time.sleep(0.5)
buz.value(1)
time.sleep(1)
led1.value(1)
led2.value(1)
led3.value(0)
time.sleep(0.5)
buz.value(1)
sleep(1)
led1.value(1)
led2.value(1)
led3.value(1)
time.sleep(0.5)
buz.value(0)
time.sleep(1)
led1.value(0)
led2.value(0)
led3.value(0)
buz.value(0)
sleep(1)
else:
led1.value(0)
led2.value(0)
led3.value(0)
buz.value(0)