from machine import Pin, PWM, ADC
from time import sleep
s1 = Pin(14, Pin.IN, Pin.PULL_UP)
s2 = Pin(27, Pin.IN, Pin.PULL_UP)
s3 = Pin(26, Pin.IN, Pin.PULL_UP)
s4 = Pin(25, Pin.IN, Pin.PULL_UP)
s5 = Pin(33, Pin.IN, Pin.PULL_UP)
led = Pin(15, Pin.OUT)
led1 = Pin(17, Pin.OUT)
led2 = Pin(21, Pin.OUT)
###################################################################################
while True:
if s1.value() == 1 and s2.value() == 1:
led.on()
elif s1.value() == 0 and s2.value() == 0:
led.off()
###################################################################################
elif s3.value() == 1 and s4.value() == 1 and s1.value() == 0:
sleep(.1)
###################################################################################
if s1.value() == 1 and s2.value() == 1 and s3.value() == 1 and s4.value() == 1 and s5.value() == 1:
led.on()
led1.on()
led2.on()
sleep(.25)
if s1.value() == 1 and s2.value() == 1 and s3.value() == 1 and s4.value() == 1 and s5.value() == 1:
led.off()
led1.off()
led2.off()
sleep(.75)