added led ws 2812 and buzzer stuff

This commit is contained in:
PC_WSL
2025-05-05 12:34:41 +02:00
parent f3c4e9884e
commit e14f703a76
8 changed files with 226 additions and 40 deletions

View File

@@ -4,6 +4,11 @@ use std::{
error::Error,
fmt::Display,
};
use crate::led::Led;
use tokio::fs;
use crate::led::Led;
use tokio::fs;
/// Represents the ID that is stored on the Tally
@@ -130,7 +135,12 @@ impl AttendanceDay {
return false;
}
self.ids.push(id);
true
buzzer::beep_ack();
led.set_named_color_time(NamedColor::Green, 1); //led is green for 1 sec
return true;
}
}