starting with led-manager as esp32 and native component
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
idf_component_register(SRCS
|
||||
"main.cpp"
|
||||
"app_task.cpp"
|
||||
"PersistenceManager.cpp"
|
||||
"button_handling.c"
|
||||
"hal/u8g2_esp32_hal.c"
|
||||
main.cpp
|
||||
app_task.cpp
|
||||
PersistenceManager.cpp
|
||||
button_handling.c
|
||||
hal/u8g2_esp32_hal.c
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES
|
||||
insa
|
||||
led-manager
|
||||
u8g2
|
||||
driver
|
||||
esp_timer
|
||||
esp_event
|
||||
nvs_flash
|
||||
)
|
||||
|
7
main/Kconfig.projbuild
Normal file
7
main/Kconfig.projbuild
Normal file
@@ -0,0 +1,7 @@
|
||||
menu "Warnemuende Lighthouse"
|
||||
config WLED_DIN_PIN
|
||||
int "WLED Data In Pin"
|
||||
default 14
|
||||
help
|
||||
The number of the WLED data in pin.
|
||||
endmenu
|
@@ -1,5 +1,7 @@
|
||||
#include "app_task.h"
|
||||
#include "esp_event.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "led_manager.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -9,6 +11,9 @@ extern "C"
|
||||
void app_main(void)
|
||||
{
|
||||
xTaskCreatePinnedToCore(app_task, "main_loop", 4096, NULL, tskIDLE_PRIORITY + 1, NULL, portNUM_PROCESSORS - 1);
|
||||
|
||||
wled_init();
|
||||
register_handler();
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user