Skip to content

Commit

Permalink
Pico-8SEG-LED
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemon committed Aug 19, 2024
1 parent 17909b5 commit 26d7308
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
41 changes: 41 additions & 0 deletions docs/duo/Accessories/Pico-8SEG-LED.md
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.
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的循环计数。


3 changes: 2 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ const sidebars = {
id: 'duo/Accessories/Pico-ePaper-2.13',
},
items: [
'duo/Accessories/Pico-ePaper-2.13'
'duo/Accessories/Pico-ePaper-2.13',
'duo/Accessories/Pico-8SEG-LED'
],
},
],
Expand Down

0 comments on commit 26d7308

Please sign in to comment.