nanohat-oled 0.1.0

Library to work with the NanoHat OLED display
Documentation

nanohat-oled

Build Status This is a Rust port of the manufacturer code for the NanoHat OLED, based on the SSD1306 OLED display from Solomon Systech.

It enables basic access to the screen functions, including a facility for displaying text and images.

Example

use nanohat_oled::{Oled, OledResult};

fn main() -> OledResult {
    let mut oled = Oled::from_path("/dev/i2c-0")?;
    oled.init()?;
    oled.put_string("Hello, world!")?;
    Ok(())
}