-
Notifications
You must be signed in to change notification settings - Fork 293
99 Build
Geo edited this page Sep 26, 2025
·
1 revision
This guide explains how to set up PlatformIO and build the project. It works on Windows, macOS, and Linux.
You can use either the VS Code extension (recommended) or the command-line tools.
- Install Visual Studio Code.
- In VS Code, open the Extensions panel and install “PlatformIO IDE”.
- Restart VS Code if prompted.
- Install PlatformIO Core (
pio) using your system’s package manager or the official installer. - Verify installation:
pio --version
git clone https://github.com/geo-tp/ESP32-Bus-Pirate.gitPlatformIO uses environments defined in platformio.ini.
Each environment appears as a section:
[env:cardputer]
platform = espressif32
board = m5stack-stamps3
framework = arduino
...
[env:stamps3]
platform = espressif32
board = m5stack-stamps3
framework = arduino
...- The text after
env:(e.g.,cardputer,stamps3) is the environment name. - Environments select toolchains, boards, frameworks, flags, and upload settings.
How to see available environments:
-
Open
platformio.iniand read the[env:...]sections. - Or run (CLI):
(Look for the
pio project config
[env:...]headers in the output.)
Pick the environment that matches your target board or build profile. Common patterns:
-
env:stamps3→ ESP32-S3 Stamp / M5StampS3 -
env:cardputer→ M5Stack Cardputer -
env:release/env:debug→ Different optimization/logging levels
If unsure, check the comments in
platformio.inior your hardware’s README notes.
- Open the project folder in VS Code.
- In the lower Status Bar, pick the environment from the PlatformIO (checkmark) selector.
- Click Build (✔️) in the PlatformIO toolbar or press ⌘/Ctrl + Alt + B.
# Build the default environment (if one is set)
pio run
# Build a specific environment
pio run -e <env_name>Build artifacts are placed in .pio/build/<env_name>/.
⚠️ Voltage Warning: Devices should only operate at 3.3V or 5V.
Do not connect peripherals using other voltage levels — doing so may damage your ESP32.