Welcome to the Rust Bindings for rpi_ws281x

This project is going through major overhauls, so expect breaking changes on most version changes.

API Design - Help Wanted

Please take a look at the feature-new-api branch and issue #1 and give some feedback!

Usage

Currently in major flux, more details when I finish the "Stage 1" overhaul. The current version on crates.io is pretty close to a bare bindgen wrap of the C library. The next version will look a lot more like typical Rust, inspired by the efforts of @Meh who wrote manual bindings to this libray a while back.

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.

Cross-compiling on Windows

An example build script might look like this (using Git for Windows Bash):

```

!/usr/bin/env bash

inform rpi-ws2811-rust where the GCC sysroot is

export RPIWS281XSYSROOT=C:/SysGCC/raspberry/arm-linux-gnueabihf/sysroot

point to the GCC ARM compiler/linker.

export CCarmunknownlinuxgnueabihf=C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-gcc.exe

point to the GCC ARM archiver

export ARarmunknownlinuxgnueabihf=C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-ar.exe

run the build command

cargo build $@ ```