A downloadable project
Log in with itch.io to leave a comment.
if it doesn’t work try the script if the script works it indicates that there’s something wrong with the code please report it to me if it doesn’t work it means that you did not connect the LCD correctly
import time
from RPLCD import CharLCD
import RPi.GPIO as GPIO
lcd = CharLCD(cols=16, rows=2,
pin_rs=7, pin_e=8,
pins_data=[25, 24, 23, 18],
numbering_mode=GPIO.BCM)
try:
lcd.clear()
lcd.write_string("Hello, World!")
time.sleep(5) # Show for 5 seconds
finally:
GPIO.cleanup()
if it doesn’t work use this
pip3 install --break-system-packages RPLCD
sudo apt install python3
pip3 install RPLCD
This is required
sudo apt update
sudo apt install python3-pip python3-rpi.gpio
Comments
Log in with itch.io to leave a comment.
if it doesn’t work try the script if the script works it indicates that there’s something wrong with the code please report it to me if it doesn’t work it means that you did not connect the LCD correctly
import time
from RPLCD import CharLCD
import RPi.GPIO as GPIO
lcd = CharLCD(cols=16, rows=2,
pin_rs=7, pin_e=8,
pins_data=[25, 24, 23, 18],
numbering_mode=GPIO.BCM)
try:
lcd.clear()
lcd.write_string("Hello, World!")
time.sleep(5) # Show for 5 seconds
finally:
lcd.clear()
GPIO.cleanup()
if it doesn’t work use this
pip3 install --break-system-packages RPLCD
sudo apt install python3
pip3 install RPLCD
This is required
sudo apt update
sudo apt install python3-pip python3-rpi.gpio
pip3 install RPLCD