1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 15:33:05 +01:00

handle the leds as user task

This commit is contained in:
andreas
2023-10-24 15:23:54 +02:00
parent 155c7a8d1c
commit 91c1e6f85c
4 changed files with 9 additions and 8 deletions

15
lib/ledtask/GwLedTask.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef _GWLEDS_H
#define _GWLEDS_H
#include "GwApi.h"
//task function
void handleLeds(GwApi *param);
typedef enum {
LED_OFF,
LED_GREEN,
LED_BLUE,
LED_RED,
LED_WHITE
} GwLedMode;
void setLedMode(GwLedMode mode);
DECLARE_USERTASK(handleLeds);
#endif