pin change in the example
parent
a067e3a662
commit
0099d509d8
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue