Smart LEDs matrix
A DrawTarget
implementation to use (one, or more) smart LED matrixes as a graphics display driven by embedded-graphics Drawable
objects.
The integrated driver is from smart-leds crate.
Status
It works on some level. Rectangles are fine.
There are interesting issues though, with my setup (stm32f401 + 8x8 ws2812 matrix):
- circles are not exacly drawn always to the same position
- write operation usually gets back with an overrun error, while the display is still updated for ~every second time
Plan
- Add more display types (like 2x2 or 1x4 grids of 8x8 matrixes), though user can add those anytime by implementing another
Transformation
.
Usage
You may start by creating creating a driver for your LED and controller. Some examples can be found here.
Once you have it, you can plug it into the DrawTarget
implemented by this crate.
Example:
use ws2812_spi as ws2812;
use *;
use ;
!