• sales

    +86-0755-88291180

5. Dispaly Raspberry pi logo User Guide

Dispaly Raspberry pi logo

After CPU Info LCD screen is correctly inserted into the Raspberry Pi, you need to compile and run the program to display it normally. This experiment is used to display the boot time and memory free space of the Raspberry Pi.

1. Install the wringPi library

CPU Info LCD screen is used for data communication through the GPIO port of the Raspberry Pi, so we must install the wiringPi library file.

Enter the following command to install the wringPi library. Users who have already installed the wiringPi library can ignore this step.

cd ~

git clone git://git.drogon.net/wiringPi

cd wiringPi

./build 

2.Install Drive

2.1 Transfer the driver file to the Raspberry Pi

You need to install the SSH Secure Shell Client tool on your computer. After connecting to the Raspberry Pi, transfer the cpu_show_logo.zip package from this folder to the pi directory of the Raspberry Pi.

As shown blew, drag and drop cpu_show_logo.zip directly into the Raspberry Pi system.

Download: cpu_show_logo.zip


2.2 Extract file

Open the Raspberry Pi terminal and find the cpu_show_logo.zip file.

Enter command:

ls 


Enter command:

unzip cpu_show_logo.zip


2.3  Enter the program folder

cd  ~/cpu_show_logo

ls


2.4Compiler file

Enter command:

cc -o cpushow_logo pcd8544_rpi.c PCD8544.c  -L/usr/local/lib -lwiringPi


cc is the compile command, -o is the compile parameter, cpushow_temp is the generated program name, pcd8544_rpi.c and PCD8544.c are the source files in the current directory, -L/usr/local/lib and -lwiringPi are referenced libraries file. 

2.5 Running procedure

Enter command:

sudo ./cpushow_logo


The system will prompt Raspberry Pi PCD8544 sysinfo display and display the following on the CPU Info screen.


3. Code analysis

Enter command:

nano pcd8544_rpi.c

This command is to open pcd8544_rpi.c

1. The following sections are pin settings. The corresponding relationship of the GPIO ports has been indicated on the back of the LCD.


2.Main function


3.The front part is the initialize program and the prompt information; the latter part is a for loop, which is display Raspberry logo.


LCDshowLogo() function is used to display the Raspberry Pi logo on the LCD screen, which is defined under the PCD8544.c file. This file also defines the functions displayed on the LCD, as well as letters, numbers, and symbols. 

4.Open PCD8544.c file

Enter command:

nano PCD8544.c

We need to scroll down to find the pi_logo array, where the information about the Raspberry Pi icon is stored.


We need to scroll down to find the LCDshowLogo function, where the information about the Raspberry Pi icon is stored.


It displays the data of the Raspberry Pi icon on the LCD screen through a for loop.

Note: If you have added the boot-up display program, please edit the rc.local file comment or delete the code related to the display. After restarting, close the running driver and then operate.

If the program that has already been run is not closed, the new program will run and the screen will always change due to the conflict.

The method of modification is as follows

sudo nano /etc/rc.local

You need to shield the program, which related to the cpu Info LCD (add a # in front of the code to shield the code)


Enter command:

sudo reboot

This command is to restart the Raspberry Pi. 

TAG: MPS2280D Raspberry Pi 5 PCIe to M.2 NVMe Dual SSD Adapter Board HAT Pi5 Double 2280 Raspberry Pi Pico 2 RP2350 USB A Development Board RP2350A RP2350B-MINI-A picotool Tutorial 7inch Monitor Display Raspberry Pi 7 inch HMI industrial DSI Display LCD 7inch TouchScreen Computer 720×1280 RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel Raspberry Pi 5 POE PCIe To M.2 E KEY NGFF WIFI7 WIFI6 For BE200/AX210/AX200/RTL8822CE SP485EN Intel 12th 0.85inch LCD ESP32-S3 Spotpear Raspberry Pi Pico 1.14inch LCD ESP32 Development Board C3 1.28 inch Round Rotary LCD Smart Screen 1.28inch Knob Display 240x240 LVGL for Arduino Raspberry Pi 5 Fan 4inch Round LCD HDMI Capacitive Touchscreen Display 720x720 For Raspberry Pi/Jetson Nano/mini PC CH340 driver Magnetic Encoder Servo Motor 85KG.CM 12V/24V 360° RS485 High Precision And Large Torque ESP32-P4 Pico WIFI6 Development Board C6 MIPI DSI 10.1-inch Display /CSI Camera /Audio Speaker Mic AI Deepseek BG95-M3-Zero QuecPython EVB development support LTE/EGPRS and GNSS