Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AnthonyKNorman/Micropython_TinyRTC
https://github.com/AnthonyKNorman/Micropython_TinyRTC
Last synced: about 16 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/AnthonyKNorman/Micropython_TinyRTC
- Owner: AnthonyKNorman
- Created: 2016-10-24T08:07:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-03T10:51:59.000Z (about 8 years ago)
- Last Synced: 2024-08-02T20:45:33.071Z (3 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mpython - Micropython_TinyRTC - Driver for DS1307 RTC. (精选驱动库 / 通讯类)
- awesome-micropython - Micropython_TinyRTC - Driver for DS1307 RTC. (Libraries / Communications)
README
A simple library to read from, and write to, the cheap RTC modules you see on ebay
It defaults to using pin 2 for scl and pin 16 for sda, but you can easily change theseNote: With the module that I used, there a two SMD resistors pulling up scl and sda to +5v.
You need to remove these and use pullups to 3v3 with the ESP8266. On my module they are R2 and R3.The main features are:
**TinyRTC.get_time_string()**
returns the time as a formatted 'hh:mm:ss' string
**TinyRTC.get_date_string()**
retruns the date as a formatted 'dd/mm/yyyy' string
**TinyRTC.set_time(ss, mm, hh, dow, dd, MM, yy)**
set the clock. After power up the clock will not run until this is executed
I have included a **main.py** that will show the time and date on a Nokia 5110 using my library