#i2c #lcd #lcd-display #embedded #i2c-driver #liquid-crystal #lm1602

liquidcrystal_i2c-rs

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

1 unstable release

0.1.0 Jan 8, 2023

#1303 in Hardware support

Download history 9/week @ 2024-02-18 15/week @ 2024-02-25 9/week @ 2024-03-03 12/week @ 2024-03-10 3/week @ 2024-03-17 16/week @ 2024-03-24 43/week @ 2024-03-31 6/week @ 2024-04-07 3/week @ 2024-04-14 6/week @ 2024-04-21

59 downloads per month
Used in rbd_dimmer

GPL-3.0-or-later

16KB
215 lines

Port of the liquide crystall I2C lirary found for arduino in rust. Tested on raspberry pi.

Example of use:

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

static  LCD_ADDRESS: u8 = 0x27;

fn setup() {

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

    let mut lcd = screen::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

~71KB