404 # rtc_time[7] - yearday 1..366 |
404 # rtc_time[7] - yearday 1..366 |
405 # rtc_time[8] - isdst 0, 1, or -1 |
405 # rtc_time[8] - isdst 0, 1, or -1 |
406 |
406 |
407 # The machine.rtc.datetime() function takes the arguments in the order: |
407 # The machine.rtc.datetime() function takes the arguments in the order: |
408 # (year, month, day, weekday, hour, minute, second, subseconds) |
408 # (year, month, day, weekday, hour, minute, second, subseconds) |
409 # __IGNORE_WARNING_M891__ |
409 # __IGNORE_WARNING_M-891__ |
410 # https://docs.micropython.org/en/latest/library/machine.RTC.html#machine-rtc |
410 # https://docs.micropython.org/en/latest/library/machine.RTC.html#machine-rtc |
411 return """ |
411 return """ |
412 def set_time(rtc_time): |
412 def set_time(rtc_time): |
413 import machine |
413 import machine |
414 rtc = machine.RTC() |
414 rtc = machine.RTC() |