Qwiic SHIM Kit for Raspberry Pi Hookup Guide

Contributors: bboyho
Favorited Favorite 0

Example: SerLCD - Hello World!

SerLCD: Hello World!

In your terminal window, type the following to download the basic example code from the GitHub repository.

git clone https://github.com/sparkfun/Qwiic_SerLCD_Py

Then navigate to the examples folder by entering the following command.

cd Qwiic_SerLCD_Py/examples

Using the ls command will list the examples in the folder. There are few examples in the folder but we're interested in only viewing the "Hello World!" example. Enter the following command to run the example.

python ex1_qwiic_serlcd_hello_world.py

You should see the familiar phrase "Hello World!" displayed in the terminal window with a counter increasing.

Output Terminal Window

If you are using Thonny, you should see the same output in the Shell.

Output Thonny

You should see the same message on the SerLCD with a counter increasing on the next row as well.

RGB Character Serial LCD Displaying Hello World with Counter

Sweet! There are several other examples available in the Qwiic_SerLCD_Py library. Try running the other examples listed in the examples folder to test by using the python command followed by the name of the python file.