Skip to content

Commit

Permalink
docs:ST7789
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemon committed Aug 30, 2024
1 parent 38cd8a4 commit 45faa31
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docs/duo/Accessories/ST7789.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
sidebar_label: 'TFT-ST7789 display'
sidebar_position: 25
---

# Using TFT-ST7789 display on Duo S

## Hardware wiring

```
GND —— GND VCC —— VCC(3.3V)
SCL —— PIN23 SDA —— PIN19
RES —— PIN50 DC —— PIN48
CS —— PIN46 BLK —— PIN44
```

## Build the operating environment

Reference: https://github.com/milkv-duo/duo-examples

## Compile c

```
git clone https://github.com/zwyzwm/TFT-ST7789.git
```

After generating st7789, run the command `scp st7789 [email protected]:/root/` to copy the program to the board terminal.

Run the program on the board terminal

## Display
- > Display color
```
TFT_full(RED);
delay_ms(5000);
TFT_full(GREEN);
delay_ms(5000);
TFT_full(BLUE);
delay_ms(5000);
```
- > Display picture
```
Picture_display(point);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
sidebar_label: 'TFT-ST7789 显示屏 '
sidebar_position: 25
---

# 在 Duo S 上使用 TFT-ST7789 显示屏

## 硬件接线

```
GND —— GND VCC —— VCC(3.3V)
SCL —— PIN23 SDA —— PIN19
RES —— PIN50 DC —— PIN48
CS —— PIN46 BLK —— PIN44
```

## 构建运行环境

参考:https://github.com/milkv-duo/duo-examples



## 编译c

```
git clone https://github.com/zwyzwm/TFT-ST7789.git
```

生成st7789后,运行命令 `scp st7789 [email protected]:/root/`,将程序复制到板端终端。

在板端终端上运行程序

## 显示
- > 显示颜色
```
TFT_full(RED);
delay_ms(5000);
TFT_full(GREEN);
delay_ms(5000);
TFT_full(BLUE);
delay_ms(5000);
```
- > 显示图片
```
Picture_display(point);
```
15 changes: 15 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const sidebars = {
'duo/application-development/tdl-sdk/tdl-sdk-introduction',
'duo/application-development/tdl-sdk/tdl-sdk-face-detection',
'duo/application-development/tdl-sdk/tdl-sdk-yolov5',
'duo/application-development/tdl-sdk/tdl-sdk-yolov8',
],
},
{
Expand Down Expand Up @@ -128,6 +129,20 @@ const sidebars = {
'duo/camera/usb'
],
},
{
type: "category",
label: 'Accessories',
collapsed: false,
link: {
type: 'doc',
id: 'duo/Accessories/ST7789',
},
items: [
'duo/Accessories/ST7789',
'duo/Accessories/Pico-ePaper-2.13',

],
},
],
pioneer: [
{
Expand Down

0 comments on commit 45faa31

Please sign in to comment.