1.44inch LCD Display ST7735S 128x128

Overview

This product is a PICO-1.44 inch LCD display, resolution of 128 x 128, internal ST7735S controller, the control interface is SPI, we provide Raspberry Pi Pico C and python demo codes, which can draw dots, lines, rectangles and circles, and display English number characters.

Product Parameters

Resolution128 x 128
Control ChipST7735S
LCD Display Area26.5.mm(W) x 25.5mm(H)
Screen TypeTFT
Operation Temp-20 ℃ to +70 ℃
Operating Voltage3.3V
Interface4-wire SPI
Size65mm(Length) x 30.30mm(Width)
Weight40g

Hardware Interface Configuration Description

Module and Raspberry Pi Pico wiring pin definition table:

LCD InterfacePin FunctionDescription
VCCVSYSVDD(3.3V)
GNDGNDGND
SDAGP7SPI data input
SCKGP6SPI clock input
CSGP5SPI chip selection, active at low level
BLGP13Backlight control
D/CGP11Data/command control pin (high level represents data, low level represents command)
RESETGP12External reset pin (low level reset)
K1GP8User button K1
K2GP4User button K2
K3GP3User button K3
K4GP2User button K4
LEFTGP16joystick'sLeft button
DOWNGP20joystick'sDown button
RIGHTGP19joystick'sRight button
CENTGP17joystick'sCenter button
UPGP18joystick'sUp button

Demo Codes Usage

C Version Demo Codes

Raspberry Pi Pico C/C++ Windows Environment setup

1. Installation arm gcc compiler

browser enters the web address:https://developer.arm.com/downloads/-/gnu-rm

Select the 2019-Q4 version to download and install,

PICO-1.44inch-LCD-Display

Remember to check it during the installation process

☼Add path to environment variable

PICO-1.44inch-LCD-Display

2.Installation Cmake

browser enters the web address: https://cmake.org/download/

PICO-1.44inch-LCD-Display

Select cmake-3.23.3-windows-x86_64.msi download and install by default

3. Installation Visual Stdio2019(Currently tried the latest 2022 version is also OK)

Need the 2019 version to find the URL to download, official website address: https://visualstudio.microsoft.com/zh-hans/downloads/

Tick during installation

PICO-1.44inch-LCD-Display

4. Tick during installation Python3.7

browser enters the web address:https://www.python.org/downloads/windows/

seek out Python3.7.9-Aug.17,2020

PICO-1.44inch-LCD-Display

Select this option to install and download, remember to check it during the installation process

☼Add Python 3.7 to PATH

PICO-1.44inch-LCD-Display

5. Open the start menu and search for cmd, run as administrator

PICO-1.44inch-LCD-Display

Use the cd command to enter the python37 directory, the default address is:C:\Users\[ username]\AppData\Local\Programs\Python\Python37

run mklink python3.exe python.exe

PICO-1.44inch-LCD-Display

6. Installation Git

browser enters the web address:https://git-scm.com/download/win

Download it yourself according to your system version

PICO-1.44inch-LCD-Display

After the download is complete, it is installed by default.

7. Configure PICO-SDK

1)achieve pico-sdk and pico-examples

Greate a directory without a Chinese path, after installing Git, right-click in the blank space in the directory and select Git Bush Here.

Enter the command in the command window (one line at a time):

git clone -b master https://github.com/raspberrypi/pico-sdk.git
git clone -b master https://github.com/raspberrypi/pico-examples.git

2)Initialize

Enter commands (one line at a time):

cd pico-sdk

git submodule update --init

8. Set the pico-sdk path

Found in the start menu Developer PowerShell for VS2019 and turn on.

PICO-1.44inch-LCD-Display

Enter in the command window:setx PICO_SDK_PATH "[ Store the PICO-SDK path]\pico-sdk"

PICO-1.44inch-LCD-Display

9. Compile the official demo codes

Close the command window and reopen it, using the cd command to navigate to the pico-examples directory.

PICO-1.44inch-LCD-Display

