diff --git a/README.md b/README.md index 80aaa30..cea48e0 100644 --- a/README.md +++ b/README.md @@ -60,24 +60,15 @@ They are also called A and B, but you shouldn't get confused and mix it with the ## TODO's -- [ ] add more examples (e.g. for f3) - [ ] improve the partial drawing/check the timings/timing improvements/.... -- [ ] for later: add support for the smaller waveshare epds +- [ ] for later: add support for more waveshare epds - [ ] License: Stay with ISC (=MIT) or go to the Apache+MIT Dual License as used in many other projects? ## Graphics/Drawing -Supports: -- Lines -- Squares -- Circles -- Pixels -- Chars -- Strings +It is recommended to use the [embedded graphics](https://crates.io/crates/embedded-graphics) library. -Chars and Strings work with a 8x8-Font. - -Support for bigger sized/independent Fonts is in work. +Even though any u8-slice works, it is not recommended! ## Examples diff --git a/examples/embedded_linux_epd1in54/src/main.rs b/examples/embedded_linux_epd1in54/src/main.rs index b2bd427..aa850b9 100644 --- a/examples/embedded_linux_epd1in54/src/main.rs +++ b/examples/embedded_linux_epd1in54/src/main.rs @@ -55,13 +55,8 @@ impl<'a> InputPin for HackInputPin<'a> { } } - -/* -* -* BE CAREFUL: this wasn't tested yet, and the pins are also not choosen correctly (just some random ones atm) -* -*/ - +//TODO: Test this implemenation +//BE CAREFUL: this wasn't tested yet fn main() { run().unwrap(); diff --git a/examples/embedded_linux_epd4in2/src/main.rs b/examples/embedded_linux_epd4in2/src/main.rs index 871aef0..f3a5426 100644 --- a/examples/embedded_linux_epd4in2/src/main.rs +++ b/examples/embedded_linux_epd4in2/src/main.rs @@ -51,8 +51,6 @@ impl<'a> HackInputPin<'a> { } } -//TODO: make it safer?? or handle the errors better? -// now it defaults to is_low if an error appears impl<'a> InputPin for HackInputPin<'a> { fn is_low(&self) -> bool { self.pin.get_value().unwrap_or(0) == 0 @@ -64,11 +62,7 @@ impl<'a> InputPin for HackInputPin<'a> { } -/* -* -* BE CAREFUL: this wasn't tested yet, and the pins are also not choosen correctly (just some random ones atm) -* -*/ + fn main() { run().map_err(|e| println!("{}", e.to_string())).unwrap(); }