Skip to content

WS2812 Controller. To be used in conjunction with https://github.com/thomaschandler/home_led_srv to control an LED Strip through HomeKit

License

Notifications You must be signed in to change notification settings

thomaschandler/home_led_arudino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Home LED

Pre-requisites

  • nanopb
    • Download and unzip to ext. Rename to nanopb
    • OSX: sudo easy_install pip; and sudo python -m pip install protobuf
  • Setup protocol buffers for go

Arduino IDE Setup

  • Sketch -> Include Library -> Add .ZIP library
    • Select nanopb folder
  • Sketch -> Include Library -> nanopb

Development

Proto

Build test

gcc -I ../ext/nanopb/ ../ext/nanopb/pb_decode.c ../ext/nanopb/pb_common.c led.pb.c proto.c proto_test.c

Use test

#!/bin/bash
./a.out $(echo 'led_string: {leds: {color: BLACK}}' | ./bin/protoc --encode ControlMessage led.proto)
echo 'led_string: {leds: {color: RED}, leds: {color: BLUE}}' | ./bin/protoc --encode ControlMessage led.proto | ./bin/protoc --decode ControlMessage led.proto

Build

Proto

While developing: ./bin/protoc led.proto -o led.pb

  • Assuming protoc has been extracted in proto directory

For Arduino:

  • source
  • python ext/nanopb/generator/nanopb_generator.py proto/led.pb
    • Assuming nanopb is in ext/nanopb

About

WS2812 Controller. To be used in conjunction with https://github.com/thomaschandler/home_led_srv to control an LED Strip through HomeKit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published