We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb094f commit 577ba2aCopy full SHA for 577ba2a
boards/rp-pico-w/examples/pico_w_blinky.rs
@@ -103,9 +103,7 @@ unsafe fn forever<T>(r: &'_ T) -> &'static T {
103
async fn run(spawner: Spawner, pins: rp_pico_w::Pins, state: &'static cyw43::State) -> ! {
104
// These are implicitly used by the spi driver if they are in the correct mode
105
let mut spi_cs: hal::gpio::dynpin::DynPin = pins.wl_cs.into();
106
- // TODO should be high from the beginning :-(
107
- spi_cs.into_readable_output();
108
- spi_cs.set_high().unwrap();
+ spi_cs.into_readable_output_in_state(hal::gpio::PinState::High);
109
spi_cs.into_push_pull_output();
110
spi_cs.set_high().unwrap();
111
0 commit comments