diff --git a/ESP32-IDF_ESPNOW-Transmitter/main/system_health.c b/ESP32-IDF_ESPNOW-Transmitter/main/system_health.c index bee51f6a1..e44040aa0 100644 --- a/ESP32-IDF_ESPNOW-Transmitter/main/system_health.c +++ b/ESP32-IDF_ESPNOW-Transmitter/main/system_health.c @@ -21,9 +21,19 @@ static void temp_sensor_task (void *arg) { vTaskDelay(5000 / portTICK_PERIOD_MS); } } + static void system_led_task (void *arg) { - + while (1) { + gpio_set_level(BLINK_GPIO, s_led_state); + vTaskDelay(250 / portTICK_PERIOD_MS); + s_led_state = !s_led_state; // Toggle the LED state + } } +void system_led_init () { + // Initialize the system LED here if needed + xTaskCreate(system_led_task, "System LED", 2048, NULL, 15, NULL); +} + void chip_sensor_init () { temp_sensor = NULL; temperature_sensor_config_t temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(10, 50);