A Rust crate allowing to communicate with the HD44780 LCDs.
Sure, pal:
```rust extern crate pwr_hd44780;
use pwr_hd44780::Hd44780;
fn main() { run().unwrap(); }
fn run() -> Result<(), Box
// create the direct LCD's instance;
// use bus created before and assume LCD's width x height = 20 x 4
let mut lcd = pwr_hd44780::DirectLcd::new(
&mut lcd_bus,
20, 4
)?;
// finally - print our text
lcd.clear()?;
lcd.print("Hello World! :-)")?;
Ok(())
} ```
For more examples, take a dive into the examples
directory.
Copyright (c) 2018, Patryk Wychowaniec <wychowaniec.patryk@gmail.com>.
Licensed under the MIT license.