Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pico-8SEG-LED #63

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions docs/duo/Accessories/Pico-8SEG-LED1.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,41 @@
---
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循环计数。
14 changes: 14 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const sidebars = {
'duo/application-development/tdl-sdk/tdl-sdk-introduction',
'duo/application-development/tdl-sdk/tdl-sdk-face-detection',
'duo/application-development/tdl-sdk/tdl-sdk-yolov5',
'duo/application-development/tdl-sdk/tdl-sdk-yolov8'
],
},
{
Expand Down Expand Up @@ -127,6 +128,19 @@ const sidebars = {
'duo/camera/usb'
],
},
{
type: "category",
label: 'Accessories',
collapsed: false,
link: {
type: 'doc',
id: 'duo/Accessories/Pico-8SEG-LED',
},
items: [

'duo/Accessories/Pico-8SEG-LED',
],
},
],
pioneer: [
{
Expand Down
Loading