smart-leds-rs / ws2812-spi-rs

Use ws2812 on rust with embedded-hal spi
Apache License 2.0
64 stars 23 forks source link

Switch `prerendered` to use the same bit patterns as the normal variant #14

Closed david-sawatzke closed 3 years ago

david-sawatzke commented 3 years ago

This makes the code much simpler, but constrains the available frequencies (but even the AVR spi peripheral has enough prescaler options).

Nice-to-have features, PRs welcome:

Might be of interest to @rahix, I've added an avr example in https://github.com/smart-leds-rs/smart-leds-samples/pull/7 using avr-hal

Rahix commented 3 years ago

Might be of interest to @Rahix, I've added an avr example in smart-leds-rs/smart-leds-samples#7 using avr-hal

Nice, I've had people ask me whether this works a lot lately. Thanks!