changed pin numbers (that should be configureable...)

This commit is contained in:
John Shaver 2018-12-12 15:52:51 -08:00
parent a76a76f1ef
commit 3e318754de

View file

@ -2,8 +2,8 @@ const Gpio = require("pigpio").Gpio;
const schedule = require("./schedule.json");
const HZ = 40000;
let ledRed = new Gpio(18, {mode: Gpio.OUTPUT});
let ledGreen = new Gpio(12, {mode: Gpio.OUTPUT});
let ledRed = new Gpio(12, {mode: Gpio.OUTPUT});
let ledGreen = new Gpio(13, {mode: Gpio.OUTPUT});
let timings = schedule.times.reduce((result, time) => {
result.push({start: time.time, color: time.color});