{"id":20496364,"url":"https://github.com/mignon-p/pi-lcd","last_synced_at":"2026-04-17T08:06:27.671Z","repository":{"id":56874826,"uuid":"81985608","full_name":"mignon-p/pi-lcd","owner":"mignon-p","description":"Control an Adafruit character LCD+keypad kit on a Raspberry Pi from Haskell","archived":false,"fork":false,"pushed_at":"2019-05-09T18:31:04.000Z","size":110,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-27T05:15:52.614Z","etag":null,"topics":["lcd","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mignon-p.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-14T20:24:06.000Z","updated_at":"2020-01-13T17:17:09.000Z","dependencies_parsed_at":"2022-08-20T10:10:34.769Z","dependency_job_id":null,"html_url":"https://github.com/mignon-p/pi-lcd","commit_stats":null,"previous_names":["mignon-p/pi-lcd","ppelleti/pi-lcd"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mignon-p/pi-lcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mignon-p%2Fpi-lcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mignon-p%2Fpi-lcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mignon-p%2Fpi-lcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mignon-p%2Fpi-lcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mignon-p","download_url":"https://codeload.github.com/mignon-p/pi-lcd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mignon-p%2Fpi-lcd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["lcd","raspberry-pi"],"created_at":"2024-11-15T18:06:50.772Z","updated_at":"2026-04-17T08:06:27.654Z","avatar_url":"https://github.com/mignon-p.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Hackage](https://img.shields.io/hackage/v/pi-lcd.svg)](https://hackage.haskell.org/package/pi-lcd)\n[![Build Status](https://travis-ci.org/ppelleti/pi-lcd.svg?branch=master)](https://travis-ci.org/ppelleti/pi-lcd)\n\nThis package allows using an\n[Adafruit character LCD and keypad kit][1] on a Raspberry Pi from\nHaskell.  The LCD+Keypad Kit has a 16x2 character LCD, an RGB LED\nbacklight, and five buttons.  It works on all models of Raspberry Pi,\nand plugs into the GPIO header.  It only uses the I²C pins on the\nheader.\n\nThis library automatically handles Unicode, using the LCD controller's\nbuilt-in characters where possible, and using the \"custom characters\"\nfeature, along with a [5x8 font][3] bundled with this package, to\nemulate Unicode characters which are not built-in.  The user of the\nlibrary can also define their own custom characters.\n\nEverything you need to use one of these LCDs is exposed in the\n`System.Hardware.PiLcd` module.  The submodules are only exposed\nbecause they might be useful to reuse for other types of hardware,\nsuch as if you are using an MCP23017 port expander or an HD44780\ndisplay controller in some other context.  But if you're using the\nAdafruit character LCD and keypad kit, all you need is\n`System.Hardware.PiLcd`.\n\nBefore using this package, you'll need to make sure that\n[I²C is enabled][2] on your Raspberry Pi, under \"Advanced Options\" in\n`raspi-config`.\n\nUsing `PiLcd` is as easy as:\n\n```haskell\n{-# LANGUAGE OverloadedStrings #-}\n\nimport System.Hardware.PiLcd\n\nmain = do\n  lcd \u003c- openPiLcd defaultLcdAddress defaultLcdOptions\n  updateDisplay lcd [\"Hello,\", \"World!\"]\n  setBacklightColor lcd Cyan\n  closePiLcd lcd\n```\n\nThere are additional examples in the `examples` directory.\n\nThis library is specifically designed to work with GHC 7.6.3 and up,\nand to not use Template Haskell, so it will work with the\nsystem-supplied version of GHC on Raspbian \"Jessie.\"  Just do\n`sudo apt-get install ghc cabal-install` and you're good to go.  (You\nshould also increase the swap space by editing `/etc/dphys-swapfile`.)\nThere are other ways to install more recent versions of GHC if you\nwant; see the [wiki page][5] for details.\n\nThis is a fairly early release, and there might be breaking changes in\nthe future.  Please contact me, by filing a GitHub issue, or by\n[email][4], if you have any feedback on the library.  I'd also be\ncurious to hear how the library is being used!\n\n[![LCD with Haskell logo](http://funwithsoftware.org/images/2017-Haskell-LCD-800px.jpg)](https://www.flickr.com/photos/107479024@N04/32593808450/)\n\n[1]: https://www.adafruit.com/categories/808\n[2]: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c\n[3]: https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html\n[4]: http://funwithsoftware.org/contact.html\n[5]: https://wiki.haskell.org/Raspberry_Pi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmignon-p%2Fpi-lcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmignon-p%2Fpi-lcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmignon-p%2Fpi-lcd/lists"}