diff --git a/docs/duo/Accessories/Pico-8SEG-LED.md b/docs/duo/Accessories/Pico-8SEG-LED.md index 2f3cdf6e..abe35262 100644 --- a/docs/duo/Accessories/Pico-8SEG-LED.md +++ b/docs/duo/Accessories/Pico-8SEG-LED.md @@ -5,17 +5,19 @@ sidebar_position: 25 # Use Pico-8SEG-LED digital tube on Duo S -## Hardware connection +## Working Principle -Pico-8SEG-LED pin diagram: https://www.waveshare.net/wiki/Pico-8SEG-LED#.E6.8E.A5.E5.8F.A3.E8.AF.B4.E6.98.8E +Using SPI communication interface, 74HC595 chip, contains an 8-bit serial input and parallel output shift register and provides an 8-bit D-type storage register, which has 8-bit 3-state output. Independent clock signals are provided to the shift register and storage register respectively. The shift register has direct clear function, serial input and output function and cascade application. (Standard pins are used.) Both the shift register and the storage register are triggered by the positive edge clock. If the two clocks are connected together, the shift register is always the previous clock pulse of the storage register. All input ports are equipped with anti-static and instantaneous overvoltage protection circuits. -``` -VSYS —— 3.3V GND —— GND +## Hardware connection -RCLK —— PIN50 CLK —— PIN23 +Pico-8SEG-LED pin diagram: -DIN —— PIN19 -``` + + +| Connection Name | VSYS | GND | RCLK | CLK | DIN | +|----------|------|-----|------|------|------| +| Connection Pin | 3.3V | GND | PIN50| PIN23| PIN19| ## Build the operating environment @@ -24,9 +26,7 @@ Reference: https://github.com/milkv-duo/duo-examples ## Compile c ``` - git clone https://github.com/zwyzwm/Pico-8SEG-LED.git - ``` After downloading and compiling, run the command `scp shu root@192.168.42.1:/root/`, copy the generated shu to the login terminal, and run the program. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/Pico-8SEG-LED.md b/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/Pico-8SEG-LED.md index cc8c4216..63daa101 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/Pico-8SEG-LED.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/Pico-8SEG-LED.md @@ -5,17 +5,19 @@ sidebar_position: 25 # 在 Duo S 上使用 Pico-8SEG-LED 数码管 -## 硬件连接 +## 工作原理 -Pico-8SEG-LED 引脚图:https://www.waveshare.net/wiki/Pico-8SEG-LED#.E6.8E.A5.E5.8F.A3.E8.AF.B4.E6.98.8E +使用SPI通信接口,74HC595芯片,包含一个8位串行输入与并行输出移位寄存器并提供一个8位D型存储寄存器,该存储寄存器具有8位3三态输出。分别提供独立的时钟信号给移位寄存器和存储寄存器,移位寄存器具有直接清零功能和串行输入输出功能以及级联应用.(采用标准引脚。)移位寄存器和存储寄存器均为使用正边缘时钟触发,如果这两个时钟连接在一起,移位寄存器始终在存储寄存器的前一个时钟脉冲。所有输入端口均设有防静电及瞬间过压保护电路。 -``` -VSYS —— 3.3V GND —— GND +## 硬件连接 -RCLK —— PIN50 CLK —— PIN23 +Pico-8SEG-LED 引脚图: -DIN —— PIN19 -``` + + +| 连接名称 | VSYS | GND | RCLK | CLK | DIN | +|----------|------|-----|------|------|------| +| 连接引脚 | 3.3V | GND | PIN50| PIN23| PIN19| ## 搭建运行环境 diff --git a/static/docs/duo/duos/Accessories/Pico-8SEG-LED.webp b/static/docs/duo/duos/Accessories/Pico-8SEG-LED.webp new file mode 100644 index 00000000..97050743 Binary files /dev/null and b/static/docs/duo/duos/Accessories/Pico-8SEG-LED.webp differ