ghi-electronics / micropython

A MicroPython port to GHI Electronics SITCore SC13xxx line of products.
https://micropython.org
MIT License
0 stars 0 forks source link

RTC #8

Open Palomino34 opened 3 years ago

Palomino34 commented 3 years ago

The code worked btu the clock is not changing

Palomino34 commented 3 years ago

Need to call init()

import time
rtc = machine.RTC()
rtc.init()
rtc.datetime((2021, 5, 25, 4, 13, 0, 0, 0))
while True:
    rtc.datetime()
    time.sleep(1)