Add PoC PWN duty cycle adjustment command for FaceFocus

This commit is contained in:
Lorow
2025-08-19 00:03:31 +02:00
parent 9a1f55d012
commit 21e8dbe264
13 changed files with 227 additions and 99 deletions

View File

@@ -53,7 +53,7 @@ auto *restAPI = new RestAPI("http://0.0.0.0:81", commandManager);
UVCStreamManager uvcStream;
#endif
auto *ledManager = new LEDManager(BLINK_GPIO, CONFIG_LED_C_PIN_GPIO, ledStateQueue);
auto *ledManager = new LEDManager(BLINK_GPIO, CONFIG_LED_C_PIN_GPIO, ledStateQueue, deviceConfig);
auto *serialManager = new SerialManager(commandManager, &timerHandle, deviceConfig);
static void initNVSStorage()
@@ -274,10 +274,10 @@ extern "C" void app_main(void)
// setup CI and building for other boards
// finish todos, overhaul stuff a bit
// esp_log_set_vprintf(&websocket_logger);
Logo::printASCII();
initNVSStorage();
// esp_log_set_vprintf(&websocket_logger);
deviceConfig->load();
ledManager->setup();
xTaskCreate(
@@ -297,7 +297,6 @@ extern "C" void app_main(void)
3,
nullptr);
deviceConfig->load();
serialManager->setup();
static TaskHandle_t serialManagerHandle = nullptr;
@@ -308,8 +307,7 @@ extern "C" void app_main(void)
1024 * 6,
serialManager,
1, // we only rely on the serial manager during provisioning, we can run it slower
&serialManagerHandle
);
&serialManagerHandle);
wifiManager->Begin();
mdnsManager.start();