Compare commits
1 commit
edcc3ad757
...
c6446de63c
Author | SHA1 | Date | |
---|---|---|---|
c6446de63c |
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue