Comments on: Raspberry Pi Pico with I2C LCD Display (MicroPython) https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 26 Feb 2026 18:13:21 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Jerry https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1164682 Thu, 26 Feb 2026 18:13:21 +0000 https://randomnerdtutorials.com/?p=150511#comment-1164682 In reply to Sara Santos.

Sara: I was able to move the lcd_api.py and pico_i2c_lcd.py files into the Pico. The sketch works just fine.

I must have had a problem with my Thonny installation.

Thank you for working with me.

Jerry

]]>
By: Jerry https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1164402 Wed, 25 Feb 2026 17:09:15 +0000 https://randomnerdtutorials.com/?p=150511#comment-1164402 Sara: Sorry not to understand. Would you please tell me the location of this tutorial?

Best wishes,
Jerry

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1164394 Wed, 25 Feb 2026 16:58:18 +0000 https://randomnerdtutorials.com/?p=150511#comment-1164394 In reply to Jerry.

Hi.
To install the libraries you must do as we show in the tutorial.
Read the sections and follow the exact instructions:
– Download and Upload the lcd_api.py
– Download and Upload the pico_i2c_lcd.py

Regards,
Sara

]]>
By: Jerry https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1163970 Mon, 23 Feb 2026 17:34:26 +0000 https://randomnerdtutorials.com/?p=150511#comment-1163970 In reply to Sara Santos.

Sara: Thank you for getting back with me!

I assume that I want to upload or install lcd_api.py and pico_i2C_lcd.py into the Thonny Library. Is this correct?

If I go to View>Files I don’t see them in the column to the left.

I have spent two days trying to install lcd_api.py and pico_i2C_lcd.py using the Tools> Manage Packages window, using the “Install from local file”.
For example. when I try to upload lcd_api.py from a file folder on the desktop, I first have to hit the button, “all files(.) in order to see the lcd_api.py in the folder on the desktop.

When I hit the “Open” button, installation begins, and then stops. I get the error message:
‘only-if-needed’, ‘C:/Users/Jerry Renken/Desktop/I2C LDC Files/lcd_api.py’, ‘–index-url’, ‘http://127.0.0.1:36628′]’ returned non-zero exit status 1.

Help!

Best wishes,
Jerry

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1163963 Mon, 23 Feb 2026 17:05:59 +0000 https://randomnerdtutorials.com/?p=150511#comment-1163963 In reply to Jerry.

Hi.
Did you actually upload the code to the Pico?
If you go to View > Files can you see that they are on the Pico filesystem?
Regards.
Sara

]]>
By: Jerry https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1163597 Sat, 21 Feb 2026 23:34:52 +0000 https://randomnerdtutorials.com/?p=150511#comment-1163597 Sara: I have been trying to run your simple sketch, “Displaying Static Text” to write “Hello World” to my two line 1602 LCD display via the I2C converter PCB on the back of the display. I downloaded, lcd_api.py and pico_i2c_lcd.py. I put these files in the same folder holding the “Displaying Static Text” file.

When I run the “Displaying Static Text” , I get the error message:
File “”, line 13, in
ImportError: no module named ‘pico_i2c_lcd’

What must I do or change so that the “Displaying Static Text” “sees” the lcd_api.py and pico_i2c_lcd.py. files?

]]>
By: Wayne https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1048595 Sat, 24 May 2025 22:00:29 +0000 https://randomnerdtutorials.com/?p=150511#comment-1048595 In reply to Sara Santos.

Thank you Sara, the actual problem was with my code. I defind as 4×16 when it should have been 4×20.

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1046220 Wed, 21 May 2025 10:26:25 +0000 https://randomnerdtutorials.com/?p=150511#comment-1046220 In reply to Wayne.

Hi.
It should support that size.
Just make sure you set the dimensions of the I2C on the main code on the following lines:

#Define the LCD I2C address and dimensions
I2C_ADDR = 0x27
I2C_NUM_ROWS = 2
I2C_NUM_COLS = 16

Regards,
Sara

]]>
By: Wayne https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-1046122 Tue, 20 May 2025 23:22:37 +0000 https://randomnerdtutorials.com/?p=150511#comment-1046122 Do you have a pico_i2c_pcd.py that supports a 4×16?

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-i2c-lcd-display-micropython/#comment-950131 Thu, 22 Aug 2024 09:42:57 +0000 https://randomnerdtutorials.com/?p=150511#comment-950131 In reply to Julio.

Thanks.

]]>