{"id":19639296,"url":"https://github.com/mikestreety/pypi-lcdscreen","last_synced_at":"2025-08-20T22:40:32.417Z","repository":{"id":29607005,"uuid":"33147313","full_name":"mikestreety/pypi-lcdscreen","owner":"mikestreety","description":"A class to write to a LCD Screen using a raspberry pi","archived":false,"fork":false,"pushed_at":"2015-04-11T18:11:09.000Z","size":148,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T19:50:35.762Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikestreety.png","metadata":{"files":{"readme":"readme.rst","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":"2015-03-30T20:48:29.000Z","updated_at":"2020-05-12T15:54:17.000Z","dependencies_parsed_at":"2022-08-24T08:01:46.833Z","dependency_job_id":null,"html_url":"https://github.com/mikestreety/pypi-lcdscreen","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/mikestreety%2Fpypi-lcdscreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikestreety%2Fpypi-lcdscreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikestreety%2Fpypi-lcdscreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikestreety%2Fpypi-lcdscreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikestreety","download_url":"https://codeload.github.com/mikestreety/pypi-lcdscreen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251295229,"owners_count":21566420,"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-11-11T12:45:45.591Z","updated_at":"2025-04-28T10:30:56.245Z","avatar_url":"https://github.com/mikestreety.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"LCD Screen Python Class\n=======================\n\nThis class makes it easy to write messages to your LCD screen via your Raspberry Pi.\n\nFor a working example of the class, see example.py_.\n\n.. _example.py: https://github.com/mikestreety/pypi-lcdscreen/blob/master/example.py\n\nInstallation\n------------\nInstall from pip\n\n::\n\n\tpip install lcdscreen\n\nFrom there you can use it as you wish!\n\n::\n\n\tfrom lcdscreen import LCDScreen\n\nNext, initialise the class, passing in the parameters as required:\n\n::\n\n\tlcd = LCDScreen({\n\t\t'pin_rs': 25,\n\t\t'pin_e': 24,\n\t\t'pins_db': [23, 17, 27, 22],\n\t\t'backlight': 18,\n\t\t'dimensions': [20, 4]\n\t})\n\nThe defaults are below. If you don't wish to change anything then you can initilise without passing anything in:\n\n::\n\n\tconfig_preset = {\n\t\t'pin_rs': 25, # The input of the RS pin\n\t\t'pin_e': 24, # The input of the E pin\n\t\t'pins_db': [23, 17, 27, 22], # The input of the DB pins\n\t\t'backlight': 18, # The input of the Backlight pin\n\t\t'dimensions': [20, 4], # How big your screen is [width, height]\n\t\t'delay': 3, # The default delay time\n\t\t'spacer': ' ' # The default spacer character\n\t\t'truncate': '..' # What to add to a truncated string if the message is longer than the screen width\n\t}\n\nOnce initialised, it's quite easy to operate. The class is well documented and the exmaple file shows how to use it\n\nUsage\n------\n\n**Backlight**\n\nTurn the backlight on:\n\n::\n\n\tlcd.backlight('on')\n\nAnd turn it off:\n\n::\n\n\tlcd.backlight('off')\n\n**Message**\n\n::\n\n\tlcd.message('Your message')\n\n**Delay**\n\n::\n\n\tlcd.delay() # Delay by default delay time (set in config)\n\tlcd.delay(5) # Delay by 5 seconds\n\tlcd.delay_clear() # Wait default delay time then clear the screen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikestreety%2Fpypi-lcdscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikestreety%2Fpypi-lcdscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikestreety%2Fpypi-lcdscreen/lists"}