{"id":13802178,"url":"https://github.com/Bhavithiran97/LCM1602-14_LCD_Library","last_synced_at":"2025-05-13T12:32:29.678Z","repository":{"id":45996702,"uuid":"335492209","full_name":"Bhavithiran97/LCM1602-14_LCD_Library","owner":"Bhavithiran97","description":"This LCD module can be connected using SPI or I2C protocol","archived":false,"fork":false,"pushed_at":"2021-11-22T00:31:18.000Z","size":53,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-18T17:51:25.654Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bhavithiran97.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}},"created_at":"2021-02-03T03:07:58.000Z","updated_at":"2024-09-25T08:21:16.000Z","dependencies_parsed_at":"2022-08-25T11:01:24.916Z","dependency_job_id":null,"html_url":"https://github.com/Bhavithiran97/LCM1602-14_LCD_Library","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/Bhavithiran97%2FLCM1602-14_LCD_Library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhavithiran97%2FLCM1602-14_LCD_Library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhavithiran97%2FLCM1602-14_LCD_Library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhavithiran97%2FLCM1602-14_LCD_Library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bhavithiran97","download_url":"https://codeload.github.com/Bhavithiran97/LCM1602-14_LCD_Library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253942661,"owners_count":21988108,"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-04T00:01:38.247Z","updated_at":"2025-05-13T12:32:29.403Z","avatar_url":"https://github.com/Bhavithiran97.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Display"],"readme":"\n\n# [LCM1602A-14 LCD](https://www.cytron.io/p-3v3-i2c-and-spi-1602-serial-character-lcd?tracking=b-py) MicroPython Library for [Pi Pico](https://www.cytron.io/p-raspberry-pi-pico?tracking=b-py)\n\n![3](https://user-images.githubusercontent.com/34527010/114125322-cb17ac80-9928-11eb-904a-aa0278c1ec72.PNG)\n![2](https://user-images.githubusercontent.com/34527010/114125326-cc48d980-9928-11eb-9d76-59170142d6f3.PNG)\n\nThis library supports LCM1602A-14 LCD module I2C and SPI communication with Raspberry Pi Pico. \n\n![ww](https://user-images.githubusercontent.com/34527010/106861113-4928be80-6700-11eb-9203-9196ff394f06.PNG)\n\n\n**The library file must be saved inside the Raspberry Pi Pico before uploading user's code**\n## Add Library\nStep 1: Download the library file (LCD_SPI.py or LCD_I2C.py)\n\nStep 2: Launch Thonny application and open the library file\n![A](https://user-images.githubusercontent.com/34527010/106843779-cc86e780-66e1-11eb-8c48-b3e2f6f84fa6.PNG)\n\n\n\n\nStep 3: Save the library file into the Pi Pico\n\n![b](https://user-images.githubusercontent.com/34527010/106843842-f213f100-66e1-11eb-91d2-75c8bf5d9850.png)\n\n![d](https://user-images.githubusercontent.com/34527010/106843861-ff30e000-66e1-11eb-9453-80a9b40199e4.png)\n\n\nStep 4: Save the library with the same name you downloaded with (LCD_SPI.py or LCD_I2C.py) **Must add .py at the back**\n\n\n![c](https://user-images.githubusercontent.com/34527010/106843969-40c18b00-66e2-11eb-96ba-baaa14f5506d.png)\n\nClick OK and the library is added to your Pi Pico\n\n\n\n## Import LCD_SPI Library\n\n - Import LCD_SPI library\n \n `from LCD_SPI import *`\n\n## Import LCD_I2C Library\n\n - Import LCD_I2C library\n \n`from LCD_I2C import *`\n\n## Create Object for SPI\n\n -  Create object using the class\n -  Create LCD object with LCD's sck pin connected to PICO's sck pin 2, LCD's sda pin \tconnected to Pico's tx pin 3\n -  Here we use tx, it is same as MOSI for SPI communication\n \n `lcd = LCD(sck=2, tx=3, cs=5)`\n\n## Create Object for I2C\n -  Create object using the class\n - Create LCD object with LCD's sda pin connected to PICO's sda pin 2, LCD's sck pin connected to Pico's scl pin 3\n \n`lcd = LCD(sda=2, scl=3)`\n\n## Set cursor\n\n - Set the cursor to a specific position\n - First parameter sets the column, second parameter sets the row\n - Set the cursor to column 0 (first column) and row 0 (first row)\n \n `lcd.set_cursor(0,0) `\n\n## On LCD Display\n\n - Turn on the LCD Display without clearing the data\n - Cursor and Blink is Off by default\n \n`lcd.on()`\n\n - Cursor On, Blink Off\n \n`lcd.on(cursor=True, blink=False)`\n\n - Cursor Off, Blink On\n \n`lcd.on(cursor=False, blink=True) `\n\n - Cursor On, Blink On\n \n`lcd.on(cursor=True, blink=True) `\n\n## Off LCD Display\n\n - Turn off the LCD Display without clearing the data\n \n`lcd.off() `\n\n## Write to LCD Display\n\n - Write string to the LCD  \n \n`lcd.write(\"Hello World\")`\n\n## Clear LCD Display\n\n - Clear the data on the display\n \n `lcd.clear() `\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBhavithiran97%2FLCM1602-14_LCD_Library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBhavithiran97%2FLCM1602-14_LCD_Library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBhavithiran97%2FLCM1602-14_LCD_Library/lists"}