#lcd #lcd-display #i2c #liquid-crystal #embedded-hal-v1 #i2c-driver #l-mxxxx

i2c_lcd_screen

Rewrite of I2C driver for LM1602 LCD displays based on port of LiquidCrystal_I2C.h

1 stable release

1.0.0 Dec 29, 2024

#449 in Hardware support

Download history 88/week @ 2024-12-29

88 downloads per month

GPL-3.0-or-later

17KB
242 lines

I2C LCD

Port of the liquide crystall I2C lirary found for arduino in rust. Supports 4x16 Displays. Tested on raspberry pi and esp32.

Example of use:

use rppal::{gpio::Gpio, i2c::I2c};

static  LCD_ADDRESS: u8 = 0x27;

fn main() {
    let mut i2c = I2c::new().unwrap();
    let mut delay = rppal::hal::Delay;

    let mut lcd = i2c_lcd::Lcd::new(&mut i2c, LCD_ADDRESS, &mut delay).unwrap();

    lcd.set_display(screen::Display::On).unwrap();
    lcd.set_backlight(screen::Backlight::On).unwrap();
    lcd.print("Hello world!").unwrap();
}

Dependencies

~56KB