|
META TOPICPARENT |
name="TheT-watch2020Hardware" |
The Driver for the PCF8563 Real-time Clock and Calendar |
|
- enable_alarm_interrupt(): enable the alarm interrupt
- disable_alarm_interrupt(): disable the alarm interrupt
- set_daily_alarm(hours=None, minutes=None, date=None,weekday=None)
|
|
< < | I had some difficulties with the sequence of parameters of datetime(), set_datetime() and write_all() which did not reflect the sequence returned by utime.localtime which is (year,month,date,hours,minutes,seconds,day_of_week). I therefore the parameters of these methods. |
> > | I had some difficulties with the sequence of parameters of datetime(), set_datetime() and write_all() because it did not reflect the sequence returned by utime.localtime, which is (year,month,date,hours,minutes,seconds,day_of_week). I therefore modified the driver and changed the parameters of these methods. |
|
Then I wrote 2 example programs:
- rtc_set_time: Sets the time to the current CET time (you can easily modify this to set e.g. GMT time instead)
|