Skip to content

Commit

Permalink
Use new function into_readable_output_in_state
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Sep 17, 2022
1 parent 6eb094f commit 577ba2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boards/rp-pico-w/examples/pico_w_blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ unsafe fn forever<T>(r: &'_ T) -> &'static T {
async fn run(spawner: Spawner, pins: rp_pico_w::Pins, state: &'static cyw43::State) -> ! {
// These are implicitly used by the spi driver if they are in the correct mode
let mut spi_cs: hal::gpio::dynpin::DynPin = pins.wl_cs.into();
// TODO should be high from the beginning :-(
spi_cs.into_readable_output();
spi_cs.set_high().unwrap();
spi_cs.into_readable_output_in_state(hal::gpio::PinState::High);
spi_cs.into_push_pull_output();
spi_cs.set_high().unwrap();

Expand Down

0 comments on commit 577ba2a

Please sign in to comment.