Skip to content

Support library for FriendlyElectric NanoHAT OLED display, based on the SSD1306

License

Notifications You must be signed in to change notification settings

squidpickles/nanohat-oled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Support library for FriendlyElectric NanoHAT OLED display, based on the SSD1306

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages