Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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()