We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23216d0 commit 696510fCopy full SHA for 696510f
examples/console.rs
@@ -30,12 +30,6 @@ fn build_spi() -> Result<SpidevBus, Box<dyn std::error::Error>> {
30
31
fn main() {
32
let spi = build_spi().unwrap();
33
- // Example of using GPIO pin for chip select:
34
- //const GPIO_CHIP: &str = "/dev/gpiochip0";
35
- //let mut chip = Chip::new(GPIO_CHIP).unwrap();
36
- //let enable_pin = CdevPin::new(chip.get_line(SPI_ENABLE_PIN).unwrap()
37
- // .request(LineRequestFlags::OUTPUT, 1, "pscontroller").unwrap()).unwrap();
38
- //let mut psp = PlayStationPort::new(spi, Some(enable_pin));
39
let mut psp: PlayStationPort<_, CdevPin> = PlayStationPort::new(spi, None);
40
let mut command = [0u8; 32];
41
let mut buffer = [0u8; 32];
0 commit comments