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 38d28bd commit 5e49954Copy full SHA for 5e49954
rp235x-hal-examples/src/bin/pio_putget.rs
@@ -8,7 +8,6 @@
8
use rp235x_hal as hal;
9
10
use hal::gpio::{FunctionPio0, Pin};
11
-use hal::pio::Buffers;
12
use hal::pio::PIOExt;
13
use hal::Sio;
14
@@ -75,7 +74,7 @@ fn main() -> ! {
75
74
let installed = pio.install(&program.program).unwrap();
76
let (mut sm, _, _) = hal::pio::PIOBuilder::from_installed_program(installed)
77
.set_pins(led_pin_id, 1)
78
- .buffers(Buffers::RxPutGet)
+ .with_rx_putget()
79
.build(sm0);
80
sm.set_pindirs([(led_pin_id, hal::pio::PinDir::Output)]);
81
sm.start();
0 commit comments