# digital-led

> 在树莓派上驱动数码管显示。

Latest version **1.0.0** (published 2023-12-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install digital-led
pnpm add digital-led
yarn add digital-led
bun add digital-led
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-12-24 |
| First published | 2023-12-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kevin zhang |
| Maintainers | themis.hunter |

## Links

- npm: https://www.npmjs.com/package/digital-led
- npm.io page: https://npm.io/package/digital-led

## Dependencies (1)

- [onoff](https://npm.io/package/onoff.md) ^6.0.3

## Recent versions

- 1.0.0 (latest) — 2023-12-24

## README

# digital-led

在树莓派上驱动数码管显示。

使用nodejs

为kevin zhang自己的raspberray pi 3B+，配合YH-3641AG型号数码管使用。

## DigitalLed

### 使用方法
```js
const { DigitalLed } = require("digital-led")

const main = async function() {
  const led = new DigitalLed()
  led.cleanup()
}

main()
```
### 方法
- select()
- multipleSelect()
- displayNumber()
- displayStroke()
- multipleDisplayStroke()
- check()
- displayBigNumberStart()
- displayBigNumberStop()
- cleanDigitals()
- cleanPins()
- cleanup()
- processing1Start()
- processing2Start()
- processing3Start()
- processingStop()
- sleep()

## Service

### 使用方法
```js
const { Service } = require('digital-led')
Service.start()
```

> 如果还有疑问，看代码或示例仓库吧
> [示例仓库地址](git@gitee.com:zhangkefei/digital-led-action.git)

---
_Source: https://npm.io/package/digital-led · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
