src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/app_main.c
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-13 21:44:36 -0500
committerLuke Hoersten <[email protected]>2026-06-13 21:44:36 -0500
commitcadff71f2917b1ec8b140ea54a5994b9e438c0c8 (patch)
treeb0fe2de1fac01122d13986095aa353b5811b0321 /main/app_main.c
parent01f8c1435a9c8a238e0ea04588e18421b6b01270 (diff)
Switch scaffold to C; update boot TODOs to match current spec
Diffstat (limited to 'main/app_main.c')
-rw-r--r--main/app_main.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/app_main.c b/main/app_main.c
new file mode 100644
index 0000000..3c30497
--- /dev/null
+++ b/main/app_main.c
@@ -0,0 +1,22 @@
+#include <esp_log.h>
+#include <esp_event.h>
+#include <esp_netif.h>
+#include <nvs_flash.h>
+
+static const char *TAG = "viewport";
+
+void app_main(void)
+{
+ ESP_ERROR_CHECK(nvs_flash_init());
+ ESP_ERROR_CHECK(esp_netif_init());
+ ESP_ERROR_CHECK(esp_event_loop_create_default());
+
+ ESP_LOGI(TAG, "Scrypted Viewport boot");
+
+ // TODO: Ethernet (ESP32-P4 EMAC + Waveshare PoE PHY)
+ // TODO: mDNS _scrypted-viewport._tcp.local
+ // TODO: HTTP server: /state /config /frame
+ // TODO: MIPI-DSI panel init (800x480 IPS, default portrait 480x800)
+ // TODO: JPEG decode -> framebuffer
+ // TODO: Capacitive touch -> outbound /state POST
+}