Updated Example to the version of the lib

digi-v2-tests
Christoph Groß 5 years ago
parent 4090fb4ead
commit 98fe6e2f3e

@ -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};

@ -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