Skip to content

Commit

Permalink
增加潘多拉板ST7789 DEMO
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Feb 10, 2024
1 parent 398d763 commit 6cfaf9a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
2 changes: 1 addition & 1 deletion zh/library-examples/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- 屏幕驱动类
- Adafruit屏幕库
- [Adafruit GFX图形库](/zh/library-examples/display/Adafruit/Adafruit-GFX-Library/Adafruit-GFX-Library.md)
- [Adafruit ST7735屏幕驱动库](/zh/library-examples/display/Adafruit/Adafruit-ST7735/Adafruit-ST7735.md)
- [Adafruit ST7735/89屏幕驱动库](/zh/library-examples/display/Adafruit/Adafruit-ST7735-89/Adafruit-ST7735-89.md)

- 信号输入输出类
- [Adafruit BusIO库](/zh/library-examples/signal-io/Adafruit/Adafruit-BusIO/Adafruit-BusIO.md)
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Adafruit ST7735屏幕驱动库
# Adafruit ST7735/89屏幕驱动库

## 1 简介

本文将介绍如何使用 [RT-Thread 已经支持 RTduino 的 BSP](/zh/beginner/bsp-develop?id=_2-已经支持rtduino的bsp) 将 Adafruit ST7735 屏幕驱动库在 RTduino/RT-Thread 环境下运行起来。
本文将介绍如何使用 [RT-Thread 已经支持 RTduino 的 BSP](/zh/beginner/bsp-develop?id=_2-已经支持rtduino的bsp) 将 Adafruit ST7735/ST7789 屏幕驱动库在 RTduino/RT-Thread 环境下运行起来。

Adafruit 是一个海外 Arduino 开源硬件社区,其贡献了[大量 Arduino 驱动库](https://github.com/orgs/adafruit/repositories?language=c%2B%2B&type=all)

Expand All @@ -20,15 +20,24 @@ Adafruit 是一个海外 Arduino 开源硬件社区,其贡献了[大量 Arduin
- 已对接RT-Thread SPI设备驱动框架
- 已对接RTduino SPI

## 2 ST7735 TFT屏幕驱动芯片
## 2 ST7735/89 TFT屏幕驱动芯片

ST7735是一款高性能的TFT屏幕驱动芯片,由 Sitronix 公司推出。其支持多种分辨率和尺寸,包括128x160、128x128等,具备出色的16/18位色深,为用户提供细腻生动的图像显示。适用于嵌入式系统、便携设备及DIY电子项目,可通过SPI和8位并行接口实现快速而灵活的数据传输。

ST7735 芯片手册:

```pdf
https://www.displayfuture.com/Display/datasheet/controller/ST7735.pdf
```

ST7789 芯片手册:

```pdf
https://newhavendisplay.com/content/datasheets/ST7789V.pdf
```

## 3 如何运行Adafruit ST7735库
## 3 如何运行Adafruit ST7735/89库

### 3.1 开启RTduino

Expand All @@ -39,9 +48,9 @@ Hardware Drivers Config --->
Onboard Peripheral Drivers --->
[*] Compatible with Arduino Ecosystem (RTduino)
```
### 3.2 开启Adafruit ST7735库
### 3.2 开启Adafruit ST7735/89库

Adafruit ST7735 库已经注册到 RT-Thread 软件包中心:
Adafruit ST7735/89 库已经注册到 RT-Thread 软件包中心:

```Kconfig
RT-Thread online packages --->
Expand Down
21 changes: 21 additions & 0 deletions zh/project-examples/bsps/STM32L475-Pandora/ST7789.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# STM32L475潘多拉板驱动ST7789 TFT显示屏

本文介绍如何在STM32L475潘多拉开发板使用基于RTduino环境,使用Arduino库驱动板载ST7789 TFT显示屏。

潘多拉板目录位于 `rt-thread\bsp\stm32\stm32l475-atk-pandora`

```Kconfig
Hardware Drivers Config --->
Onboard Peripheral Drivers --->
[*] Compatible with Arduino Ecosystem (RTduino)
[*] Enable Arduino LCD (ST7789) library
[*] Enable Arduino LCD (ST7789) library demo
```

其中:

- Compatible with Arduino Ecosystem (RTduino):本 BSP 开启 RTduino,具备对 Arduino 库的兼容能力。
- Enable Arduino LCD (ST7789) library:使能 Arduino ST7789 驱动库,会自动依赖 Arduino [Adafruit ST7735/89](/zh/library-examples/display/Adafruit/Adafruit-ST7735-89) 库。
- Enable Arduino LCD (ST7789) library demo:开启 ST7789 演示示例,开机自动运行。

烧录后,运行效果如下:

![st7789-demo](./figures/st7789-demo.gif)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6cfaf9a

Please sign in to comment.