Compare commits

..

1 commit

Author SHA1 Message Date
c6446de63c error catching for cfg 2021-05-25 23:21:09 -04:00

View file

@ -1,7 +1,9 @@
import * as ws281x from 'rpi-ws281x'
if (!global.cfg) {
global.cfg = {}
const cfg = require('./config.json');
global.cfg = cfg || {};
}
const fade_ticks = global.cfg.fade_ticks || 10;
var pixels = new Uint32Array(global.cfg.leds);