|
|
|
@ -15,7 +15,7 @@ use eink_waveshare_rs::{ |
|
|
|
|
|
|
|
|
|
|
|
extern crate embedded_graphics; |
|
|
|
extern crate embedded_graphics; |
|
|
|
use embedded_graphics::coord::Coord; |
|
|
|
use embedded_graphics::coord::Coord; |
|
|
|
use embedded_graphics::fonts::Font6x8; |
|
|
|
use embedded_graphics::fonts::{Font6x8, Font12x16}; |
|
|
|
use embedded_graphics::prelude::*; |
|
|
|
use embedded_graphics::prelude::*; |
|
|
|
use embedded_graphics::primitives::{Circle, Line}; |
|
|
|
use embedded_graphics::primitives::{Circle, Line}; |
|
|
|
use embedded_graphics::Drawing; |
|
|
|
use embedded_graphics::Drawing; |
|
|
|
@ -289,7 +289,7 @@ fn run() -> Result<(), std::io::Error> { |
|
|
|
.into_iter(), |
|
|
|
.into_iter(), |
|
|
|
); |
|
|
|
); |
|
|
|
display.draw( |
|
|
|
display.draw( |
|
|
|
Font6x8::render_str("It's working!") |
|
|
|
Font6x8::render_str("It's working-WoB!") |
|
|
|
// Using Style here
|
|
|
|
// Using Style here
|
|
|
|
.with_style(Style { |
|
|
|
.with_style(Style { |
|
|
|
fill_color: Some(Color::Black), |
|
|
|
fill_color: Some(Color::Black), |
|
|
|
@ -300,6 +300,18 @@ fn run() -> Result<(), std::io::Error> { |
|
|
|
.into_iter(), |
|
|
|
.into_iter(), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
display.draw( |
|
|
|
|
|
|
|
Font6x8::render_str("It's working-BoW!") |
|
|
|
|
|
|
|
// Using Style here
|
|
|
|
|
|
|
|
.with_style(Style { |
|
|
|
|
|
|
|
fill_color: Some(Color::White), |
|
|
|
|
|
|
|
stroke_color: Some(Color::Black), |
|
|
|
|
|
|
|
stroke_width: 0u8, // Has no effect on fonts
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.translate(Coord::new(50, 50)) |
|
|
|
|
|
|
|
.into_iter(), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mut i = 0; |
|
|
|
let mut i = 0; |
|
|
|
|