liquidcrystal_i2c-rs

Crates.ioliquidcrystal_i2c-rs
lib.rsliquidcrystal_i2c-rs
version0.1.0
sourcesrc
created_at2023-01-08 11:07:25.770815
updated_at2023-01-08 11:07:25.770815
descriptionRewrite of I2C driver for LM1602 LCD displays based on port of LiquidCrystal_I2C.h.
homepagehttps://github.com/guanicoe/LiquidCrystal_I2C-rs
repositoryhttps://github.com/guanicoe/LiquidCrystal_I2C-rs
max_upload_size
id753623
size47,449
(guanicoe)

documentation

README

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();
}

Commit count: 12

cargo fmt