#import libraries
from machine import Pin
from time import sleep
#led1 Pin2 and led2 Pin13 as output
led1 =Pin(2, Pin.OUT)
led2 =Pin(13,Pin.OUT)
#set the condition
led1_hidup = True
led2_hidup = True
#check the condition for led1
if led1_hidup == True:
led1.on()
sleep(2.0)
led1.off()
sleep(2.0)
#check the condition for led2
elif led2_hidup == True:
led2.on()
sleep(2.0)
led2.off()
sleep(2.0)
print("stop") #terminal
# CASE 1 - Both led OFF
# CASE 2 - Led1 (yellow) On , Led2 (red) Off
# CASE 3 - Led1 (yellow) Off , Led2 (red) On
# CASE 4 - Led1 (yellow) On , Led2 (red) Off
# False