pub struct PanelConfig {
pub segment_remap: bool,
pub com_scan_decrement: bool,
pub com_pins_alternative: bool,
pub com_left_right_remap: bool,
}Expand description
How the panel is wired to the controller’s segment (column) and COM (row) lines. This depends on the display module, and decides the orientation of the image.
The fields are named after the controller commands they configure.
Fields§
§segment_remap: boolSet Segment Re-map (0xA0/0xA1).
true maps column 0 to SEG127, mirroring the image horizontally.
com_scan_decrement: boolSet COM Output Scan Direction (0xC0/0xC8).
true scans from COM[N-1] to COM0, mirroring the image vertically.
com_pins_alternative: boolSet COM Pins Hardware Configuration (0xDA).
true means alternative (interleaved) instead of sequential COM pin
configuration. Panels with 64 rows typically use the alternative
configuration, panels with 32 rows the sequential one.
com_left_right_remap: boolSet COM Pins Hardware Configuration (0xDA).
true means enabling COM left/right remap.
Trait Implementations§
Source§impl Clone for PanelConfig
impl Clone for PanelConfig
impl Copy for PanelConfig
Auto Trait Implementations§
impl Freeze for PanelConfig
impl RefUnwindSafe for PanelConfig
impl Send for PanelConfig
impl Sync for PanelConfig
impl Unpin for PanelConfig
impl UnsafeUnpin for PanelConfig
impl UnwindSafe for PanelConfig
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