pub trait BuilderAPI<ControlPin, DBPin, const PIN_CNT: usize, Delayer>where
    ControlPin: OutputPin,
    DBPin: OutputPin + InputPin,
    Delayer: DelayMs<u32> + DelayUs<u32>,{
Show 20 methods // Required methods fn new(pins: Pins<ControlPin, DBPin, PIN_CNT>, delayer: Delayer) -> Self; fn build_and_init(self) -> LCD<ControlPin, DBPin, PIN_CNT, Delayer>; fn set_wait_interval_us(self, interval: u32) -> Self; fn get_wait_interval_us(&self) -> u32; fn pop_pins(&mut self) -> Pins<ControlPin, DBPin, PIN_CNT>; fn pop_delayer(&mut self) -> Delayer; fn set_line(self, line: LineMode) -> Self; fn get_line(&self) -> LineMode; fn set_font(self, font: Font) -> Self; fn get_font(&self) -> Font; fn set_display(self, display: State) -> Self; fn get_display(&self) -> State; fn set_cursor(self, cursor: State) -> Self; fn get_cursor(&self) -> State; fn set_blink(self, blink: State) -> Self; fn get_blink(&self) -> State; fn set_direction(self, dir: MoveDirection) -> Self; fn get_direction(&self) -> MoveDirection; fn set_shift(self, shift: ShiftType) -> Self; fn get_shift(&self) -> ShiftType;
}

Required Methods§

source

fn new(pins: Pins<ControlPin, DBPin, PIN_CNT>, delayer: Delayer) -> Self

combine Pins and delay timer into a Builder

source

fn build_and_init(self) -> LCD<ControlPin, DBPin, PIN_CNT, Delayer>

consume Builder, build a LCD and initialize LCD1602

source

fn set_wait_interval_us(self, interval: u32) -> Self

when LCD1602 report busy state, wait some time before poll the state again this function set interval (in microseconds) between 2 polls

source

fn get_wait_interval_us(&self) -> u32

when LCD1602 report busy state, wait some time before poll the state again this function get interval value (in microseconds)

source

fn pop_pins(&mut self) -> Pins<ControlPin, DBPin, PIN_CNT>

source

fn pop_delayer(&mut self) -> Delayer

source

fn set_line(self, line: LineMode) -> Self

source

fn get_line(&self) -> LineMode

source

fn set_font(self, font: Font) -> Self

source

fn get_font(&self) -> Font

source

fn set_display(self, display: State) -> Self

source

fn get_display(&self) -> State

source

fn set_cursor(self, cursor: State) -> Self

source

fn get_cursor(&self) -> State

source

fn set_direction(self, dir: MoveDirection) -> Self

source

fn get_direction(&self) -> MoveDirection

source

fn set_shift(self, shift: ShiftType) -> Self

source

fn get_shift(&self) -> ShiftType

Implementors§

source§

impl<ControlPin, DBPin, const PIN_CNT: usize, Delayer> BuilderAPI<ControlPin, DBPin, PIN_CNT, Delayer> for Builder<ControlPin, DBPin, PIN_CNT, Delayer>where ControlPin: OutputPin, DBPin: OutputPin + InputPin, Delayer: DelayMs<u32> + DelayUs<u32>,