Skip to main content

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 PinRaspberry Pi Pico
VCCNC
3V33V3
GNDGND
MISOGP12
MOSIGP11
SCLKGP10
SD_CSNC
LCD_CSGP9
LCD_DCGP14
LCD_RSTGP13
LCD_BLGP15
TP_SDAGP6
TP_SCLGP7
TP_INTGP8
TP_RSTGP5

Configure the MicroPython Environment​

  1. Install Thonny IDE.

  2. Hold down the BOOTSEL button on the Pico and connect it to the computer. Release the button once the computer recognizes a removable disk.

  3. Download and extract the Raspberry Pi Pico MicroPython firmware, and copy the .uf2 firmware to the Pico disk. After the copy is complete, the disk will automatically disconnect.

  4. 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.

    Configure the Raspberry Pi Pico MicroPython interpreter in Thonny

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

    Thonny successfully connected to the Raspberry Pi Pico

Run the Example​

  1. Download and extract the 2inch Capacitive Touch LCD Raspberry Pi Pico Examples.

  2. Open 2inch_Capacitive_Touch_LCD_Demo_Pico/Python/2inch_Capacitive_Touch_LCD.py in Thonny.

    Select and open the example file in Thonny

    2inch Capacitive Touch LCD Raspberry Pi Pico example code

  3. 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.

Save the example as main.py in Thonny

Save main.py to the Raspberry Pi Pico