From f56c4c4aaae189be9ca89b2accb94cf2e1449a60 Mon Sep 17 00:00:00 2001 From: Ole Treichel Date: Thu, 2 Dec 2021 20:50:09 +0100 Subject: [PATCH] Fix pins for epd2in13_v2 example --- examples/epd2in13_v2.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/epd2in13_v2.rs b/examples/epd2in13_v2.rs index be1b314..f2169e7 100644 --- a/examples/epd2in13_v2.rs +++ b/examples/epd2in13_v2.rs @@ -41,19 +41,19 @@ fn main() -> Result<(), std::io::Error> { cs.set_direction(Direction::Out).expect("CS Direction"); cs.set_value(1).expect("CS Value set to 1"); - let busy = Pin::new(5); //pin 29 + let busy = Pin::new(24); // GPIO 24, board J-18 busy.export().expect("busy export"); while !busy.is_exported() {} busy.set_direction(Direction::In).expect("busy Direction"); //busy.set_value(1).expect("busy Value set to 1"); - let dc = Pin::new(6); //pin 31 //bcm6 + let dc = Pin::new(25); // GPIO 25, board J-22 dc.export().expect("dc export"); while !dc.is_exported() {} dc.set_direction(Direction::Out).expect("dc Direction"); dc.set_value(1).expect("dc Value set to 1"); - let rst = Pin::new(16); //pin 36 //bcm16 + let rst = Pin::new(17); // GPIO 17, board J-11 rst.export().expect("rst export"); while !rst.is_exported() {} rst.set_direction(Direction::Out).expect("rst Direction");