LED is working and implement in feedback

This commit is contained in:
Philipp_EndevourOS
2025-08-13 02:05:49 +02:00
parent 593d98df74
commit 3117c55b1c
3 changed files with 23 additions and 9 deletions

View File

@@ -55,8 +55,8 @@ use crate::init::wifi;
*
*************************************************/
const NUM_LEDS: usize = 66;
const LED_BUFFER_SIZE: usize = NUM_LEDS * 25;
pub const NUM_LEDS: usize = 66;
pub const LED_BUFFER_SIZE: usize = NUM_LEDS * 25;
#[panic_handler]
fn panic(info: &core::panic::PanicInfo) -> ! {
@@ -116,10 +116,6 @@ pub async fn hardware_init(
debug!("hardware init done");
let level = 255;
led.write(brightness([BLUE; NUM_LEDS].into_iter(), level)).await.unwrap();
(uart_device, stack, i2c_device, led, buzzer_gpio)
}