{"id":14978100,"url":"https://github.com/pimvanhespen/go-pi-lcd1602","last_synced_at":"2025-08-03T04:38:21.805Z","repository":{"id":57500960,"uuid":"155584629","full_name":"pimvanhespen/go-pi-lcd1602","owner":"pimvanhespen","description":"Go library for communicating to lcd1602 from Raspberry Pi","archived":false,"fork":false,"pushed_at":"2019-01-31T14:11:59.000Z","size":1409,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T15:51:14.454Z","etag":null,"topics":["animation","go","gpio","lcd","lcd1602","lcd16x2","raspberry-pi-3","virtual-lcd"],"latest_commit_sha":null,"homepage":"","language":"Go","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/pimvanhespen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T15:55:50.000Z","updated_at":"2025-03-12T20:50:44.000Z","dependencies_parsed_at":"2022-08-31T03:53:46.185Z","dependency_job_id":null,"html_url":"https://github.com/pimvanhespen/go-pi-lcd1602","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pimvanhespen/go-pi-lcd1602","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimvanhespen%2Fgo-pi-lcd1602","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimvanhespen%2Fgo-pi-lcd1602/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimvanhespen%2Fgo-pi-lcd1602/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimvanhespen%2Fgo-pi-lcd1602/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimvanhespen","download_url":"https://codeload.github.com/pimvanhespen/go-pi-lcd1602/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimvanhespen%2Fgo-pi-lcd1602/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268495926,"owners_count":24259401,"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-08-03T02:00:12.545Z","response_time":2577,"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":["animation","go","gpio","lcd","lcd1602","lcd16x2","raspberry-pi-3","virtual-lcd"],"created_at":"2024-09-24T13:56:51.840Z","updated_at":"2025-08-03T04:38:21.751Z","avatar_url":"https://github.com/pimvanhespen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang  LCD1602 (LCD16x2) for RaspberryPi \n[![GoDoc](https://godoc.org/github.com/pimvanhespen/go-pi-lcd1602?status.svg)](https://godoc.org/github.com/pimvanhespen/go-pi-lcd1602)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pimvanhespen/go-pi-lcd1602)](https://goreportcard.com/report/github.com/pimvanhespen/go-pi-lcd1602)\n[![license](https://img.shields.io/github/license/pimvanhespen/go-pi-lcd1602.svg)](https://github.com/pimvanhespen/go-pi-lcd1602/blob/master/LICENSE.md)\n\n\nUse LCD screens in your Go RPi applications!\n\n\n## Fast\nThe timing in this library is optimized to run as smoot as possible.\n(It takes **~40 microseconds** to write one character to the LCD, opposed to many online examples taking **5-10 milliseconds**).\n\n## Animated\nYou can use **Animations** (see animations, and examples/animations.go) to slide text into and out of the LCD.\nYou can also create your own animations by implementing the `Animation` interface.\n\n## Virtual LCD\nI wrote a virtual representation of an LCD screen. You can use it for debugging on de command line, or when your LCD is broken... \n\n## Usage\n### Import\n\n```go\nimport \"github.com/pimvanhespen/go-pi-lcd1602\"\n```\nAlso checkout the [examples](https://github.com/pimvanhespen/go-pi-lcd1602/tree/master/examples)!\n\n### Short example\n```go\n    // write code to your LCD in 5 simple steps!\n    // 1. Define the LCD config (which pins are used)\n\tlcdi := lcd1602.New(\n\t\t10,                   //rs\n\t\t9,                    //enable\n\t\t[]int{6, 13, 19, 26}, //datapins\n\t\t16,                   //lineSize\n\t)\n    // 2. Create a synchronized LCD (for writing both lines easily)\n\tlcd := synchronized.NewSynchronizedLCD(lcdi)\n    // 3. Init the LCD\n\tlcd.Initialize()\n    // 4. Write text to the LCD\n\tlcd.WriteLines(\"Go Rpi LCD 1602\", \"git/PimvanHespen\")\n    // 5. Close the lcd (i.e. clean up GPIO memory)\n    lcd.Close()\n}\n```\n## Todo\n- lanning on decoupling the LCD from the RaspberryPi GPIO. Allows for users to write/use their own IO wrappers for different hardware solutions\n\n## Special thanks\nThis library is built using [Stian Eikelands go-rpio library](https://github.com/stianeikeland/go-rpio).\n\n## Changelog\n### 25/01/2019\n- Decoupled the lcd from synchronization\n- Added a VIRTUAL LCD\n- rewrote examples to match new code\n\n### 5/11/2018\n- Fixed boot bug: The LCD used to randomly show garbled data. It's fixed\n- Better implementation of animations. Animations are now locked to a single line, allowing for animating both lines concurrently\n- Added an example for the new animations\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimvanhespen%2Fgo-pi-lcd1602","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimvanhespen%2Fgo-pi-lcd1602","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimvanhespen%2Fgo-pi-lcd1602/lists"}