blob: 3c30497bef2f6bb57b50dbe23542511531a056f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}
|