Then enter the following commands in turn:

cd build
c make -G "NMake Makefiles" ..
nmake
PICO-1.44inch-LCD-Display

Wait for the compilation to complete,to complete Raspberry Pico C/C++ Windows.

10. Visual Studio Code Development environment setup

1) installation Visual Studio Code

Official website installation: https://visualstudio.microsoft.com/zh-hans/downloads/

2) Install by your choice vscode C Language plugins,the Cmake Tools plugin must be installed.

3) Open Settings in the lower right corner of vscode and enter it in the search bar:

cmake.configureEnvironment

4) Add item PICO_SDK_PATH, the value is the pico-SDK storage address.

PICO-1.44inch-LCD-Display

5) Set Cmake.generator, and continue to enter cmake.generator in the setting search column fill in NMake Makefiles.

PICO-1.44inch-LCD-Display

6) Close vscode.

7) Open Developer PowerShell for VS2019 Enter code to reopen vscode.

8) Open the pico examples folder in vscode.

9) Vscode Window Bottom.

PICO-1.44inch-LCD-Display

① Compile the tool, select GCC 9.2.1 arm-none-eabi, if there is no option click to select the first item, wait for a little reload to appear GCC 9.2.1 arm-none-eabi.

PICO-1.44inch-LCD-Display

② Press the build button and click the compile project

③ Select the project to compile

11. Download the USB serial output library

Open the pico-sdk directory, open the lib\tinyusb directory, right-click in the blank space and select Git Bash Here to enter the git clone https://github.com/hathach/tinyusb in the command window. If the kula fetch time is too long, you can directly open the URL https://github.com/hathach/tinyusb, download it from the web page, and copy all the files under the folder to the pico-sdk\lib\tinyusb directory.

PICO-1.44inch-LCD-Display

Open the project, compile, and burn

1. Store the LCD_1INCH4 E-Paper Display folder in a non-Chinese directory, empty all files in the demo codes\c\ LCD_1INCH44\build folder, and create a new folder named build if there is no build folder.

2. Open VSCODE using the method described in 10.(7) above to open VSCODE, open the demo codes\c\LCD_1INCH44 folder in the project directory in VSCODE, select Compile Project as LCD_1INCH44, and select GCC 9.2.1 arm-none-eabi in the pop-up options, as shown in the following figure.

PICO-1.44inch-LCD-Display

After completing the above operation, the ① marked in the figure below is the selected compiler, click ② Build to start compiling.

PICO-1.44inch-LCD-Display

Complete the compilation as shown below.

PICO-1.44inch-LCD-Display

3. Open the demo codes\c\ LCD_1INCH44\build contents and then find out LCD_1INCH44.uf2.

4. Press and hold the BOOTSEL button on Pico when the power is off, connect the computer with a USB cable and release the button, at this time pop up an RPI-RP2 disk directory, drag the LCD_1INCH44.uf2 file into the disk directory, and complete the burning.

5. Press the button and observe the change of the LCD display.

Python version demo codes

1. Installation Thonny

Thonny download:https://thonny.org

2. After installing Thonny, hold down the BOOTSEL button on Pico when the power is off, connect the computer with a USB cable and release the button, at this time pop up an RPI-RP2 disk directory, drag rp2-pico- 20220618-v1.19.1.uf2 in the demo codes\python directory into the RPI-RP2 disk.

3. Right click the pico-lcd-1inch44.py in the demo codes demo codes\python directory, open with Thonny, click Tools - Settings, select MicroPython (Raspberry Pi Pico) as the interpreter in the interpreter bar, and set the Raspberry Pi Pico port (COMx: the port number x of the computer may be different), and then click OK.

PICO-1.44inch-LCD-Display

4. Click the "Run current script" button or press F5 to run the current script and observe the LCD display. When the screen enters the button display interface, you can press the button on the board to view the screen change.

Resources

Schematic

Demo Codes

Product

Data Sheet

ST7735S

Technical Support

Technical Support and Product Notes