fixed error in example
parent
d30cec2c0e
commit
7d3c95bf7c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue