https://github.com/adinack/hub75-remastered
A completely rewritten driver for HUB75 displays.
https://github.com/adinack/hub75-remastered
embedded hub75 no-std rust
Last synced: about 1 month ago
JSON representation
A completely rewritten driver for HUB75 displays.
- Host: GitHub
- URL: https://github.com/adinack/hub75-remastered
- Owner: AdinAck
- License: gpl-3.0
- Created: 2024-05-05T19:10:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-07T16:45:23.000Z (about 1 year ago)
- Last Synced: 2025-04-23T19:03:46.485Z (about 1 month ago)
- Topics: embedded, hub75, no-std, rust
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hub75-remastered
A completely rewritten driver for HUB75 displays.
# Usage
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)
```rust
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
```rust
async fn bg_task(display: Display) {
loop {
display.output(/* delay provider */);
// maybe yield to other same priority tasks
}
}
```