Crates.io | hub75-remastered |
lib.rs | hub75-remastered |
version | 0.1.0 |
source | src |
created_at | 2024-05-10 16:37:39.158541 |
updated_at | 2024-05-10 16:37:39.158541 |
description | A completely rewritten driver for HUB75 displays. |
homepage | |
repository | https://github.com/adinack/hub75-remastered |
max_upload_size | |
id | 1236186 |
size | 55,379 |
A completely rewritten driver for HUB75 displays.
The embedded-hal
version must be selected with the feature gates hal-02
or hal-1
.
Create an instance of a display (for example 64x32)
type Display = Hub75_64_32_2<
3, // color bits
(/* upper color pins */),
(/* lower color pins */),
(/* row pins */),
(/* data pins */),
>;
let mut display = Display::new(/* pins */);
In a continually running background task, draw to the display
async fn bg_task(display: Display) {
loop {
display.output(/* delay provider */);
// maybe yield to other same priority tasks
}
}