{"id":16239699,"url":"https://github.com/nopnop2002/raspberry-tm1637","last_synced_at":"2025-04-08T09:26:21.313Z","repository":{"id":225425117,"uuid":"765964053","full_name":"nopnop2002/Raspberry-tm1637","owner":"nopnop2002","description":"TM1637 Driver for RaspberryPi.","archived":false,"fork":false,"pushed_at":"2024-03-16T23:57:24.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T06:25:45.843Z","etag":null,"topics":["8segment","raspberry-pi","tm1637"],"latest_commit_sha":null,"homepage":"","language":"C","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/nopnop2002.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}},"created_at":"2024-03-02T01:11:38.000Z","updated_at":"2024-03-02T01:36:22.000Z","dependencies_parsed_at":"2024-03-02T02:35:25.875Z","dependency_job_id":"13b7df47-80ef-4574-905f-2c86559e1dda","html_url":"https://github.com/nopnop2002/Raspberry-tm1637","commit_stats":null,"previous_names":["nopnop2002/raspberry-tm1637"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2FRaspberry-tm1637","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2FRaspberry-tm1637/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2FRaspberry-tm1637/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2FRaspberry-tm1637/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nopnop2002","download_url":"https://codeload.github.com/nopnop2002/Raspberry-tm1637/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247811352,"owners_count":21000093,"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","raspberry-pi","tm1637"],"created_at":"2024-10-10T13:44:44.467Z","updated_at":"2025-04-08T09:26:21.291Z","avatar_url":"https://github.com/nopnop2002.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry-tm1637\nTM1637 Driver for RaspberryPi.   \nI based it on [this](https://github.com/petrows/esp-32-tm1637).   \n\n![tm1637-ip](https://github.com/nopnop2002/esp-idf-tm1637/assets/6020549/15cb623d-2298-4344-a9c7-f573cb0255cd)\n![tm1637-play](https://github.com/nopnop2002/esp-idf-tm1637/assets/6020549/bb98913e-f5e5-4f17-8d12-4cd9f16518f7)\n![tm1637-stop](https://github.com/nopnop2002/esp-idf-tm1637/assets/6020549/b1928da8-c461-4772-8d33-8f82175c5f54)\n\n# Changes from the original\n- Applied to WiringPi.   \n- Added display of ascii characters.   \n- Added text scroll display function.   \n- Added text animation display function.   \n\n# Software requirement\nWiringPi Library   \nThis project uses the wiringPiSetupGpio() function to initialize GPIO.   \nIf you use it on a board other than the RPI board, you may need to change the GPIO number.   \nAs far as I know, there are these libraries.   \n- WiringPi for OrangePi   \n- WiringPi for BananaPi   \n- WiringPi for NanoPi   \n- WiringPi for Pine-64   \n\n# Hardware requirement\nTM1637 8 segment 0.36INCH Digital Display Tube 4 digit LED module.   \nThere are several products with different segments.   \n- Product 1   \n 8 segments with dots + 8 segments with dots + 8 segments with dots + 8 segments with dots   \n- Product 2   \n 7 segments + 8 segments with colon + 7 segments + 7 segments   \n\n![TM1637-1](https://github.com/nopnop2002/esp-idf-tm1637/assets/6020549/59e95bf5-01bb-4c4a-9f96-4d36869be2e5)\n![TM1637-2](https://github.com/nopnop2002/esp-idf-tm1637/assets/6020549/e3430e3a-34ae-455a-8891-555ae89f2e0f)\n\n# Build\n```\ngit clone https://github.com/nopnop2002/Raspberry-tm1637\ncd Raspberry-tm1637\ncc -o tm1637 main.c tm1637.c -lwiringPi -lpthread\n```\n\n# Wirering\n\n|TM1637||RPi||\n|:-:|:-:|:-:|:-:|\n|CLK|--|GPIO3|(*1)|\n|DIO|--|GPIO2|(*1)|\n|GND|--|GND||\n|VCC|--|3.3V||\n\n(*1)   \nThe TM1637's interface is similar to I2C, but it is not I2C.   \nTherefore, you can change it to any pin using arguments.   \n\n# How to use\n```\n$ ./tm1637 --help\n./tm1637: invalid option -- '-'\nusage: tm1637  [-c CLK] [-d DIO] [-t TEXT]\n\noptional arguments:\n  -c CLK    CLK GPIO\n  -d DIO    DIO GPIO\n  -t TEXT   Display Text\n```\n\n### Start Auto Demo using default GPIO   \n```\n./tm1637\n```\n\n### Start Auto Demo using non-default GPIO   \nExample of CLK=GPIO14/DIO=GPIO15.   \n```\n./tm1637 -c 14 -d 15\n```\n\n### Display any text using default GPIO   \n```\n./tm1637 -t \"12345 67890\"\n```\n\n### Display any text using non-default GPIO   \nExample of CLK=GPIO14/DIO=GPIO15.   \n```\n./tm1637 -c 14 -d 15 -t \"12345 67890\"\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fraspberry-tm1637","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnopnop2002%2Fraspberry-tm1637","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fraspberry-tm1637/lists"}