a start of a script
This commit is contained in:
parent
e5599f63b4
commit
66d7cfc35c
17
main.js
Normal file
17
main.js
Normal 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);
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user