Skip to main content

hub75_framebuffer/bitplane/
mod.rs

1//! Bitplane-oriented framebuffer implementations for HUB75 LED panels.
2//!
3//! These framebuffers store colour data as one bit-plane per colour bit
4//! (typically 8 planes for full 8-bit colour). To render, configure the DMA
5//! descriptor chain to output each plane `2^(7 - plane_index)` times so that
6//! the weighted repetition counts produce correct BCM brightness.
7//!
8//! Two variants are provided:
9//!
10//! - [`plain`] -- 16-bit entries with all signals (address, latch, OE, colour)
11//!   packed into each word. No external latch circuit needed.
12//! - [`latched`] -- 8-bit entries with separate address bytes, requiring an
13//!   external latch circuit but halving per-entry memory.
14
15pub mod latched;
16pub mod plain;