#rpi #ws281x #smart-leds #bindings #traits #track #upstream

ws281x-rpi

Wrapper for ws281x library using bindgen to track upstream implementing the smart-leds trait

1 unstable release

0.0.1 Jan 29, 2022

#6 in #ws281x

33 downloads per month

MIT license

105KB
2.5K SLoC

C 2K SLoC // 0.2% comments Rust 290 SLoC // 0.1% comments Scons 85 SLoC // 0.4% comments Python 66 SLoC // 0.5% comments

Welcome to the rust smart-leds driver based on the rpi_ws281x driver

For usage with the smart-leds crate.

Inspired on the rust bindings of the rpi ws281x driver.

Usage Warning

This project is still a work-in-progress.

For more information on how to use it please read the original documentation and pay special attention to the limitations section.

Contributing

Code is licensed under the MIT license, so as long as you are cool with that, feel free to open an issue, talk about proposed changes, then open a PR! I would love a helping hand, just have to make sure things don't get too messy either.

Compiling on Raspbian

  • Install Rust from https://rustup.rs/
  • Run rustup target add arm-unknown-linux-gnueabihf
  • Install sudo apt install libclang-dev

Dependencies

~0–2MB
~39K SLoC