mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-29 21:31:08 +00:00
use pull-up to ensure we assert the correct change
This commit is contained in:
parent
0bd9a2f094
commit
bea3c5495a
@ -12,7 +12,7 @@ use {defmt_rtt as _, panic_probe as _};
|
||||
async fn main(_spawner: Spawner) {
|
||||
let p = embassy_nrf::init(Default::default());
|
||||
|
||||
let input = Input::new(p.P0_13, Pull::None);
|
||||
let input = Input::new(p.P0_13, Pull::Up);
|
||||
let mut output = Output::new(p.P0_14, Level::Low, OutputDrive::Standard);
|
||||
|
||||
output.set_low();
|
||||
|
Loading…
x
Reference in New Issue
Block a user