Files
AI-on-the-edge-device/code/components/jomjol_helper/statusled.h
michael 4905663933 test1
2026-01-17 02:49:32 +01:00

36 lines
682 B
C

#pragma once
#ifndef STATUSLED_H
#define STATUSLED_H
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
extern TaskHandle_t xHandle_task_StatusLED;
enum StatusLedSource
{
WLAN_CONN = 1,
WLAN_INIT = 2,
SDCARD_INIT = 3,
SDCARD_CHECK = 4,
CAM_INIT = 5,
PSRAM_INIT = 6,
TIME_CHECK = 7,
AP_OR_OTA = 8
};
struct StatusLEDData
{
int iSourceBlinkCnt = 1;
int iCodeBlinkCnt = 1;
int iBlinkTime = 250;
bool bInfinite = false;
bool bProcessingRequest = false;
};
void set_status_led(StatusLedSource _eSource, int _iCode, bool _bInfinite);
void set_status_led_off(void);
#endif // STATUSLED_H