fixed error in example

embedded-hal-1.0
Chris 2018-05-26 17:13:22 +02:00
parent d30cec2c0e
commit 7d3c95bf7c
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ fn main() {
busy.export().expect("busy export"); busy.export().expect("busy export");
while !busy.is_exported() {} while !busy.is_exported() {}
busy.set_direction(Direction::In).expect("busy Direction"); busy.set_direction(Direction::In).expect("busy Direction");
busy.set_value(1).expect("busy Value set to 1"); //busy.set_value(1).expect("busy Value set to 1");
let busy_in = HackInputPin::new(&busy); let busy_in = HackInputPin::new(&busy);
let dc = Pin::new(6); //pin 31 //bcm6 let dc = Pin::new(6); //pin 31 //bcm6