changed pin numbers (that should be configureable...)
This commit is contained in:
parent
a76a76f1ef
commit
3e318754de
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ const Gpio = require("pigpio").Gpio;
|
||||||
const schedule = require("./schedule.json");
|
const schedule = require("./schedule.json");
|
||||||
const HZ = 40000;
|
const HZ = 40000;
|
||||||
|
|
||||||
let ledRed = new Gpio(18, {mode: Gpio.OUTPUT});
|
let ledRed = new Gpio(12, {mode: Gpio.OUTPUT});
|
||||||
let ledGreen = new Gpio(12, {mode: Gpio.OUTPUT});
|
let ledGreen = new Gpio(13, {mode: Gpio.OUTPUT});
|
||||||
|
|
||||||
let timings = schedule.times.reduce((result, time) => {
|
let timings = schedule.times.reduce((result, time) => {
|
||||||
result.push({start: time.time, color: time.color});
|
result.push({start: time.time, color: time.color});
|
||||||
|
|
Loading…
Reference in a new issue