/apa102d-rust

Based on schoeppel/apa102d - implemented in rust

Primary LanguageRust

apa102d (rust)

This is a version of apa102d written in rust. They share a configuration file, but might listen to different mqtt-topics.

Configuration

  • Add /etc/apa102d.conf based on config/apa102d.conf.sample
  • Add hosts-entry for the mqtt server mqtt
  • Make sure spi is enabled, i.e. /dev/spidev0.0 exists. RapsberryPI

Compilation

  1. Install rust
  2. cargo build

Development

  • Tests: cargo test
  • This project uses rustfmt for formating the sources (cargo fmt)

Next steps

  • Get a light to show up
  • Receive an mqtt message
  • Implement the test effect
  • Subscribe/Publish topics
  • Parse the config file
  • Implement the particles effect?
  • Letters?

Troubleshooting

  • error: cannot find macro ```ioctl!``` in this scope This crate depends on spidev, which can only be compiled in a Linux environment. You'll need to cross-compile for a Linux machine (1 or 2?).