{"id":13613274,"url":"https://github.com/arikb/LKM1638","last_synced_at":"2025-04-13T15:32:57.006Z","repository":{"id":71067712,"uuid":"62803807","full_name":"arikb/LKM1638","owner":"arikb","description":"JY-LKM1638 board driver library for Micropython / WiPy","archived":false,"fork":false,"pushed_at":"2016-07-07T12:17:53.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T11:08:05.657Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arikb.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":"2016-07-07T12:04:45.000Z","updated_at":"2018-01-15T06:25:00.000Z","dependencies_parsed_at":"2023-02-22T02:16:14.750Z","dependency_job_id":null,"html_url":"https://github.com/arikb/LKM1638","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/arikb%2FLKM1638","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arikb%2FLKM1638/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arikb%2FLKM1638/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arikb%2FLKM1638/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arikb","download_url":"https://codeload.github.com/arikb/LKM1638/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736074,"owners_count":21153530,"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-01T20:00:43.137Z","updated_at":"2025-04-13T15:32:56.771Z","avatar_url":"https://github.com/arikb.png","language":"Python","funding_links":[],"categories":["Libraries","精选驱动库"],"sub_categories":["Display","显示类"],"readme":"# LKM1638\nJY-LKM1638 board driver library for Micropython / WiPy\n\n\nCode has been written from scratch by me:\n\nArik Baratz \u003cgithub@arik.baratz.org\u003e\n\nbut was HEAVILY inspired by the Arduino library by Ricardo Batista:\n\nhttps://github.com/rjbatista/tm1638-library\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the version 3 GNU General Public License as\npublished by the Free Software Foundation.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see http://www.gnu.org/licenses/\n\n## Usage:\n\n\tfrom machine import Pin\n\tfrom LKM1638 import LKM1638, LED_RED, LED_NONE\n\n\tdisplay = LKM1638(Pin.board.GP8, Pin.board.GP30, Pin.board.GP31)\n\tdisplay.setup(True, 7)\n\n\tn = 0                 \n\twhile True:\n    \tdisplay.print_number(n, 16)\n    \tn+=1234\n    \n    \tfor i, button in enumerate(display.get_buttons()):\n    \t    if button:\n        \t    display.set_led(i, LED_RED)\n     \t   else:\n        \t    display.set_led(i, LED_NONE)\n\n## WARNING ##\n\nThe JY-LKM1638 display is a 5v CMOS platform. This code has been tested on\nWiPi - a 3.3v platform. While the diaplay can accept 3.3v input, WiPy cannot\naccept a 5v input, which can happen on the DIO control.\n\nI've used a simple bidirectional level shifter, described here:\n\nhttp://electronics.stackexchange.com/a/97892/116011\n\nThis level shifter already has pull-ups on both ends, so I have configured\nDIO as an open drain output without a pull-up. If your hardware differs, you\nwould have to change it. Note that it's reinitialised in the _recv method.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farikb%2FLKM1638","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farikb%2FLKM1638","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farikb%2FLKM1638/lists"}