[−][src]Crate st7032i
A platform agnostic Rust driver for the ST7032i, based on the
embedded-hal
traits.
The Device
The Sitronix ST7032i is a dot matrix LCD controller with I²C interface.
Usage
Instantiating
Import this crate and an embedded_hal
implementation:
extern crate linux_embedded_hal as hal; extern crate st7032i;
Then instantiate the device:
use core::fmt::Write; use linux_embedded_hal::{Delay, I2cdev}; use st7032i::ST7032i; let dev = I2cdev::new("/dev/i2c-1")?; let mut display = ST7032i::new(dev, Delay, 2); display.init()?; write!(display, "Hello")?; display.move_cursor(1, 0)?; write!(display, "Rust")?;
Structs
ST7032i | Driver for the ST7032i |
Enums
Direction | Moving direction |
Constants
I2C_ADRESS |