Compare commits

..

No commits in common. "master" and "v0.0.2" have entirely different histories.

4 changed files with 1240 additions and 1242 deletions

1
.nvmrc
View File

@ -1 +0,0 @@
v10.3.0

View File

@ -1,4 +1,4 @@
# easy-usb-relay # usbrelay
**THIS IS CURRENTLY IN AN EXPERIMENTAL STATE:** It does not yet support multiple boards or other manufacturers. Coming soon... **THIS IS CURRENTLY IN AN EXPERIMENTAL STATE:** It does not yet support multiple boards or other manufacturers. Coming soon...
@ -7,13 +7,13 @@
## Setup ## Setup
```bash ```bash
npm install --save easy-usb-relay npm install --save usbrelay
``` ```
## Usage ## Usage
```js ```js
const { Board } = require('easy-usb-relay') const { Board } = require('usbrelay')
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 `easy-usb-relay` Please see [examples directory](/examples) for more examples on using `usbrelay`
## API ## API

2462
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,18 @@
{ {
"name": "easy-usb-relay", "name": "usbrelay",
"version": "0.0.4", "version": "0.0.2",
"description": "A simple USB relay support library", "description": "A USB relay support library",
"main": "src/relays.js", "main": "src/relay.js",
"scripts": { "scripts": {
"test": "jest" "test": "jest"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "github.com/danawoodman/easy-usb-relay" "url": "github.com/danawoodman/usbrelay"
}, },
"keywords": [ "keywords": [
"usb", "usb",
"relay", "relay",
"sainsmart",
"arduino", "arduino",
"rpi", "rpi",
"raspberry", "raspberry",