#3.Pattern display using 6-leds
from machine import Pin
from time import sleep
led2=Pin(12,Pin.OUT)
led3=Pin(14,Pin.OUT)
led4=Pin(17,Pin.OUT)
led5=Pin(18,Pin.OUT)
led6=Pin(19,Pin.OUT)
led7=Pin(21,Pin.OUT)
count=5
while count>0:
led2.on()
led3.on()
led4.on()
sleep(1)
led2.off()
led3.off()
led4.off()
led5.on()
led6.on()
led7.on()
sleep(3)
led5.off()
led6.off()
led7.off()
count=count-1