I've been playing with the real time clock RTC.
i had this working earlier now setting the RTC with `pyb.RTC().datetime((a-tuple))` just hangs for a few seconds and fails to reset the clock.
This is my program
Code: Select all
import pyb
clock = pyb.RTC()
print("Enter date as revesed tuple (Y,M,D,0,H,M,S,0)")
get_date=input("Enter the 0's and ()'s :")
clock.datetime(eval(get_date))
while True:
pyb.delay(1000)
print(clock.datetime(), end=" \r")
I currently enter
(2018,9,7,0,12,13,0,0)
it hangs for a second or two and prints
(2000, 1, 1, 1, 0, 0, 0, 0)