forked from hyperion-project/hyperion
-
Notifications
You must be signed in to change notification settings - Fork 0
Matrix configuration
Juha Rantanen edited this page Mar 14, 2016
·
3 revisions
I created a node.js script (matrix-config.js) to create LED configurations for matrices. Usage is simple:
node matrix-config.js --help
Hyperion matrix configurator by RanzQ
-------------------------------------
options:
-w --width <number> : Matrix width
-h --height <number> : Matrix height
-p --parallel : Parallel rows (not snake)
-s --start [ver]-[hor] : Starting corner, e.g. top-right
-d --debug : Debug print instead of json output
So for example if your matrix is 32x8 with the first led at bottom right, you can create led config for it like:
node matrix-config.js -w 32 -h 8 -s bottom-right
You can print individual led coordinates with option --debug
. Otherwise it outputs the leds
part of the hyperion config. You can output it to a file using:
node matrix-config.js -w 32 -h 8 -s bottom-right > leds.json
I think usually matrices have alternating row directions (snake) so I used is as default. If your matrix has rows going same direction use option --parallel
.
Update 2016-03-14: I just fixed a bug which caused invalid hscan and vscan values. If someone used this before today, please create your config again. :)