Expand description
§max7219-display: MAX7219 Display Driver
A platform-agnostic, no_std driver for the MAX7219 LED display controller using embedded-hal traits. Supports both 8x8 LED matrix displays and 7-segment numeric displays.
§Crate Features
This driver supports multiple daisy-chained MAX7219 devices and works with both 7-segment and LED matrix configurations.
It includes built-in support for scrolling text, displaying characters, and rendering custom patterns on matrix displays. Support for custom fonts.
Additional features can be enabled by adding the following to your Cargo.toml:
led-matrix- provides utility functions for working with 8x8 LED matrix displays, including text rendering, scrolling, and pattern display.graphics- integrates with theembedded-graphics-corecrate to enable drawing text, shapes, and images on LED matrix displays.seven-segment- adds helper functions for 7-segment numeric displays, such as printing digits and supported characters.
§Usage
Add this to your Cargo.toml:
[dependencies]
max7219-display = {version="0.1", features=["led-matrix", "seven-segment", "graphics"]}
# max7219-display = { git = "https://github.com/implferris/max7219-display" }§Examples
Example projects are available in the separate max7219-examples repository to help you get started.
§License
This project is licensed under the MIT License.
Re-exports§
pub use driver::Max7219;pub use error::Error;pub use registers::DecodeMode;pub use registers::Register;pub use seven_segment::SevenSegment;seven-segmentpub use led_matrix::LedMatrix;led-matrix
Modules§
- driver
- Core MAX7219 driver implementation
- error
- Error types for MAX7219 driver
- led_
matrix led-matrix - LED matrix display implementation
- registers
- MAX7219 register definitions and constants
- seven_
segment seven-segment - 7-segment display implementation
Constants§
- MAX_
DISPLAYS - Maximum number of daisy-chained displays supported
- NUM_
DIGITS - Number of digits (0 to 7) controlled by one MAX7219