{"id":49857423,"url":"https://github.com/stonatm/tm1650_micropython","last_synced_at":"2026-05-14T20:34:49.701Z","repository":{"id":300298444,"uuid":"574577619","full_name":"stonatm/tm1650_micropython","owner":"stonatm","description":"Gravity DFRobot DFR0645-G,  DFR0645-R (TM1650) i2c micropython display driver.","archived":false,"fork":false,"pushed_at":"2025-06-20T22:21:21.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T23:25:50.969Z","etag":null,"topics":["dfr0645","dfrobot","display","esp32","gravity","i2c","led","micropython","python","tm1650"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stonatm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-05T16:05:29.000Z","updated_at":"2025-06-20T22:21:25.000Z","dependencies_parsed_at":"2025-06-20T23:36:23.418Z","dependency_job_id":null,"html_url":"https://github.com/stonatm/tm1650_micropython","commit_stats":null,"previous_names":["stonatm/tm1650_micropython"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stonatm/tm1650_micropython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stonatm%2Ftm1650_micropython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stonatm%2Ftm1650_micropython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stonatm%2Ftm1650_micropython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stonatm%2Ftm1650_micropython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stonatm","download_url":"https://codeload.github.com/stonatm/tm1650_micropython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stonatm%2Ftm1650_micropython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33042358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dfr0645","dfrobot","display","esp32","gravity","i2c","led","micropython","python","tm1650"],"created_at":"2026-05-14T20:34:47.303Z","updated_at":"2026-05-14T20:34:49.696Z","avatar_url":"https://github.com/stonatm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gravity DFRobot DFR0645-G DFR0645-R TM1650\nSoftware I2C micropython implementation driver for 4 digit 8 segment LED display for Micropython devices such as ESP32 or Raspberry Pi.\n\n## tm1650 library\n\nsource file: [tm1650.py](./tm1650.py)\n\n\n### Initialise display\n\n```\nfrom tm1650 import TM1650\ndisp = TM1650(sda_pin, scl_pin)\n```\nparameters:\n\n**sda_pin** - esp32 pin number where display SDA pin is connected.\n\n**scl_pin** - esp32 pin number where display SDA pin is connected.\n\n\n### Turn on display\n\n```\nfunction display_on()\n```\n\n### Turn off display\n\n```\nfunction display_off()\n```\n\n### Clear display\n\n```\nfunction display_clear()\n```\n\n### Display integer\n\nDisplay integer number with right align on display (without trailing zeroes). If number is out of range display shows **Err**.\n```\nfunction display_integer(num)\n```\n\nparameters:\n\n**num** - integer number to display from range [-999,9999].\n\n\n### Display float\n\nDisplay float number.  If number is out of range display shows **Err**. Displayed number is always aligned to left side of display.\n```\nfunction display_float(num)\n```\n\nparameters:\n\n**num** - float number to display from range [-999.0,9999.0]\n\n\nFirst is displayed sign (if exists), integer part of number, decimal point (always displayed) and the fractional part.\nSo if integer part of number has 4 digit including sign then fractional part won't be displayed\n\nExample:\n\n| parameter  | output  |\n|------------|---------|\n| -1         | -1.00   |\n| 1.0        | 1.000   |\n| -2.202     | -2.20   |\n| 23.45      | 23.45   |\n| -23.45     | -23.4   |\n| -999.123   | -999.   |\n\n### Display string\n\n```\nfunction display_string(s)\n```\n\nDisplay the first four characters of `s`.\n\nOnly certain characters can be displayed. If a character is not recognised it will display as \"-\". Add your own in `SEGMENT_MAP`.\n\n## Example\n\n```\nfrom tm1650 import TM1650\n\nSDA_PIN = 0\nSCL_PIN = 1\ndisp = TM1650(SDA_PIN, SCL_PIN)\n\ndisp.display_on()\n\ndef scroll_string(s):\n  s = s.upper()\n  doublemsg = s + s\n  for i in range(len(s) - 3):\n    disp.display_string(doublemsg[i:4+i])\n    sleep(0.5)\n\nscroll_string(\"Hello Python\")\n\nfor i in range(10000):\n  disp.display_integer(i)\n\ndisp.display_clear()\ndisp.display_off()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstonatm%2Ftm1650_micropython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstonatm%2Ftm1650_micropython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstonatm%2Ftm1650_micropython/lists"}