mirror of
https://github.com/zyphlar/easy-usb-relay.git
synced 2024-03-08 07:57:47 +00:00
Change package name
This commit is contained in:
parent
2cf4893252
commit
916f75c86e
|
@ -7,13 +7,13 @@
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install --save usbrelay
|
npm install --save easy-usb-relay
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { Board } = require('usbrelay')
|
const { Board } = require('easy-usb-relay')
|
||||||
|
|
||||||
const numRelays = 2
|
const numRelays = 2
|
||||||
const relays = new Board(numRelays)
|
const relays = new Board(numRelays)
|
||||||
|
@ -31,7 +31,7 @@ relays.on(1)
|
||||||
relays.off(1)
|
relays.off(1)
|
||||||
```
|
```
|
||||||
|
|
||||||
Please see [examples directory](/examples) for more examples on using `usbrelay`
|
Please see [examples directory](/examples) for more examples on using `easy-usb-relay`
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user