Difference: PCF8563Driver (3 vs. 4)

Revision 42021-01-27 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TheT-watch2020Hardware"

The Driver for the PCF8563 Real-time Clock and Calendar

Line: 22 to 22
 
  • 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)
Changed:
<
<
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)
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback