Struct hd44780_hal::HD44780 [−][src]
pub struct HD44780<D: DelayUs<u16> + DelayMs<u8>, O1: OutputPin, O2: OutputPin, O3: OutputPin, O4: OutputPin, O5: OutputPin, O6: OutputPin, O7: OutputPin, O8: OutputPin, O9: OutputPin, O10: OutputPin> { /* fields omitted */ }
Methods
impl<D: DelayUs<u16> + DelayMs<u8>, O1: OutputPin, O2: OutputPin, O3: OutputPin, O4: OutputPin, O5: OutputPin, O6: OutputPin, O7: OutputPin, O8: OutputPin, O9: OutputPin, O10: OutputPin> HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10>
[src]
impl<D: DelayUs<u16> + DelayMs<u8>, O1: OutputPin, O2: OutputPin, O3: OutputPin, O4: OutputPin, O5: OutputPin, O6: OutputPin, O7: OutputPin, O8: OutputPin, O9: OutputPin, O10: OutputPin> HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10>
pub fn new(
rs: O1,
en: O2,
db0: O3,
db1: O4,
db2: O5,
db3: O6,
db4: O7,
db5: O8,
db6: O9,
db7: O10,
delay: D
) -> HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10>
[src]
pub fn new(
rs: O1,
en: O2,
db0: O3,
db1: O4,
db2: O5,
db3: O6,
db4: O7,
db5: O8,
db6: O9,
db7: O10,
delay: D
) -> HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10>
Create an instance of a HD44780 from 8 data pins, a recieve pin, an enable pin and a struct implementing the delay trait
pub fn reset(&mut self)
[src]
pub fn reset(&mut self)
Unshifts the display and sets the cursor position to 0
pub fn set_display_mode(
&mut self,
display_on: bool,
cursor_visible: bool,
cursor_blink: bool
)
[src]
pub fn set_display_mode(
&mut self,
display_on: bool,
cursor_visible: bool,
cursor_blink: bool
)
Set if the display should be on, if the cursor should be visible, and if the cursor should blink
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Clear the entire display
pub fn shift_cursor(&mut self, dir: Direction)
[src]
pub fn shift_cursor(&mut self, dir: Direction)
Shift just the cursor to the left or the right
pub fn shift_display(&mut self, dir: Direction)
[src]
pub fn shift_display(&mut self, dir: Direction)
Shift the entire display to the left or the right
pub fn write_str(&mut self, string: &str)
[src]
pub fn write_str(&mut self, string: &str)
Write an entire character to the LCD at the cursor position
pub fn write_char(&mut self, data: char)
[src]
pub fn write_char(&mut self, data: char)
Write a single character to the LCD at the cursor position
Auto Trait Implementations
impl<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> Send for HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> where
D: Send,
O1: Send,
O10: Send,
O2: Send,
O3: Send,
O4: Send,
O5: Send,
O6: Send,
O7: Send,
O8: Send,
O9: Send,
impl<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> Send for HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> where
D: Send,
O1: Send,
O10: Send,
O2: Send,
O3: Send,
O4: Send,
O5: Send,
O6: Send,
O7: Send,
O8: Send,
O9: Send,
impl<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> Sync for HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> where
D: Sync,
O1: Sync,
O10: Sync,
O2: Sync,
O3: Sync,
O4: Sync,
O5: Sync,
O6: Sync,
O7: Sync,
O8: Sync,
O9: Sync,
impl<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> Sync for HD44780<D, O1, O2, O3, O4, O5, O6, O7, O8, O9, O10> where
D: Sync,
O1: Sync,
O10: Sync,
O2: Sync,
O3: Sync,
O4: Sync,
O5: Sync,
O6: Sync,
O7: Sync,
O8: Sync,
O9: Sync,