Initial commit: Base Project for Kode Dot (ESP32-S3)

This commit is contained in:
Lago
2026-04-03 13:21:23 +02:00
commit a3d9840a92
30 changed files with 59419 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
Import("env")
# Auto-detect serial port for upload and monitor if not explicitly set
try:
# Only override when user didn't set a concrete value (e.g. not "auto")
opt = env.GetProjectOption("upload_port", None)
if not opt or opt == "auto":
port = env.AutodetectUploadPort()
if port:
env.Replace(UPLOAD_PORT=port)
# Keep monitor in sync with upload port unless overridden
if not env.GetProjectOption("monitor_port", None):
env.Replace(MONITOR_PORT=port)
else:
print("[auto_port] No serial device detected; leaving UPLOAD_PORT = auto")
except Exception as e:
print("[auto_port] Warning: could not autodetect upload/monitor port:", e)