from machine import Pin,RTC
from utime import sleep
print("Hello, ESP32!")
rtc = RTC()
print(rtc.datetime())
led = Pin(15, Pin.OUT)
def dsoffled():
tsr = str(rtc.datetime())
print('--',tsr)
if("2000,1,1,01,01"==tsr):
led.off()
rtc.wakeup(3000,callback=dsoffled())