A driver for the Epson RX8130CE Real Time Clock, fully featured and 'pure' micropython #18766
Replies: 4 comments 5 replies
-
|
Because I do not have this device on hand to test your code, these are general comments As described in almost all of the datasheets of RTC chips, accessing a continuous |
Beta Was this translation helpful? Give feedback.
-
Fire up the DeLorean... |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
So; I just released V2.0.0 The comments from @ekspla and @KnorkFox got me thinking. Writing to the clock now all happens in a single location. And the driver now uses a byte from its free 'RAM' to store the century without needing to supply it at init. It wont get incremented in 73 years, but I wont be there to worry about that. I also added a 'AscII Clock' demo built using this driver and some fonts + tools I wrote for the framebuffer to render a large format LCD clock in a terminal.
It's silly, but fun. This also works with |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I have written a 'pure' micropython driver for the Epson RX8130 I2C Real Time Clock chip that came with my M5Stack Tab5.
https://codeberg.org/easytarget/rx8130ce-micropython
rx8130ce.pyprovidesinit(),datetime()andmemory(), methods directly compatible withmachine.RTC()It supports all the chip features:
machine.RTC()class.There is a 'interactive demo' for the driver that (frankly) got a bit out of hand.. most chip features are available. It makes a good tool for exploring and testing the chip.
An example; adapted from the README
This gives:
Beta Was this translation helpful? Give feedback.
All reactions