add different style to rotate90 in example

embedded-hal-1.0
Chris 2018-10-18 22:06:47 +02:00
parent a68ddb673a
commit 4ff373f512
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,8 @@ fn run() -> Result<(), std::io::Error> {
display.set_rotation(DisplayRotation::Rotate90);
display.draw(
Font6x8::render_str("Rotate 90!")
.with_stroke(Some(Color::Black))
.with_fill(Some(Color::White))
.translate(Coord::new(5, 50))
.into_iter(),
);