Working with Raspberry Pi Pico
Hardware Connection
Use 15PIN jumper wires to connect the module to the Raspberry Pi Pico according to the table below:
| LCD Pin | Raspberry Pi Pico |
|---|---|
| VCC | NC |
| 3V3 | 3V3 |
| GND | GND |
| MISO | GP12 |
| MOSI | GP11 |
| SCLK | GP10 |
| SD_CS | NC |
| LCD_CS | GP9 |
| LCD_DC | GP14 |
| LCD_RST | GP13 |
| LCD_BL | GP15 |
| TP_SDA | GP6 |
| TP_SCL | GP7 |
| TP_INT | GP8 |
| TP_RST | GP5 |
Configure the MicroPython Environment
-
Install Thonny IDE.
-
Hold down the BOOTSEL button on the Pico and connect it to the computer. Release the button once the computer recognizes a removable disk.
-
Download and extract the Raspberry Pi Pico MicroPython firmware, and copy the
.uf2firmware to the Pico disk. After the copy is complete, the disk will automatically disconnect. -
Open Thonny, click the interpreter status in the lower right corner, and in "Configure interpreter" select "MicroPython (Raspberry Pi Pico)", with the port set to automatic detection.

-
Click the stop button. Once the Shell window displays the MicroPython version and Pico information, the connection is successful.

Run the Example
-
Download and extract the 2inch Capacitive Touch LCD Raspberry Pi Pico Examples.
-
Open
2inch_Capacitive_Touch_LCD_Demo_Pico/Python/2inch_Capacitive_Touch_LCD.pyin Thonny.

-
Click the run button. After the program runs, the screen enters the touch drawing board interface.
To run automatically on power-up, rename the example file to main.py and save it to the Pico.
