pcf8563 driver on t-watch 2020

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
uraich
Posts: 56
Joined: Tue Mar 26, 2019 12:24 pm

pcf8563 driver on t-watch 2020

Post by uraich » Tue Jan 26, 2021 5:07 pm

Going though the hardware of the t-watch 2020 I tried the PCF8563 RTC today. I had some difficulties with the original driver written by Lewis Xhe because it did not respect the parameter sequence returned by utime.localtime(). I modified the driver slightly to get rid of the problem. I then wrote an example program synchronizing the RTC with the current time from ntp and another one reading the current time from the pcf8563 using the driver. You can find all this on my github repository: https://github.com/uraich/twatch2020_fi ... re/pcf8563

Buffedelic
Posts: 2
Joined: Sun Jan 31, 2021 11:00 am

Re: pcf8563 driver on t-watch 2020

Post by Buffedelic » Sun Jan 31, 2021 11:28 pm

If you need timezone capability I highly recomend you this fork, I had to make a small change of the original one.
You will also need the Timezone library from the same author.

uraich
Posts: 56
Joined: Tue Mar 26, 2019 12:24 pm

Re: pcf8563 driver on t-watch 2020

Post by uraich » Mon Feb 01, 2021 11:20 am

Thanks for the hint. In addition this will exercise my Russian knowledge, which has suffered recently.
I will check it out.

Post Reply