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,21 @@
if (DEFINED ENV{IDF_PATH})
idf_component_register(SRCS
src/hal_esp32/led_manager.cpp
INCLUDE_DIRS "include"
PRIV_REQUIRES
u8g2
esp_event
)
return()
endif ()
cmake_minimum_required(VERSION 3.30)
project(led-manager)
add_library(${PROJECT_NAME} STATIC
src/hal_native/led_manager.cpp
)
include_directories(include)
target_include_directories(${PROJECT_NAME} PUBLIC include)