diff options
| author | Ulf Lilleengen <[email protected]> | 2024-01-26 09:05:58 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-01-26 09:05:58 +0100 |
| commit | bea3c5495a37481c85bcfce8d55f94049e4b89fd (patch) | |
| tree | 156504e42d8422970139b5236400667f7066ad2a /tests | |
| parent | 0bd9a2f09434c5c67088bce79597c581a900adeb (diff) | |
use pull-up to ensure we assert the correct change
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nrf51422/src/bin/gpio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nrf51422/src/bin/gpio.rs b/tests/nrf51422/src/bin/gpio.rs index 0e5712273..6d5a87d0a 100644 --- a/tests/nrf51422/src/bin/gpio.rs +++ b/tests/nrf51422/src/bin/gpio.rs | |||
| @@ -12,7 +12,7 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 12 | async fn main(_spawner: Spawner) { | 12 | async fn main(_spawner: Spawner) { |
| 13 | let p = embassy_nrf::init(Default::default()); | 13 | let p = embassy_nrf::init(Default::default()); |
| 14 | 14 | ||
| 15 | let input = Input::new(p.P0_13, Pull::None); | 15 | let input = Input::new(p.P0_13, Pull::Up); |
| 16 | let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard); | 16 | let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard); |
| 17 | 17 | ||
| 18 | output.set_low(); | 18 | output.set_low(); |
