Import SPI/GPIO
This commit is contained in:
parent
3cfa37e731
commit
dcfbd2f498
3 changed files with 31 additions and 14 deletions
|
@ -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
10
package-lock.json
generated
|
@ -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=="
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,9 @@
|
||||||
"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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue