v0.6.0
Changed
-
(breaking) #156 Migrate from
embedded-graphics
toembedded-graphics-core
. -
(breaking) #150
BufferedGraphicsMode::set_pixel
now accepts abool
instead of au8
for the pixel color value. -
(breaking) #150
display_on
is now calledset_display_on
. -
(breaking) #150
TerminalMode::get_position
is now calledposition
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();