src/eric7/MicroPython/Devices/RP2Devices.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
child 11166
fd914f897dcf
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
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()

eric ide

mercurial