Struct pwr_hd44780::buses::gpio4::Gpio4
[−]
[src]
pub struct Gpio4 { /* fields omitted */ }
Methods
impl Gpio4
[src]
Trait Implementations
impl Bus for Gpio4
[src]
fn initialize(&mut self) -> UnitResult
[src]
Initializes the bus (eg. puts LCD in appropriate 4/8-bit mode).
fn set_backlight(&mut self, _enabled: bool) -> UnitResult
[src]
Enables / disables the backlight.
fn write_byte(&mut self, value: u8, as_data: bool) -> UnitResult
[src]
Sends a single byte to the device. When as_data
is true
, the RS
register is pulled up and byte is sent as data
. Read more
fn width(&self) -> usize
[src]
Returns bus width (4 / 8 bit).
fn write_command(&mut self, value: u8) -> UnitResult
[src]
Sends a raw command to the device.
fn write_data(&mut self, value: u8) -> UnitResult
[src]
Sends a raw data to the device.
fn execute(&mut self, command: Command) -> UnitResult
[src]
Executes given command.