from time import sleep
from machine import Pin
switch = Pin(17,Pin.IN,Pin.PULL_UP)
led=Pin(15,Pin.OUT)
while True:
state=switch.value()
print(state)
led.value(state)Loading
esp32-s3-devkitc-1
esp32-s3-devkitc-1
from time import sleep
from machine import Pin
switch = Pin(17,Pin.IN,Pin.PULL_UP)
led=Pin(15,Pin.OUT)
while True:
state=switch.value()
print(state)
led.value(state)