Skip to content

Commit

Permalink
docs: add Working principle, pin table
Browse files Browse the repository at this point in the history
  • Loading branch information
zwyzwm committed Nov 12, 2024
1 parent e479e4a commit 05b36b7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
18 changes: 9 additions & 9 deletions docs/duo/Accessories/Pico-8SEG-LED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
<Image src='/static/docs/duo/duos/Accessories/Pico-8SEG-LED.webp' maxWidth='50%' align='center' />

| Connection Name | VSYS | GND | RCLK | CLK | DIN |
|----------|------|-----|------|------|------|
| Connection Pin | 3.3V | GND | PIN50| PIN23| PIN19|

## Build the operating environment

Expand All @@ -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 [email protected]:/root/`, copy the generated shu to the login terminal, and run the program.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
<Image src='/static/docs/duo/duos/Accessories/Pico-8SEG-LED.webp' maxWidth='50%' align='center' />

| 连接名称 | VSYS | GND | RCLK | CLK | DIN |
|----------|------|-----|------|------|------|
| 连接引脚 | 3.3V | GND | PIN50| PIN23| PIN19|

## 搭建运行环境

Expand Down
Binary file not shown.

0 comments on commit 05b36b7

Please sign in to comment.