pub trait LCDBasic {
Show 29 methods // Required methods fn write_u8_to_cur(&mut self, byte: impl Into<u8>); fn read_u8_from_cur(&mut self) -> u8; fn write_graph_to_cgram(&mut self, index: u8, graph: &[u8; 8]); fn write_graph_to_cur(&mut self, index: u8); fn clean_display(&mut self); fn return_home(&mut self); fn set_line_mode(&mut self, line: LineMode); fn get_line_mode(&self) -> LineMode; fn set_font(&mut self, font: Font); fn get_font(&self) -> Font; fn set_display_state(&mut self, display: State); fn get_display_state(&self) -> State; fn set_cursor_state(&mut self, cursor: State); fn get_cursor_state(&self) -> State; fn get_ram_type(&self) -> RAMType; fn set_cursor_blink_state(&mut self, blink: State); fn get_cursor_blink_state(&self) -> State; fn set_default_direction(&mut self, dir: MoveDirection); fn get_default_direction(&self) -> MoveDirection; fn set_default_shift_type(&mut self, shift: ShiftType); fn get_default_shift_type(&self) -> ShiftType; fn set_cursor_pos(&mut self, pos: (u8, u8)); fn set_cgram_addr(&mut self, addr: u8); fn get_cursor_pos(&self) -> (u8, u8); fn shift_cursor_or_display( &mut self, shift_type: ShiftType, dir: MoveDirection ); fn get_display_offset(&self) -> u8; fn set_wait_interval_us(&mut self, interval: u32); fn get_wait_interval_us(&self) -> u32; fn get_line_capacity(&self) -> u8;
}
Expand description

LCDBasic traits provide methods that close to LCD1602 instructions

Required Methods§

source

fn write_u8_to_cur(&mut self, byte: impl Into<u8>)

source

fn read_u8_from_cur(&mut self) -> u8

source

fn write_graph_to_cgram(&mut self, index: u8, graph: &[u8; 8])

source

fn write_graph_to_cur(&mut self, index: u8)

source

fn clean_display(&mut self)

source

fn return_home(&mut self)

source

fn set_line_mode(&mut self, line: LineMode)

source

fn get_line_mode(&self) -> LineMode

source

fn set_font(&mut self, font: Font)

source

fn get_font(&self) -> Font

source

fn set_display_state(&mut self, display: State)

source

fn get_display_state(&self) -> State

source

fn set_cursor_state(&mut self, cursor: State)

source

fn get_cursor_state(&self) -> State

source

fn get_ram_type(&self) -> RAMType

source

fn set_default_direction(&mut self, dir: MoveDirection)

source

fn get_default_direction(&self) -> MoveDirection

source

fn set_default_shift_type(&mut self, shift: ShiftType)

source

fn get_default_shift_type(&self) -> ShiftType

source

fn set_cursor_pos(&mut self, pos: (u8, u8))

source

fn set_cgram_addr(&mut self, addr: u8)

source

fn get_cursor_pos(&self) -> (u8, u8)

source

fn shift_cursor_or_display(&mut self, shift_type: ShiftType, dir: MoveDirection)

source

fn get_display_offset(&self) -> u8

source

fn set_wait_interval_us(&mut self, interval: u32)

source

fn get_wait_interval_us(&self) -> u32

source

fn get_line_capacity(&self) -> u8

Implementors§

source§

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