#[repr(u8)]pub enum SegmentMappingType {
Standard = 0,
Reversed = 1,
CommonCathode = 2,
SparkfunSerial = 3,
AdafruitBackpack = 4,
Custom = 5,
}Expand description
Predefined segment mapping types for different display manufacturers
Values match the uSPIBridge firmware SegmentMappingType enum:
- C++ enum class values are implicitly 0, 1, 2, 3, 4, 5
- I2C interface currently only accepts 0-4 for setSegmentMappingType
- Value 5 (Custom) is used internally when custom arrays are provided
Variants§
Standard = 0
Standard MAX7219 mapping (A=6, B=5, C=4, D=3, E=2, F=1, G=0, DP=7)
Reversed = 1
Completely reversed bit order mapping
CommonCathode = 2
Common cathode display variant mapping
SparkfunSerial = 3
SparkFun Serial 7-Segment Display mapping
AdafruitBackpack = 4
Adafruit LED Backpack mapping
Custom = 5
User-defined custom mapping (used internally)
Trait Implementations§
Source§impl Clone for SegmentMappingType
impl Clone for SegmentMappingType
Source§fn clone(&self) -> SegmentMappingType
fn clone(&self) -> SegmentMappingType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentMappingType
impl Debug for SegmentMappingType
Source§impl Default for SegmentMappingType
impl Default for SegmentMappingType
Source§impl PartialEq for SegmentMappingType
impl PartialEq for SegmentMappingType
impl Copy for SegmentMappingType
impl Eq for SegmentMappingType
impl StructuralPartialEq for SegmentMappingType
Auto Trait Implementations§
impl Freeze for SegmentMappingType
impl RefUnwindSafe for SegmentMappingType
impl Send for SegmentMappingType
impl Sync for SegmentMappingType
impl Unpin for SegmentMappingType
impl UnsafeUnpin for SegmentMappingType
impl UnwindSafe for SegmentMappingType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.