nrf52840: fix naming of LED states in examples (#3304)

The LEDs on the nrf52840 DK are active low.
This commit is contained in:
Adrian Friedli
2024-09-02 22:07:49 +02:00
committed by GitHub
parent f0a8607051
commit b277f42c9d
2 changed files with 4 additions and 4 deletions

View File

@@ -35,8 +35,8 @@ async fn main(spawner: Spawner) {
loop {
match CHANNEL.receive().await {
LedState::On => led.set_high(),
LedState::Off => led.set_low(),
LedState::On => led.set_low(),
LedState::Off => led.set_high(),
}
}
}

View File

@@ -33,8 +33,8 @@ async fn recv_task(led: AnyPin, receiver: Receiver<'static, NoopRawMutex, LedSta
loop {
match receiver.receive().await {
LedState::On => led.set_high(),
LedState::Off => led.set_low(),
LedState::On => led.set_low(),
LedState::Off => led.set_high(),
}
}
}