from machine import Pin
from time import sleep
led = Pin('LED', Pin.OUT)
# (켜짐 시간, 꺼짐 시간) 패턴 리스트
# (0.1, 0.1): 빠름 / (0.5, 0.5): 보통 / (1.0, 1.0): 느림
patterns = [(0.1, 0.1), (0.5, 0.5), (1.0, 1.0)]
while True:
for on_time, off_time in patterns:
# 각 속도별로 5번씩 반복
for i in range(5):
led.on()
sleep(on_time)
led.off()
sleep(off_time)