Skip to content

v0.6.0

Compare
Choose a tag to compare
@jamwaffles jamwaffles released this 06 Jul 19:43
· 31 commits to master since this release

Changed

  • (breaking) #156 Migrate from embedded-graphics to embedded-graphics-core.

  • (breaking) #150 BufferedGraphicsMode::set_pixel now accepts a bool instead of a u8 for the pixel color value.

  • (breaking) #150 display_on is now called set_display_on.

  • (breaking) #150 TerminalMode::get_position is now called position to conform with Rust API guidelines.

  • (breaking) #150 Refactor the crate API to be more versatile and to make code clearer to understand.

    A graphics mode initialisation now looks like this:

    use ssd1306::{prelude::*, I2CDisplayInterface, Ssd1306};
    
    let interface = I2CDisplayInterface::new(i2c);
    
    let mut display = Ssd1306::new(interface, DisplaySize128x64, DisplayRotation::Rotate0)
        .into_buffered_graphics_mode();
    
    display.init().unwrap();