From 45faa31013e40d320a939075304da12d9d2fa28b Mon Sep 17 00:00:00 2001 From: Lemon Date: Fri, 30 Aug 2024 10:22:14 +0800 Subject: [PATCH] docs:ST7789 --- docs/duo/Accessories/ST7789.md | 51 ++++++++++++++++++ .../current/duo/Accessories/ST7789.md | 54 +++++++++++++++++++ sidebars.js | 15 ++++++ 3 files changed, 120 insertions(+) create mode 100644 docs/duo/Accessories/ST7789.md create mode 100644 i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/ST7789.md diff --git a/docs/duo/Accessories/ST7789.md b/docs/duo/Accessories/ST7789.md new file mode 100644 index 00000000..a686e6ff --- /dev/null +++ b/docs/duo/Accessories/ST7789.md @@ -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 root@192.168.42.1:/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); + +``` \ No newline at end of file diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/ST7789.md b/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/ST7789.md new file mode 100644 index 00000000..3b5f723a --- /dev/null +++ b/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/ST7789.md @@ -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 root@192.168.42.1:/root/`,将程序复制到板端终端。 + +在板端终端上运行程序 + +## 显示 +- > 显示颜色 + +``` +TFT_full(RED); +delay_ms(5000); +TFT_full(GREEN); +delay_ms(5000); +TFT_full(BLUE); +delay_ms(5000); + +``` +- > 显示图片 + +``` +Picture_display(point); + +``` diff --git a/sidebars.js b/sidebars.js index aeb85c1a..3224e3d1 100644 --- a/sidebars.js +++ b/sidebars.js @@ -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', ], }, { @@ -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: [ {