Compare commits
1 commit
c6446de63c
...
edcc3ad757
Author | SHA1 | Date | |
---|---|---|---|
edcc3ad757 |
1 changed files with 1 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
|||
import * as ws281x from 'rpi-ws281x'
|
||||
|
||||
if (!global.cfg) {
|
||||
const cfg = require('./config.json');
|
||||
|
||||
global.cfg = cfg || {};
|
||||
global.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