import time, utime, tm1637, machine
from machine import Pin
# 定義
timer_s = 300
count = 0
wait_s = 1
END = False
successPin = [Pin(18), Pin(19), Pin(20), Pin(21), Pin(22)]
display = tm1637.TM1637(clk=machine.Pin(0), dio=machine.Pin(1))
def timer(count):
display.numbers((timer_s-count) // 60, (timer_s-count) % 60)
while not END:
prosess = time.localtime()[5]
# メイン処理
time.sleep(0.5)
print(time.localtime())
print((time.localtime()[5] != prosess))
if (time.time()-prosess) - wait_s < wait_s:
count += 1
timer(count)