mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2025-11-04 15:44:10 +00:00
Merge remote-tracking branch 'origin/main' into feature/newlib
This commit is contained in:
commit
5f65cc7a73
@ -54,6 +54,12 @@ pub async fn feedback_task(
|
|||||||
Timer::after(Duration::from_millis(100)).await;
|
Timer::after(Duration::from_millis(100)).await;
|
||||||
buzzer.set_low();
|
buzzer.set_low();
|
||||||
Timer::after(Duration::from_millis(50)).await;
|
Timer::after(Duration::from_millis(50)).await;
|
||||||
|
led.write(brightness(
|
||||||
|
[BLACK; init::hardware::NUM_LEDS].into_iter(),
|
||||||
|
LED_LEVEL,
|
||||||
|
))
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
FeedbackState::Nack => {
|
FeedbackState::Nack => {
|
||||||
led.write(brightness(
|
led.write(brightness(
|
||||||
@ -126,7 +132,7 @@ pub async fn feedback_task(
|
|||||||
}
|
}
|
||||||
FeedbackState::Idle => {
|
FeedbackState::Idle => {
|
||||||
led.write(brightness(
|
led.write(brightness(
|
||||||
[GREEN; init::hardware::NUM_LEDS].into_iter(),
|
[BLACK; init::hardware::NUM_LEDS].into_iter(),
|
||||||
LED_LEVEL,
|
LED_LEVEL,
|
||||||
))
|
))
|
||||||
.await
|
.await
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user