Add basic ESP-IDF app skeleton
Adds a minimal ESP-IDF project for ESP32-S3 at the repo root: top-level CMakeLists, a main component with a C++ app_main that logs a heartbeat, sdkconfig.defaults selecting esp32s3, and build notes in the README. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
97df6e3cbe
commit
df43820acd
5 files changed
+34
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#include <cstdio>
|
||||
|
||||
#include "esp_log.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
static const char *TAG = "led_driver";
|
||||
|
||||
extern "C" void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "LED driver (C++) starting");
|
||||
|
||||
int tick = 0;
|
||||
while (true) {
|
||||
ESP_LOGI(TAG, "alive: %d", tick++);
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user