from machine import Pin
from utime import sleep
import utime
led_red = Pin(0, Pin.OUT)
led_green = Pin(1, Pin.OUT)
led_yellow = Pin(2, Pin.OUT)
led_blue = Pin(3, Pin.OUT)
led_white = Pin(5, Pin.OUT)
if __name__ == '__main__':
while True:
led_red.value(1)
led_green.value(0)
led_yellow.value(0)
led_blue.value(0)
led_white.value(0)
utime.sleep_ms(1000)
led_red.value(0)
led_green.value(1)
led_yellow.value(0)
led_blue.value(0)
led_white.value(0)
utime.sleep_ms(1000)
led_red.value(0)
led_green.value(0)
led_yellow.value(1)
led_blue.value(0)
led_white.value(0)
utime.sleep_ms(1000)
led_red.value(0)
led_green.value(0)
led_yellow.value(0)
led_blue.value(1)
led_white.value(0)
utime.sleep_ms(1000)
led_red.value(0)
led_green.value(0)
led_yellow.value(0)
led_blue.value(0)
led_white.value(1)
utime.sleep_ms(1000)
from machine import Pin
from utime import sleep
import utime
led_red = Pin(0, Pin.OUT)
led_green = Pin(1, Pin.OUT)
led_yellow = Pin(2, Pin.OUT)
led_blue = Pin(3, Pin.OUT)
led_white = Pin(4, Pin.OUT)
if __name__ == '__main__':
while True:
led_red.value(1)
led_green.value(0)
led_yellow.value(0)
led_blue.value(0)
led_white.value(0)
utime.sleep_ms(100)
led_red.value(0)
led_green.value(1)
led_yellow.value(0)
led_blue.value(0)
led_white.value(0)
utime.sleep_ms(100)
led_red.value(0)
led_green.value(0)
led_yellow.value(1)
led_blue.value(0)
led_white.value(0)
utime.sleep_ms(100)
led_red.value(0)
led_green.value(0)
led_yellow.value(0)
led_blue.value(1)
led_white.value(0)
utime.sleep_ms(100)
led_red.value(0)
led_green.value(0)
led_yellow.value(0)
led_blue.value(0)
led_white.value(1)
utime.sleep_ms(100)