starting with led-manager as esp32 and native component

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-06-21 23:55:58 +02:00
parent 5805d9ea14
commit 0b65ac198f
11 changed files with 190 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include "stdint.h"
enum
{
EVENT_LED_ON,
EVENT_LED_OFF,
EVENT_LED_DAY,
EVENT_LED_NIGHT,
};
typedef struct
{
int value;
} led_event_data_t;
uint64_t wled_init(void);
uint64_t register_handler(void);
uint64_t send_event(uint32_t event, led_event_data_t *payload);