{"id":13802176,"url":"https://github.com/wjdp/micropython-lcd","last_synced_at":"2025-07-29T05:07:40.829Z","repository":{"id":22263208,"uuid":"25597205","full_name":"wjdp/micropython-lcd","owner":"wjdp","description":":pager: Class for controlling the HD44780 from a micropython pyboard.","archived":false,"fork":false,"pushed_at":"2014-10-27T16:06:41.000Z","size":144,"stargazers_count":20,"open_issues_count":3,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-13T12:49:42.831Z","etag":null,"topics":[],"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/wjdp.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}},"created_at":"2014-10-22T18:25:38.000Z","updated_at":"2024-06-04T23:51:53.000Z","dependencies_parsed_at":"2022-08-21T01:30:44.226Z","dependency_job_id":null,"html_url":"https://github.com/wjdp/micropython-lcd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wjdp/micropython-lcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjdp%2Fmicropython-lcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjdp%2Fmicropython-lcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjdp%2Fmicropython-lcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjdp%2Fmicropython-lcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wjdp","download_url":"https://codeload.github.com/wjdp/micropython-lcd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wjdp%2Fmicropython-lcd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633014,"owners_count":24118751,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-08-04T00:01:38.185Z","updated_at":"2025-07-29T05:07:40.771Z","avatar_url":"https://github.com/wjdp.png","language":"Python","readme":"# micropython-lcd\n\nA simple class for controlling the HD44780 in 4 bit mode with the micropython\npyboard.\n\nThere are **no external dependences**, the only module we use is the pyboard's\n`pyb`.\n\nMicropython Forum thread: http://forum.micropython.org/viewtopic.php?f=2\u0026t=354\n\n## Usage\n\n```\nimport pyb\nfrom lcd import HD44780\n\nlcd = HD44780()\n\nlcd.PINS = ['Y1','Y2','Y3','Y4','Y5','Y6']\n\nlcd.init()\n\nlcd.set_line(0) # First line\nlcd.set_string(\"ABCDEFGHIJKLMNOP\") # Send a string\nlcd.set_line(1) # Second line\nlcd.set_string(\"1234567890123456\") # Again\n\npyb.delay(3000) # 3 second delay\n\nlcd.clear() # Clear the display\n```\n\n## Pinout\n\nHookup your LCD like the following.\n\n![Pinout photo][pinout]\n\n|Pin |Code    |Description         |Do what with it                     |\n|----|--------|--------------------|------------------------------------|\n|1   |VSS     |GND                 |Ground it                           |\n|2   |VDD     |+5V                 |5V please                           |\n|3   |V0      |Contrast (0-5V)*    |Stick to 0V if you don't have a pot |\n|4   |RS      |Register select     |Connect to pyboard, 0 in array      |\n|5   |R/W     |Read/write          |Ground it                           |\n|6   |E       |Enable              |Connect to pyboard, 1 in array      |\n|7   |DB0     |Data Bit 0          |Unused                              |\n|8   |DB1     |Data Bit 1          |Unused                              |\n|9   |DB2     |Data Bit 2          |Unused                              |\n|10  |DB3     |Data Bit 3          |Unused                              |\n|11  |DB4     |Data Bit 4          |Connect to pyboard, 2 in array      |\n|12  |DB5     |Data Bit 5          |Connect to pyboard, 3 in array      |\n|13  |DB6     |Data Bit 6          |Connect to pyboard, 4 in array      |\n|14  |DB7     |Data Bit 7          |Connect to pyboard, 5 in array      |\n|15  |A       |Backlight +someV    |My display is LED, I use 3.3V       |\n|16  |K       |Backlight GND       |Ground it                           |\n\nThen the pinout array looks like this\n\n    PINS = ['Y1','Y2','Y3','Y4','Y5','Y6']\n\n[pinout]:http://cdn.instructables.com/FMC/PZRT/G8LWOHW9/FMCPZRTG8LWOHW9.MEDIUM.jpg\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Display"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwjdp%2Fmicropython-lcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwjdp%2Fmicropython-lcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwjdp%2Fmicropython-lcd/lists"}