{"id":13897193,"url":"https://github.com/nopnop2002/python-periphery-tm1637","last_synced_at":"2026-02-23T08:02:08.178Z","repository":{"id":108987978,"uuid":"289609771","full_name":"nopnop2002/python-periphery-tm1637","owner":"nopnop2002","description":"python-periphery TM1637 4Digits 8Segment LCD example","archived":false,"fork":false,"pushed_at":"2024-02-28T23:54:58.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T06:25:35.144Z","etag":null,"topics":["8segment","orange-pi","python-periphery","raspberry-pi","tm1637"],"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/nopnop2002.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}},"created_at":"2020-08-23T03:39:26.000Z","updated_at":"2023-04-17T20:48:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"e388bf4e-9dee-4c63-93c2-ea714b7fee43","html_url":"https://github.com/nopnop2002/python-periphery-tm1637","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fpython-periphery-tm1637","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fpython-periphery-tm1637/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fpython-periphery-tm1637/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fpython-periphery-tm1637/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nopnop2002","download_url":"https://codeload.github.com/nopnop2002/python-periphery-tm1637/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247811277,"owners_count":21000075,"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":["8segment","orange-pi","python-periphery","raspberry-pi","tm1637"],"created_at":"2024-08-06T18:03:24.822Z","updated_at":"2026-02-23T08:02:08.162Z","avatar_url":"https://github.com/nopnop2002.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# python-periphery-tm1637\n[![CodeFactor](https://www.codefactor.io/repository/github/magnetrwn/python-periphery-tm1637/badge)](https://www.codefactor.io/repository/github/magnetrwn/python-periphery-tm1637)\n\n\u003cb\u003eThis module contains methods to drive the TM1637 display module as well as clock, scrolling ASCII text and system information functionality. Attaching this to a SBC can give useful insight on the system status or just keep time.\u003c/b\u003e\n\nTM1637 8 segment, 4 digit LED examples:\n\u003cp float:\"left\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/94263372/213289698-4f7dbbc6-cced-477f-9ff1-f922cb8bec58.gif\" title=\"TM1637-Red-Clock\"/\u003e\n  \u003c!--img src=\"https://user-images.githubusercontent.com/6020549/90970987-5b45e480-e546-11ea-854b-c11eaf146ac8.JPG\" title=\"TM1637-White\" width=\"40%\"/--\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/6020549/90970988-5e40d500-e546-11ea-84bf-55ff035998f3.JPG\" title=\"TM1637-Red\" width=\"35.556%\"/\u003e\n\u003c/p\u003e\n\n# Hardware requiments\nTM1637 8 segment 0.36INCH Digital Display Tube 4 digit LED module:\n\u003cp float:\"left\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/6020549/90970978-52551300-e546-11ea-9764-4527ce3c6a49.JPG\" title=\"TM1637-1\" width=\"43%\"/\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/6020549/90970981-5719c700-e546-11ea-8e48-ac4c0d7b5dc6.JPG\" title=\"TM1637-2\" width=\"43%\"/\u003e\n\u003c/p\u003e\n\n# Software requirements\npython-periphery library.\n\n```\nsudo apt update\nsudo apt install git python3-pip python3-setuptools\npython3 -m pip install python-periphery\n```\n\n# Why python-periphery   \npython-periphery is a highly compatible library.   \nAvailable for most Pi boards.   \n\n# Wiring\n|LED Module|Raspberry Pi||\n|:-:|:-:|:-:|\n|CLK|Pin#5|(*1)|\n|DIO|Pin#3|(*1)|\n|GND|GND||\n|5V|3V3|(*2)|\n\n(*1)   \nYou can use any GPIO with startup arguments.   \n\n(*2)   \nRPi reads data from DIO, so it must be 3V3.   \n\n# Setup\n```\ncd $HOME\ngit clone https://github.com/nopnop2002/python-periphery-tm1637\ncd python-periphery-tm1637/\npython3 tm1637.py\n```\nIf you use this module on something other than Raspberry Pi, you will need to change the GPIO.   \n```\n$ python3 tm1637.py --help\nusage: tm1637.py [-h] [--clk CLK] [--dio DIO] [--text TEXT]\n\noptional arguments:\n  -h, --help   show this help message and exit\n  --clk CLK    CLK GPIO\n  --dio DIO    DIO GPIO\n  --text TEXT\n```\n\nIf you use Pin#3 and Pin#5, it will be as follows.   \n\n||CLK(Pin#5)|DIO(Pn#3)||\n|:-:|:-:|:-:|:-:|\n|Raspberry Pi|3|2|Default|\n|Orange Pi Allwinner H2+|11|12||\n|Orange Pi Allwinner H3|11|12||\n|Orange Pi Allwinner H5|11|12||\n|Orange Pi Allwinner A64|226|227||\n|Orange Pi 3|121|122||\n|Orange Pi Lite2|229|230||\n|Orange Pi OnePlus|229|230||\n|Orange Pi RK3399|44|43||\n|Orange Pi 4|65|64||\n|Nano Pi Allwinner H3|11|12||\n|Nano Pi Allwinner H5|11|12||\n\nOther default values are set as follows:   \n```\n_DEF_TM1637_BRIGHT = 0xA       # Default brightness from 0x0 to 0xF\n_DEF_TM1637_ANIM_DELAY = 0.2   # Default animation delay in seconds\n```\n\nIf you want to display the CPU temperature, you need to change the following depending on the board.   \n```\nshow_on_high_cpu_thermal(tm, 50, \"/sys/devices/virtual/thermal/thermal_zone0/temp\")\n# Please change your cpu sensor path if different\n```\n\n# Start Auto Demo\n```\npython3 tm1637.py\n```\nWhen specifying GPIO.\n```\npython3 tm1637.py --clk=11 --dio=12\n```\nPrivilege elevation might be required.\n```\nsudo -E python3 tm1637.py\n```\n\n\n# Display text\n```\npython3 tm1637.py --text=\"any_text\"\n```\nWhen specifying GPIO.\n```\npython3 tm1637.py --text=\"any_text\" --clk=11 --dio=12\n```\nPrivilege elevation might be required.\n```\nsudo -E python3 tm1637.py --text=\"any_text\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fpython-periphery-tm1637","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnopnop2002%2Fpython-periphery-tm1637","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fpython-periphery-tm1637/lists"}