Browse Source

Updated Example to the version of the lib

embedded-hal-1.0
Christoph Groß 8 years ago
parent
commit
98fe6e2f3e
  1. 2
      examples/embedded_linux/src/main.rs
  2. 4
      src/drawing/mod.rs

2
examples/embedded_linux/src/main.rs

@ -5,7 +5,7 @@ extern crate linux_embedded_hal as lin_hal;
extern crate eink_waveshare_rs;
use eink_waveshare_rs::{epd4in2::EPD4in2, drawing::{Graphics, Color}};
use eink_waveshare_rs::{epd4in2::EPD4in2, drawing::{Graphics, color::Color}};
use lin_hal::spidev::{self, SpidevOptions};
use lin_hal::{Pin, Spidev};

4
src/drawing/mod.rs

@ -122,9 +122,7 @@ impl Graphics {
}
}
/// font map doesn't work as expected, so everything with chars and string is broken atm
///TODO: implement!
/// TODO: use Fonts
///TODO: test!
pub fn draw_char(&self, buffer: &mut[u8], x0: u16, y0: u16, input: char, font: &Font, color: &Color) {
self.draw_char_helper(buffer, x0, y0, input, font, color);
}

Loading…
Cancel
Save