pin change in the example

embedded-hal-1.0
Chris 2018-05-26 16:47:11 +02:00
parent a067e3a662
commit 0099d509d8
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ fn main() {
spi.configure(&options).expect("spi configuration"); spi.configure(&options).expect("spi configuration");
// Configure Digital I/O Pin to be used as Chip Select for SPI // Configure Digital I/O Pin to be used as Chip Select for SPI
let cs = Pin::new(7);//BCM7 CE0 let cs = Pin::new(26);//BCM7 CE0
cs.export().expect("cs export"); cs.export().expect("cs export");
while !cs.is_exported() {} while !cs.is_exported() {}
cs.set_direction(Direction::Out).expect("CS Direction"); cs.set_direction(Direction::Out).expect("CS Direction");