- PlatformIO (VS Code extension or CLI)
- USB drivers appropriate for Teensy 4.1 and Seeed XIAO ESP32-S3
- For Teensy: Adafruit libraries are pulled automatically (see
platformio.inilib_depsunderenv:teensy)
From the repository root:
pio run -e teensy
pio run -e gscesp
pio run -e tsespUpload (after selecting the correct upload_port in platformio.ini for your machine):
pio run -e teensy -t upload
pio run -e gscesp -t upload
pio run -e tsesp -t uploadSerial monitor (baud 115200 for all environments in this project):
pio device monitor -b 115200| Path | Role |
|---|---|
platformio.ini |
Environments, board, build_src_filter, ports |
src/teensy/ |
Teensy-only main.cpp |
src/gscesp/ |
GSC ESP-only main.cpp |
src/tsesp/ |
Torito relay ESP-only main.cpp |
lib/ |
Project libraries (DAQ, LoRa, SD, etc.) |
Each environment compiles only one main.cpp tree via build_src_filter, for example:
+<teensy/*>for Teensy+<gscesp/*>/+<tsesp/*>for the ESP targets
So shared code lives under lib/; entry points are isolated per target.