Just use make
.
The binaries are put into the build
directory.
File | Platform |
---|---|
lightbull-x64-linux | Obvious |
lightbull-armv7-linux | Raspberry Pi 3 |
The software needs to know, which LED IDs belong to which parts. This is defined in the config file config.yaml
:
leds:
parts:
- name: "horn_right"
leds: [[0, 5]]
- name: "horn_left"
leds: [[20, 10], [40, 44], [70, 75]]
The LED IDs from the first to second number (including both IDs!) is added to that part. So here, the part "horn_left" would consist of these IDs:
20, 19, 18, ... 11, 10, 40, 41, ... 44, 70, 71, .... 75
lightbull-arch-os calibrate
allows to switch interactively single LEDs on and may be helpful to find out,
which LEDs belong to which part.
By default, the tool sends out control commands for 750 LEDs. If this number if to low, it can be adjusted with
the -n
parameter.
lightbull-arch-os test
runs a small test program.
lightbull-arch-os run
runs the control server, the API is accessible on port 8080.
Some settings can be changed using the configuration file which can be places in /etc/lightbull/config.yaml
or ./config.yaml
.
We use pre-commit for code and styleguide checks.
Install it once as git hook:
pre-commit install
Run pre-commit manually:
pre-commit run --all-files
- Add name to
shows/parameters/const.go
- Create new datatype in
shows/parameters/....go
based on existing one - Add in
NewParameter
function inshows/parameters/parameter.go
- Add name to
shows/effects/const.go
- Add to
GetEffects
in same file - Create new effect in
shows/effects/....go
based on existing one - Add in
NewEffect
function inshows/effects/effect.go