59 lines
1.3 KiB
Arduino
59 lines
1.3 KiB
Arduino
/*
|
|
Overland Controller
|
|
ESP32-S3 Dashboard Bring-Up
|
|
|
|
Target:
|
|
Waveshare ESP32-S3 Touch LCD 5B
|
|
1024x600
|
|
|
|
Purpose:
|
|
Verify build environment and establish
|
|
the first dashboard firmware entry point.
|
|
|
|
Future:
|
|
LVGL
|
|
Cargo ESP API integration
|
|
CAN
|
|
OBD-II
|
|
*/
|
|
|
|
#include <WiFi.h>
|
|
|
|
const char* DASHBOARD_VERSION = "0.0.1-bringup";
|
|
|
|
unsigned long lastPrint = 0;
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
delay(1000);
|
|
|
|
Serial.println();
|
|
Serial.println("================================");
|
|
Serial.println("Overland Controller Dashboard");
|
|
Serial.println("================================");
|
|
Serial.print("Version: ");
|
|
Serial.println(DASHBOARD_VERSION);
|
|
Serial.println("Target: Waveshare ESP32-S3 Touch LCD 5B");
|
|
Serial.println("Display: 1024x600");
|
|
Serial.println("API Base: /api/v1");
|
|
Serial.println();
|
|
}
|
|
|
|
void loop() {
|
|
if (millis() - lastPrint > 5000) {
|
|
lastPrint = millis();
|
|
|
|
Serial.println("--- Dashboard Heartbeat ---");
|
|
|
|
if (WiFi.status() == WL_CONNECTED) {
|
|
Serial.print("WiFi Connected: ");
|
|
Serial.println(WiFi.localIP());
|
|
} else {
|
|
Serial.println("WiFi Not Connected");
|
|
}
|
|
|
|
Serial.println("Cargo API: /api/v1");
|
|
Serial.println();
|
|
}
|
|
}
|