diff --git a/main.js b/main.js new file mode 100644 index 0000000..1fd4919 --- /dev/null +++ b/main.js @@ -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); diff --git a/package.json b/package.json index a49dd12..0d7309a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "led-hands-pri", "version": "0.0.0", "description": "just an led service", - "main": "index.js", + "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },