Merge pull request #5673 from Rbb666/master
|
@ -0,0 +1,55 @@
|
||||||
|
# Get Raspberry Pi PICO Running on RT-Thread RTOS with an Opensource Light Versatile Graphics Library
|
||||||
|
|
||||||
|
[中文页](README_zh.md) |
|
||||||
|
|
||||||
|
## Hardware:
|
||||||
|
|
||||||
|
- [Raspberry Pi PICO](https://www.raspberrypi.com/products/raspberry-pi-pico/)
|
||||||
|
|
||||||
|
- [TFT-SPI ST7789](https://pdf1.alldatasheet.com/datasheet-pdf/view/1170800/SITRONIX/ST7789H2.html)
|
||||||
|
|
||||||
|
- Single chip TFT-LCD Controller/Driver with On-chip Frame Memory (FM)
|
||||||
|
|
||||||
|
- Display Resolution: 240*RGB (H) *320(V)
|
||||||
|
|
||||||
|
- Frame Memory Size: 240 x 320 x 18-bit = 1,382,400 bits
|
||||||
|
|
||||||
|
- LCD Driver Output Circuits
|
||||||
|
|
||||||
|
\- Source Outputs: 240 RGB Channels
|
||||||
|
|
||||||
|
\- Gate Outputs: 320 Channels
|
||||||
|
|
||||||
|
\- Common Electrode Output
|
||||||
|
|
||||||
|
## Software:
|
||||||
|
|
||||||
|
- Opensource [RT-Thread IoT OS](https://www.rt-thread.io/) Project
|
||||||
|
- [RT-Thread Studio](https://www.rt-thread.io/studio.html) IDE (Free)
|
||||||
|
- Opensource [LVGL](https://lvgl.io/) Project
|
||||||
|
|
||||||
|
## Enable LVGL for LCD
|
||||||
|
|
||||||
|
![](./img_en/1.png)
|
||||||
|
|
||||||
|
## Configure Screen Parameter
|
||||||
|
|
||||||
|
Select the screen size according to your project requirements (This tutorial is using ST7789).
|
||||||
|
|
||||||
|
<img src="./img_en/2.png" style="zoom:80%;" />
|
||||||
|
|
||||||
|
## LVGL Display Interface Adopting
|
||||||
|
|
||||||
|
<img src="./img_en/3.png" style="zoom:80%;" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
![]()<img src="./img_en/4.png" alt="7" style="zoom: 80%;" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<img src="./img_en/5.png" style="zoom:80%;" />
|
||||||
|
|
||||||
|
## Presentation
|
||||||
|
|
||||||
|
<iframe src="//player.bilibili.com/player.html?aid=893079529&bvid=BV1oP4y1E7Md&cid=481212104&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
|
|
@ -0,0 +1,52 @@
|
||||||
|
# Raspberry_pico 使用 RT-Thread 运行 lvgl
|
||||||
|
|
||||||
|
## 硬件参数
|
||||||
|
|
||||||
|
树莓派 pico :
|
||||||
|
|
||||||
|
* 双核 Arm Cortex-M0 + @ 133MHz
|
||||||
|
* 芯片内置 264KB SRAM 和 2MB 的板载闪存
|
||||||
|
* 通过专用 QSPI 总线支持最高 16MB 的片外闪存
|
||||||
|
* DMA 控制器
|
||||||
|
* 30 个 GPIO 引脚,其中 4 个可用作模拟输入
|
||||||
|
|
||||||
|
- 2 个 UART、2 个 SPI 控制器和 2 个 I2C 控制器
|
||||||
|
|
||||||
|
- 16 个 PWM 通道
|
||||||
|
|
||||||
|
更多详见:[树莓派中文站](https://pico.org.cn/)
|
||||||
|
|
||||||
|
树莓派拓展板:
|
||||||
|
|
||||||
|
* 屏幕:ST7789 SPI 接口
|
||||||
|
|
||||||
|
## 软件及环境:
|
||||||
|
|
||||||
|
- [RT-Thread IoT OS](https://www.rt-thread.io/) RT-Thread 物联网操作系统
|
||||||
|
- [RT-Thread Studio](https://www.rt-thread.io/studio.html) IDE (免费版)
|
||||||
|
- 开源的 [LVGL](https://lvgl.io/) 图形引擎
|
||||||
|
|
||||||
|
## 使能 LVGL for LCD
|
||||||
|
|
||||||
|
![](./img/1.png)
|
||||||
|
|
||||||
|
## 配置屏幕参数
|
||||||
|
|
||||||
|
<img src="./img/2.png" style="zoom:80%;" />
|
||||||
|
|
||||||
|
## LVGL 显示接口对接
|
||||||
|
|
||||||
|
<img src="./img/3.png" style="zoom:80%;" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
![]()<img src="./img/4.png" alt="7" style="zoom:80%;" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<img src="./img/5.png" style="zoom:80%;" />
|
||||||
|
|
||||||
|
## 效果展示
|
||||||
|
|
||||||
|
<iframe src="//player.bilibili.com/player.html?aid=893079529&bvid=BV1oP4y1E7Md&cid=481212104&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
|
||||||
|
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 117 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 122 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 60 KiB |