SH1106 driver

Build Status

SH116 display module showing the Rust logo

I2C driver for the SH1106 OLED display written in 100% Rust

Documentation

From examples/text.rs:

```rust // ...snip, see examples/text.rs for runnable code ...

let i2c = /* ... */;

let mut disp: GraphicsMode<_> = Builder::new().connect_i2c(i2c).into();

disp.init().unwrap(); disp.flush().unwrap();

disp.draw( Font6x8::renderstr("Hello world!") .strokewidth(1) .intoiter(), ); disp.draw( Font6x8::renderstr("Hello Rust!") .strokewidth(1) .translate(Point::new(0, 16)) .intoiter(), );

disp.flush().unwrap(); ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.