Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.72 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.72 KB

LED Controller

This is a project to control NeoPixel lights with a PiZeroW and golang

Homekit

led-controller homekit will start this as a homekit device. Check the help for options, specifically the homekit pin. The homekit device will work with color and brightness controls once registered.

Dashboard

Currently under heavy development. The dashboard will allow viewing and controlling the neopixel strip.

Building your Pi Controller

In the pi-builder directory is the cloud-init for building my pi image using Hypriot. I have encrypted the cloud-init.yaml file using sops and pgp since it contains secrets. There's not much to this file, so it should be easy to re-create on your own if you like.

Compiling

This is cross-compiled for the Raspberry Pi using the instructions in the rpi-ws281x repository. This utilizes a build container that is based on the Balena Golang Image. If you are using a different Pi, you will want to change the base image in the Dockerfile

The build commands are in the Makefile. You can make build to build the Docker container and then use that to build the binary for the Pi. At the end it will show the output of file led-controller to verify the type of the binary.

The build will also create a local .tmp directory for storing build cache so that subsequent builds are much much faster.

Another word of caution: This container build will utilize your local GOPATH and GOCACHE so that it doesn't have to download every package every time.

References