#oled #ssd1306 #nanohat

nanohat-oled

Library to work with the NanoHat OLED display

2 unstable releases

0.2.0 Jan 9, 2022
0.1.0 Jan 14, 2019

#2 in #ssd1306

36 downloads per month

Apache-2.0

20KB
276 lines

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

Dependencies

~265–410KB