-
+
+
-
+ +
-
-
+ +
-
-
-
- - + +
+
-

Configuration

+ + + +

Configuration

How to setup luxcena-neo to work with your setup


-
1
$ sudo lux-neo conf
-
-
- +
$ sudo lux-neo conf
+

When running the command above, a config file should appear in the editor 'nano'. -
 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
{
-    "led_count": 53,
-    "segments": [],
-    "matrix": [],
-    "segmentConfiguration": "snake",
-    "led_pin": 18,
-    "led_freq_hz": 800000,
-    "led_dma": 10,
-    "led_invert": false,
-    "led_channel": 0
-}
-
-

-
Tip - Change editor

If you rather want to use vim or another editor, the file is at /home/lux-neo/userdata/config/strip.json

+
{
+    "led_count": 53,
+    "segments": [],
+    "matrix": [],
+    "segmentConfiguration": "snake",
+    "led_pin": 18,
+    "led_freq_hz": 800000,
+    "led_dma": 10,
+    "led_invert": false,
+    "led_channel": 0
+}
+

+
+Tip - Change editor +

If you rather want to use vim or another editor, the file is at /home/lux-neo/userdata/config/strip.json

led_count

This is the number of LED's you want to control.

@@ -650,22 +625,27 @@

When summing this list, it should check out with the "led-count"-option.

matrix

This is a two dimensonal array, used to arrange the segments in a matrix of your likings. Here you enter the segment-number to represent them. In the example above, all the segments are in one line. If you want to have them in a square, it could look like this:

+

"segments": [10, 10, 10, 10, 10, 10, 10, 10, 10],
+"matrix": [
+    [[0, false], [1, true], [2, false]],
+    [[3, true], [4, false], [5, true]],
+    [[6, false], [7, true], [8, false]]
+]
+
+Each entry looks is a list, with two parameters, [<segment_number>, <invert>]

Warning

If you don't have a reference to all the segments or something, the matrix setup will fail. And fall back to 'segmentsconfiguration'

segmentconfiguration

If the matrix-option is empty or badly setup. The matrix will be set up using one of these defaults:

-
1
-2
-3
"snake":
-"line":
-"random":
-
-
- +
"snake":
+"line":
+"random":
+

led_pin

If using the luxcena-shield, you shouldn't have to worry about this option. But set it to the GPIO-port connected to your pixel's din-port.

+

led_dma

Warning

If using a newer RPi (3 or newer), leave this as 10! Or your file-system might crash.

@@ -677,78 +657,83 @@

Leave this as default unless you know what you are doing.


Now you might want to take a look at the command line interface.

- - - - - - - -
-
+ + + + +
+
+ +
+
- -
+ + + +