from machine import Pin
from time import sleep
switch_s1 = Pin(25, Pin.IN, Pin.PULL_UP)
switch_s2 = Pin(26, Pin.IN, Pin.PULL_UP)
switch_s3 = Pin(27, Pin.IN, Pin.PULL_UP)
led_D1 = Pin(18, Pin.OUT)
led_D2 = Pin(19, Pin.OUT)
while True:
s1 = switch_s1.value()
s2 = switch_s2.value()
s3 = switch_s3.value()
led_D1.off()
led_D2.off()
if s3 == 1 and s2 == 1 and s1 == 0:
led_D1.on()
elif s3 == 0 and s2 == 1 and s1 == 0:
led_D2.on()
sleep(0.05)