mirror of
https://github.com/m5stack/platform-espressif32.git
synced 2026-05-20 11:04:15 -07:00
How to build PlatformIO based project
- Install PlatformIO Core
- Download development platform with examples
- Extract ZIP archive
- Run these commands:
# Change directory to example
$ cd platform-espressif32/examples/arduino-ble5-advertising
# Build project
$ pio run
# Upload firmware
$ pio run --target upload
# Build specific environment
$ pio run -e esp32-c3-devkitm-1
# Upload firmware for the specific environment
$ pio run -e esp32-c3-devkitm-1 --target upload
# Clean build files
$ pio run --target clean