from machine import Pin
from utime import sleep
print("Hello, ESP32!")
switch1 = Pin(35, Pin.IN, Pin.PULL_UP)
led = Pin(15, Pin.OUT)
switch11 = Pin(35, Pin.IN, Pin.PULL_UP)
led1 = Pin(2, Pin.OUT)
while True:
logic_state = switch1.value()
if logic_state == True:
led.off()
else:
led.on()
logic_state1 = switch11.value()
if logic_state1 == True:
led1.off()
else:
led1.on()