Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.53 KB

File metadata and controls

57 lines (39 loc) · 1.53 KB

Build with PlatformIO

← Back to documentation index

Prerequisites

  • 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.ini lib_deps under env:teensy)

Common commands

From the repository root:

pio run -e teensy
pio run -e gscesp
pio run -e tsesp

Upload (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 upload

Serial monitor (baud 115200 for all environments in this project):

pio device monitor -b 115200

Project layout

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.)

Source filtering

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.

Next steps