a start of a script

This commit is contained in:
Mark Moser 2019-03-09 20:30:52 +00:00
parent e5599f63b4
commit 66d7cfc35c
2 changed files with 18 additions and 1 deletions

17
main.js Normal file
View File

@ -0,0 +1,17 @@
let gpio = require('rpi-gpio')
const BLUE = 37
const WHITE = 35
const RED = 33
const GREEN = 31
const YELLOW = 29
const LEDS = [BLUE, WHITE, RED, GREEN, YELLOW]
// gpio.setMode();
gpio.setup(WHITE, gpio.DIR_OUT, gpio.write);
// gpio.setup(BLUE, gpio.DIR_OUT, gpio.write);
// gpio.setup(RED, gpio.DIR_OUT, gpio.write);
// gpio.setup(GREEN, gpio.DIR_OUT, gpio.write);
// gpio.setup(YELLOW, gpio.DIR_OUT, gpio.write);
gpio.write(WHITE, true);

View File

@ -2,7 +2,7 @@
"name": "led-hands-pri", "name": "led-hands-pri",
"version": "0.0.0", "version": "0.0.0",
"description": "just an led service", "description": "just an led service",
"main": "index.js", "main": "main.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },