mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Updated Example to the version of the lib
This commit is contained in:
@@ -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};
|
||||
|
||||
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user