Demo: Change picture on display - Toby-eaaa/Mini_Pupper_eaaa GitHub Wiki

There is a demo program on the Puppy for showing a picture of a dog:

Path:

/home/ubuntu/Robotics/QuadrupedRobot/Mangdang/Example/display/

Write “ls” to see there is a demo.py program and a dog.png picture.

Open the code with:

sudo nano demo.py  

In disp = ST7789() write 27, 24, 26 (specifies connection with display):

ST7789(27, 24, 26)  

“Ctrl + o“ and Enter for save. “Ctrl + x“ for exit.

To run the program and display the demo picture:

sudo python3 demo.py