#[non_exhaustive]pub struct Config {
pub use_voltage_output_buffer: bool,
pub use_segment_muxing: bool,
pub bias: Bias,
pub duty: Duty,
pub voltage_source: VoltageSource,
pub target_fps: Hertz,
pub drive: Drive,
}Expand description
LCD configuration struct
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.use_voltage_output_buffer: boolEnable the voltage output buffer for higher driving capability.
The LCD driving capability is improved as buffers prevent the LCD capacitive loads from loading the resistor bridge unacceptably and interfering with its voltage generation.
use_segment_muxing: boolEnable SEG pin remapping. SEG[31:28] multiplexed with SEG[43:40]
bias: BiasBias selector
duty: DutyDuty selector
voltage_source: VoltageSourceInternal or external voltage source
target_fps: HertzThe frequency used to update the LCD with. Should be between ~30 and ~100. Lower is better for power consumption, but has lower visual fidelity.
drive: DriveLCD driver selector
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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