https://github.com/deshrike/pico-waveshare
Experiment with the RP2040 based board with a round 240x240 pixel display.
https://github.com/deshrike/pico-waveshare
24580 pico rp2040 waveshare waveshare-lcd
Last synced: 8 days ago
JSON representation
Experiment with the RP2040 based board with a round 240x240 pixel display.
- Host: GitHub
- URL: https://github.com/deshrike/pico-waveshare
- Owner: DeShrike
- Created: 2024-03-10T09:32:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T11:22:02.000Z (about 1 year ago)
- Last Synced: 2025-04-19T11:02:12.422Z (11 months ago)
- Topics: 24580, pico, rp2040, waveshare, waveshare-lcd
- Language: C
- Homepage:
- Size: 9.79 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Waveshare RP2040 Round Touch LCD 1.28"
Experiment with the RP2040 based board with a round 240x240 pixel display.
https://www.waveshare.com/rp2040-touch-lcd-1.28.htm
RP2040-Touch-LCD-1.28
SKU: 24580
- Linux (tested on Ubuntu 18.04.1)
- C / C++
- Command line
- Pico SDK
- Docker (optional)
- LVGL
## Installation
```console
cd
git clone https://www.github.com/deshrike/pico-waveshare
cd pico-waveshare
git submudule update --init
```
## Pico SDK
You can compile the Pico programs locally, or using Docker.
To compile locally, install the Pico SDK.
To use a Docker image, follow these steps:
```console
cd
mkdir pico-waveshare
docker run -d -it --name pc1 --mount type=bind,source=${PWD},target=/home/dev lukstep/raspberry-pi-pico-sdk:latest
```
After a reboot, you will need to restart the container:
```console
docker start pc1
```
Connect to the Docker container:
```console
docker exec -it pc1 /bin/sh
```
Inside the Docker container:
```console
cd /home/dev/pico-waveshare
```
## Compiling
```console
cd /home/dev/pico-waveshare (if using Docker)
cd /pico-waveshare (if you have installed the Pico SDK locally)
cd cdjwatch
mkdir build
cd build
cmake ..
make
```
The build folder should now contain a file called cdjwatch.uf2.
Copy this file to the device.
Follow the same steps for the other examples: blink, canvastest and lvgltest.
## Examples
### blink
Pico example to blink the on-board LED (Backlight).
### lvgltest
Example from Waveshare. LVGL, Touch, LCD, Sensors.
### cdjwatch
Simple LVGL test showing some text and a logo.
### canvastest
My own easy framework to write to the screen and read touch input.
Drawing primitives: rectangle, circles, lines, ascii font, ...