{"id":26258753,"url":"https://github.com/jkorte-dev/micropython-tm1652","last_synced_at":"2026-04-13T18:32:40.792Z","repository":{"id":282106998,"uuid":"941668072","full_name":"jkorte-dev/micropython-tm1652","owner":"jkorte-dev","description":"micropython example code for weact  studio tm1652 digital tube module","archived":false,"fork":false,"pushed_at":"2025-03-15T07:12:49.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T06:17:56.410Z","etag":null,"topics":["micropython","micropython-driver","tm1652"],"latest_commit_sha":null,"homepage":"","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/jkorte-dev.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-02T20:24:08.000Z","updated_at":"2025-04-29T16:39:43.000Z","dependencies_parsed_at":"2025-03-12T21:30:00.694Z","dependency_job_id":null,"html_url":"https://github.com/jkorte-dev/micropython-tm1652","commit_stats":null,"previous_names":["jkorte-dev/micropython-tm1652"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jkorte-dev/micropython-tm1652","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkorte-dev%2Fmicropython-tm1652","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkorte-dev%2Fmicropython-tm1652/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkorte-dev%2Fmicropython-tm1652/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkorte-dev%2Fmicropython-tm1652/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkorte-dev","download_url":"https://codeload.github.com/jkorte-dev/micropython-tm1652/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkorte-dev%2Fmicropython-tm1652/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31766473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["micropython","micropython-driver","tm1652"],"created_at":"2025-03-13T22:14:00.875Z","updated_at":"2026-04-13T18:32:40.775Z","avatar_url":"https://github.com/jkorte-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"TM1652 4x7-Segments LED Display with Micropython\n=========================================================================================\n\n\nMicropython example code for [WeActStudio Digital Tube Module](https://github.com/WeActStudio/WeActStudio.DigitalTubeModule) (TM1652) 4x7 segments LED display.\n\nThe module uses serial communication to control the LEDs. Connect the provided red cable (labeled with SDA) with the TX port of your MCU, the yellow cable with VCC (3.3 or 5V) and GND to ground (black cable).\nColor coding is misleading but just follow the labeling on the module.\n\nImportant notes:\n\n1. *communication with the tm1652 uses UART and needs to be set to parity odd.*\n2. *brightness value is 4 bits reversed order (data sheet page 6)*\n3. *default brightness is 0, therefore you have to set brightness to see anything. In tm1652.py 3 is set as default*\n\nMimimal code to display the numbers 0 to 3 on the display is:\n\n```code\nfrom machine import UART\nimport time\n\nuart = UART(1, 19200)\nuart.init(19200, bits=8, parity=1, stop=1, timeout=50)\nuart.write(bytearray(b'\\x18\\x1c')) # set brightness to 3\ntime.sleep(0.006)\nuart.write(bytearray(b'\\x08\\x3f\\x06\\x5B\\x4f')) # display numbers\n```\n\nMore convenient way using `tm1652.py`:\n\n```code \nfrom machine import UART\n\nuart = UART(1, 19200)\ndisplay = TM1652(uart)\ndisplay.show_text(\"0123\")\n```\n\nSee `tm1652_exmaple.py` for more. E.g. there is experimental support for gpio tx instead of uart tx.\n\n### Resources\nCompiled from the following resource:\n\n- [Mike Causer TM1638 driver](https://github.com/mcauser/micropython-tm1637) (most code borrowed from there)\n- WeActStudio Python / Arduino examples","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkorte-dev%2Fmicropython-tm1652","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkorte-dev%2Fmicropython-tm1652","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkorte-dev%2Fmicropython-tm1652/lists"}