#[repr(u8)]pub enum DecodeMode {
NoDecode = 0,
Digit0 = 1,
Digits0To3 = 15,
AllDigits = 255,
}Expand description
Decode mode configuration for the MAX7219 display driver.
Code B decoding allows the driver to automatically convert certain values (such as 0-9, E, H, L, and others) into their corresponding 7-segment patterns. Digits not using Code B must be controlled manually using raw segment data.
Use this to configure which digits should use Code B decoding and which should remain in raw segment mode.
Variants§
NoDecode = 0
Disable Code B decoding for all digits (DIG0 to DIG7).
In this mode, you must manually set each segment (A to G and DP) using raw segment data.
Digit0 = 1
Enable Code B decoding for only digit 0 (DIG0).
All other digits (DIG1 to DIG7) must be controlled manually.
Digits0To3 = 15
Enable Code B decoding for digits 0 through 3 (DIG0 to DIG3).
This is commonly used for 4-digit numeric displays.
AllDigits = 255
Enable Code B decoding for all digits (DIG0 to DIG7).
This is typically used for full 8-digit numeric displays.
Implementations§
Trait Implementations§
Source§impl Clone for DecodeMode
impl Clone for DecodeMode
Source§fn clone(&self) -> DecodeMode
fn clone(&self) -> DecodeMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more