Skip to content

Port of the LiquidCrystal_I2C made for the arduino platform

License

Notifications You must be signed in to change notification settings

guanicoe/LiquidCrystal_I2C-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Example of use:

use liquidcrystal_i2c_rs::{Backlight, Display, Lcd};

static LCD_ADDRESS: u16 = 0x3f;

fn main() {
    let i2c = rppal::i2c::I2c::new().unwrap();

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

    lcd.set_display(Display::On).unwrap();
    lcd.set_backlight(Backlight::On).unwrap();

    lcd.clear().unwrap();
    lcd.print("Hello World!").unwrap();
}

About

Port of the LiquidCrystal_I2C made for the arduino platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages