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
import Constants from './constants.mjs';
import Spi from 'spi';
import Gpio from 'gpio';
const settings = {
spi_device: "/dev/spidev0.0"
};

10
package-lock.json generated
View file

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