@ -1,6 +1,7 @@
import * as ws281x from 'rpi-ws281x'
import * as fs from 'fs'
const cfg = require('./config.json');
const cfg = JSON.parse(fs.readFileSync('./config.json'));
const fade_ticks = cfg.fade_ticks || 10;
var pixels = new Uint32Array(cfg.leds);