# Литвинов Егор K0709-22/2
from machine import Pin, I2C
from ds1307 import DS1307
from utime import sleep
I2C_ADDR = 0x68
led = Pin(9, Pin.OUT)
i2c = I2C(0, scl=Pin(13), sda=Pin(12), freq=800000)
ds1307 = DS1307(addr=I2C_ADDR, i2c=i2c)
while True:
if ds1307.hour == 9 and ds1307.minute == 40:
led.on()
else:
led.off()
sleep(0.5)