| Crates.io | hd44780-embedded-hal |
| lib.rs | hd44780-embedded-hal |
| version | 0.1.4 |
| created_at | 2025-09-19 21:48:23.190477+00 |
| updated_at | 2026-01-14 11:08:41.746228+00 |
| description | Driver for HD44780-LCD ontop of embedded-hal(-async). (I2C and GPIO interface) |
| homepage | |
| repository | https://github.com/wolkns/hd44780-embedded-hal |
| max_upload_size | |
| id | 1847138 |
| size | 77,902 |
Driver library for HD44780-LCD built ontop of [embedded-hal] or [embedded-hal-async].
If you want to make use of the [embedded-hal-async] traits, set the [async] feature.
This crate can then be used with crates that implement there traits.
// setup microcontroller environment
// ...
let i2c = ...; // impl of embedded_hal_async::i2c::I2c (or embedded_hal::i2c::I2c)
let delay = ...; // impl of embedded_hal_async::delay::DelayNs (or embedded_hal::delay::DelayNs)
let mut lcd = Hd44780::new(
Pcf8574Interface::new(
i2c,
0x20, // choose your address
delay,
Pcf8574EncoderDefault::new()
),
DisplayTypeFont5x8::new(2,16,FnsetLines::Two)
);
lcd.init().await;
lcd.print_str("Hello World").await;
lcd.position(1,0).await; // set cursor to 2nd row
lcd_write!(
lcd,
"{}={}",
hd44780_embedded_hal::characters::NonASCIIA00::GreekSmallPi,
3.1415
).await;
This library implements the following interfaces to connect HD44780 with your microcontroller:
characters.rs].