from machine import Pin
import time
button = Pin(1, Pin.IN, Pin.PULL_DOWN)
pin_10 = Pin(10, Pin.OUT)
pin_14 = Pin(14, Pin.OUT)
while True:
if not button.value():
pin_10.toggle()
pin_14.toggle()
time.sleep(0.5)
from machine import Pin
import time
button = Pin(1, Pin.IN, Pin.PULL_DOWN)
pin_10 = Pin(10, Pin.OUT)
pin_14 = Pin(14, Pin.OUT)
while True:
if not button.value():
pin_10.toggle()
pin_14.toggle()
time.sleep(0.5)