Import SPI/GPIO

This commit is contained in:
Starbeamrainbowlabs 2019-01-03 19:57:54 +00:00
parent 3cfa37e731
commit dcfbd2f498
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 31 additions and 14 deletions

View file

@ -1,4 +1,9 @@
#!/usr/bin/env node #!/usr/bin/env node
import Constants from './constants.mjs';
import Spi from 'spi';
import Gpio from 'gpio';
const settings = { const settings = {
spi_device: "/dev/spidev0.0" spi_device: "/dev/spidev0.0"
}; };

10
package-lock.json generated
View file

@ -1,5 +1,13 @@
{ {
"name": "lora-gateway", "name": "lora-gateway",
"version": "0.0.1", "version": "0.0.1",
"lockfileVersion": 1 "lockfileVersion": 1,
"requires": true,
"dependencies": {
"gpio": {
"version": "0.2.10",
"resolved": "https://registry.npmjs.org/gpio/-/gpio-0.2.10.tgz",
"integrity": "sha512-VBFvAye/pK/oWHDUCa2F8jyrtHhnHXR/zHxMz3REEgznfMCQyzy6yRU8hFNuMSO+AG3YN4fH71Suj6mvM3cG3w=="
}
}
} }

View file

@ -1,15 +1,19 @@
{ {
"name": "lora-gateway", "name": "lora-gateway",
"version": "0.0.1", "version": "0.0.1",
"description": "A bidirectional single-channel The Things Network gateway.", "description": "A bidirectional single-channel The Things Network gateway.",
"main": "gateway.js", "main": "gateway.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@git.starbeamrainbowlabs.com:sbrl/TheThingsNetworkGateway.git" "url": "git@git.starbeamrainbowlabs.com:sbrl/TheThingsNetworkGateway.git"
}, },
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"license": "MPL-2.0" "license": "MPL-2.0",
"dependencies": {
"gpio": "^0.2.10",
"spi": "^0.2.0"
}
} }