sh1106 0.3.0-alpha.3

I2C driver for the SH1106 OLED display controller
docs.rs failed to build sh1106-0.3.0-alpha.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: sh1106-0.5.0

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:

// ...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::render_str("Hello world!")
        .stroke_width(1)
        .into_iter(),
);
disp.draw(
    Font6x8::render_str("Hello Rust!")
        .stroke_width(1)
        .translate(Point::new(0, 16))
        .into_iter(),
);

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.