#[repr(u8)]pub enum Duty {
Static = 0,
Half = 1,
Third = 2,
Quarter = 3,
Eigth = 4,
}Expand description
The duty used by the LCD driver.
This is essentially how many COM pins you’re using.
Variants§
Static = 0
Use a single COM pin
Half = 1
Use two COM pins
Third = 2
Use three COM pins
Quarter = 3
Use four COM pins
Eigth = 4
Use eight COM pins.
In this mode, COM[7:4] outputs are available on SEG[51:48].
This allows reducing the number of available segments.
Trait Implementations§
impl Copy for Duty
Auto Trait Implementations§
impl Freeze for Duty
impl RefUnwindSafe for Duty
impl Send for Duty
impl Sync for Duty
impl Unpin for Duty
impl UnwindSafe for Duty
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