diff --git a/runSchedule.js b/runSchedule.js index ecdbaac..71ee991 100644 --- a/runSchedule.js +++ b/runSchedule.js @@ -1,6 +1,6 @@ const Gpio = require("pigpio").Gpio; const schedule = require("./schedule.json"); -const HZ = 10000; +const HZ = 40000; let ledRed = new Gpio(18, {mode: Gpio.OUTPUT}); let ledGreen = new Gpio(12, {mode: Gpio.OUTPUT}); @@ -51,7 +51,7 @@ let render = setInterval(() => { }, 50); function getBrightness(x) { - return Math.floor(breathingCurve(x, 5000, 100000, 1000000)); + return Math.floor(breathingCurve(x, 6000, 100000, 1000000)); } function breathingCurve(x, interval = 3000, min, max) {