mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
print error in example instead of quitting
This commit is contained in:
@@ -61,8 +61,12 @@ 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()));
|
||||
}
|
||||
|
||||
fn main() -> Result<(), std::io::Error> {
|
||||
|
||||
fn run() -> Result<(), std::io::Error> {
|
||||
|
||||
// Configure SPI
|
||||
// Settings are taken from
|
||||
|
||||
Reference in New Issue
Block a user