move firmware into subfolder
Some checks failed
ESP-IDF Build / build (esp32, latest) (push) Failing after 40s
ESP-IDF Build / build (esp32, release-v5.4) (push) Failing after 20s
ESP-IDF Build / build (esp32, release-v5.5) (push) Failing after 18s
ESP-IDF Build / build (esp32c3, latest) (push) Failing after 17s
ESP-IDF Build / build (esp32c3, release-v5.4) (push) Failing after 15s
ESP-IDF Build / build (esp32c3, release-v5.5) (push) Failing after 15s
ESP-IDF Build / build (esp32c5, latest) (push) Failing after 16s
ESP-IDF Build / build (esp32c5, release-v5.4) (push) Failing after 17s
ESP-IDF Build / build (esp32c5, release-v5.5) (push) Failing after 17s
ESP-IDF Build / build (esp32c6, latest) (push) Failing after 16s
ESP-IDF Build / build (esp32c6, release-v5.4) (push) Failing after 17s
ESP-IDF Build / build (esp32c6, release-v5.5) (push) Failing after 16s
ESP-IDF Build / build (esp32h2, latest) (push) Failing after 14s
ESP-IDF Build / build (esp32h2, release-v5.4) (push) Failing after 16s
ESP-IDF Build / build (esp32h2, release-v5.5) (push) Failing after 16s
ESP-IDF Build / build (esp32p4, latest) (push) Failing after 17s
ESP-IDF Build / build (esp32p4, release-v5.4) (push) Failing after 16s
ESP-IDF Build / build (esp32p4, release-v5.5) (push) Failing after 16s
ESP-IDF Build / build (esp32s3, latest) (push) Failing after 16s
ESP-IDF Build / build (esp32s3, release-v5.4) (push) Failing after 16s
ESP-IDF Build / build (esp32s3, release-v5.5) (push) Failing after 16s

Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
2025-08-21 00:02:56 +02:00
parent b340cf4492
commit 197a1611f5
49 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
idf_component_register(SRCS
"main.c"
INCLUDE_DIRS "."
)
spiffs_create_partition_image(storage ../data FLASH_IN_PROJECT)

View File

@@ -0,0 +1,40 @@
menu "Warnemuende Lighthouse"
config WLED_DIN_PIN
int "WLED Data In Pin"
default 8
help
The number of the WLED data in pin.
config WLED_USE_DMA
bool "Use DMA for WLED"
default n
help
Use DMA to drive the WLED strip. This is more efficient and allows for smoother animations.
config WLED_DMA_USAGE
int
default 1 if WLED_USE_DMA
default 0 if !WLED_USE_DMA
choice LIGHT_CHARACTERISTIC_CHOICE
prompt "Light characteristic"
default LIGHT_CHARACTERISTIC_GREEN
help
The color of the main WLED light.
config LIGHT_CHARACTERISTIC_GREEN
bool "Green flashing light"
help
The light will be flashing green.
config LIGHT_CHARACTERISTIC_RED
bool "Red flashing light"
help
The light will be flashing red.
endchoice
config LIGHT_CHARACTERISTIC_VALUE
int
default 1 if LIGHT_CHARACTERISTIC_GREEN
default 2 if LIGHT_CHARACTERISTIC_RED
endmenu

View File

@@ -0,0 +1,16 @@
## IDF Component Manager Manifest File
dependencies:
## Required IDF version
idf:
version: '>=5.4.0'
# # Put list of dependencies here
# # For components maintained by Espressif:
# component: "~1.0.0"
# # For 3rd party components:
# username/component: ">=1.0.0,<2.0.0"
# username2/component2:
# version: "~1.0.0"
# # For transient dependencies `public` flag can be set.
# # `public` flag doesn't have an effect dependencies of the `main` component.
# # All dependencies of `main` are public by default.
# public: true

43
firmware/main/main.c Normal file
View File

@@ -0,0 +1,43 @@
#include "light.h"
#include "persistence.h"
#include "remote_control.h"
void app_main(void)
{
/// init persistence
persistence_init("lighthouse");
/// init WLED
if (wled_init() != ESP_OK)
{
printf("Failed to initialize WLED");
return;
}
/// start beacon service
if (beacon_init() != ESP_OK)
{
printf("Failed to initialize beacon");
return;
}
if (beacon_start() != ESP_OK)
{
printf("Failed to start beacon");
return;
}
/// start outdoor light service
if (outdoor_init() != ESP_OK)
{
printf("Failed to initialize outdoor");
return;
}
if (outdoor_start() != ESP_OK)
{
printf("Failed to start outdoor");
return;
}
/// activate BLE functions
remote_control_init();
}