st7789-library-for-pico
Use an ST7789 based TFT LCD display with your Raspberry Pi Pico or any RP2040 based board πΊ
Cβ
105β 18 forksApache-2.0updated 4 years ago
git clone https://github.com/ArmDeveloperEcosystem/st7789-library-for-pico.gitArmDeveloperEcosystem/st7789-library-for-picoREADME.mdfork it β itβs yours
ST7789 library for Pico
Use an ST7789 based TFT LCD display with your Raspberry Pi Pico or any RP2040 based board πΊ
Hardware
- RP2040 board
- ST7789 TFT Display
Default Pinout
+---------+-------------------+
| ST7789 | Raspberry Pi Pico |
|---------+-------------------|
| VIN | 3V3 |
|---------+-------------------|
| GND | GND |
|---------+-------------------|
| SCK | GPIO18 |
|---------+-------------------|
| MOSI | GPIO19 |
|---------+-------------------|
| CS | GPIO17 |
|---------+-------------------|
| RST | GPIO21 |
|---------+-------------------|
| D/C | GPIO20 |
+---------+-------------------+
GPIO pins are configurable in examples or API.
CS can be set to -1 if your display has the CS pin grounded.
Examples
See examples folder.
Cloning
git clone https://github.com/ArmDeveloperEcosystem/st7789-library-for-pico.git
Building
- Set up the Pico C/C++ SDK
- Set
PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
- Create
builddir, runcmakeandmake:
mkdir build
cd build
cmake .. -DPICO_BOARD=pico
make
- Copy example
.uf2to Pico when in BOOT mode.
License
Disclaimer: This is not an official Arm product.
more like this
RaspPi-Pico-Examples-Fedora
Compiling Raspberry Pi Pico RP2040 / Pico2 RP2350 C/C++ programs on Fedora
codeβ
51