-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
24 lines (20 loc) · 753 Bytes
/
Copy pathconfig.js
File metadata and controls
24 lines (20 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const CONFIG = {
// Listening port
PORT: 4001,
// (optional) listening port for turning off the LED
RESET_PORT: 4002,
// Returned response
BROWSER_OUTPUT: `
The LED is likely flashing right now.
`,
// LED GPIO pins for RGB LED
LED_GPIO_PIN_RED: 4, // GPIO NAME, not POSITION. Position is 7
LED_GPIO_PIN_GREEN: 17, // GPIO NAME, not POSITION. Position is 11
LED_GPIO_PIN_BLUE: 27, // GPIO NAME, not POSITION. Position is 13
// Anode (feed in 3.3V via "ground" pin, set other pins to "low" to increase hue)
IS_ANODE: true,
BLINK_PATTERN: 'rgb', // valid strings: 'police', 'rgb'
BLINK_INTERVAL: 200, // Time until color change in ms
BLINK_DURATION: 5000 // Time before LED turns off in ms
}
module.exports = CONFIG