{"id":13802040,"url":"https://github.com/HAIZAKURA/esp-ds3231-micropython","last_synced_at":"2025-05-13T12:32:21.258Z","repository":{"id":134810710,"uuid":"250488850","full_name":"HAIZAKURA/esp-ds3231-micropython","owner":"HAIZAKURA","description":"A DS3231 Lib for esp8266/esp32 with MicroPython.","archived":false,"fork":false,"pushed_at":"2020-09-19T06:18:54.000Z","size":5,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-22T12:33:32.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HAIZAKURA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-27T09:10:36.000Z","updated_at":"2024-04-22T12:33:32.747Z","dependencies_parsed_at":"2023-09-14T10:01:29.297Z","dependency_job_id":null,"html_url":"https://github.com/HAIZAKURA/esp-ds3231-micropython","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-ds3231-micropython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-ds3231-micropython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-ds3231-micropython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HAIZAKURA%2Fesp-ds3231-micropython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HAIZAKURA","download_url":"https://codeload.github.com/HAIZAKURA/esp-ds3231-micropython/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225217942,"owners_count":17439712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:34.004Z","updated_at":"2024-11-18T17:30:47.670Z","avatar_url":"https://github.com/HAIZAKURA.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Communications"],"readme":"# esp-ds3231-micropython\n[![Author](https://img.shields.io/badge/Author-HAIZAKURA-b68469?style=flat-square)](https://nya.run) [![License](https://img.shields.io/github/license/HAIZAKURA/esp-ds3231-micropython?style=flat-square)](./LICENSE)\n\nA DS3231 Lib for esp8266/esp32 with MicroPython.\n\nIf you are using pyboard or another board, please modify the usage of `Pin` and `I2C` in `ds3231.py` .\n\n## Usage\n\n```python\nfrom ds3231 import DS3231\n\nds = DS3231(sdapin=18, sclpin=19)\n\n# get year\nds.year()\n# set year\nds.year(2020)\n\n# get month\nds.month()\n# set month\nds.month(3)\n\n# get day\nds.day()\n# set day\nds.day(27)\n\n# get hour\nds.hour()\n# set hour\nds.hour(17)\n\n# get minute\nds.min()\n# set minute\nds.min(16)\n\n# get second\nds.sec()\n# set second\nds.sec(45)\n\n# get time\n# [17, 16, 45]\nds.time()\n# set time\nds.time(17, 16, 45)\n\n# get date\n# [2020, 3, 27]\nds.date()\n# set date\nds.date(2020, 3, 27)\n\n# get datetime\n# [2020, 3, 27, 17, 16, 45]\nds.datetime()\n# set datetime\nds.datetime(2020, 3, 27, 17, 16, 45)\n\n# get temperature\nds.temp()\n```\n\n## Notice\n\nThe `build/ds3231.mpy` is a compiled bytecode file, and only can be used in `MicroPython v1.12+` .\n\n## Author\n\n**esp-ds3231-micropython** © [HAIZAKURA](https://nya.run), Released under the [MIT](./LICENSE) License.\n\n\u003e [Personal Website](https://nya.run) · GitHub [@HAIZAKURA](https://github.com/HAIZAKURA) · Twitter [@haizakura_0v0](https://twitter.com/haizakura_0v0) · Telegram [@haizakura](https://t.me/haizakura)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHAIZAKURA%2Fesp-ds3231-micropython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHAIZAKURA%2Fesp-ds3231-micropython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHAIZAKURA%2Fesp-ds3231-micropython/lists"}