nanohat-oled

Crates.ionanohat-oled
lib.rsnanohat-oled
version0.2.0
sourcesrc
created_at2019-01-14 00:55:53.304795
updated_at2022-01-09 05:59:25.448093
descriptionLibrary to work with the NanoHat OLED display
homepagehttps://github.com/squidpickles/nanohat-oled
repositoryhttps://github.com/squidpickles/nanohat-oled.git
max_upload_size
id108429
size20,561
Kevin R (squidpickles)

documentation

https://docs.rs/nanohat-oled

README

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(())
}
Commit count: 14

cargo fmt