-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lemon
committed
Aug 19, 2024
1 parent
17909b5
commit 26d7308
Showing
3 changed files
with
88 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
sidebar_label: 'Pico-8SEG-LED-digital tube' | ||
sidebar_position: 25 | ||
--- | ||
|
||
# Use Pico-8SEG-LED digital tube on Duo S | ||
|
||
## Hardware connection | ||
|
||
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 | ||
|
||
``` | ||
VSYS —— 3.3V GND —— GND | ||
RCLK —— PIN50 CLK —— PIN23 | ||
DIN —— PIN19 | ||
``` | ||
|
||
## Build the operating environment | ||
|
||
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. | ||
|
||
## Digital tube counting | ||
|
||
> - 0000-9999 loop counting | ||
In the main function, call the function ` LED_8SEG_stopwatch();` to achieve 0000-9999 loop counting. | ||
|
||
> - 0-9 loop counting of the units digit | ||
In the main function, call the function ` Increment(); ` to achieve 0-9 loop counting of the units digit. |
45 changes: 45 additions & 0 deletions
45
i18n/zh/docusaurus-plugin-content-docs/current/duo/Accessories/Pico-8SEG-LED.md
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
sidebar_label: 'Pico-8SEG-LED-数码管' | ||
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 | ||
|
||
``` | ||
VSYS —— 3.3V GND —— GND | ||
RCLK —— PIN50 CLK —— PIN23 | ||
DIN —— PIN19 | ||
``` | ||
|
||
## 构建运行环境 | ||
|
||
参考:https://github.com/milkv-duo/duo-examples | ||
|
||
|
||
## 编译c | ||
|
||
``` | ||
git clone https://github.com/zwyzwm/Pico-8SEG-LED.git | ||
``` | ||
下载编译完成之后,运行命令 ` scp shu [email protected]:/root/ `,将生成的 shu ,复制到登陆终端,运行程序。 | ||
|
||
|
||
## 数码管计数 | ||
|
||
> - 0000-9999的循环计数 | ||
在主函数中,调用函数` LED_8SEG_stopwatch();`,即可实现0000-9999的循环计数。 | ||
|
||
> - 个位 0-9的循环计数 | ||
在主函数中,调用函数` Increment(); `,即可实现个位0-9的循环计数。 | ||
|
||
|
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