use pull-up to ensure we assert the correct change

This commit is contained in:
Ulf Lilleengen 2024-01-26 09:05:58 +01:00
parent 0bd9a2f094
commit bea3c5495a

View file

@ -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();