-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Working principle, pin table
- Loading branch information
Showing
3 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.