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.
```rust use nanohat_oled::{Oled, OledResult};
fn main() -> OledResult { let mut oled = Oled::frompath("/dev/i2c-0")?; oled.init()?; oled.putstring("Hello, world!")?; Ok(()) } ```