Advanced ScriptingΒΆ
Warning
Advanced Scripting is recommended for Advanced Users and requires knowledge of the Python language.
The PlatformIO Build System allows the user to extend the build process with custom scripts using the Python interpreter and the SCons construction tool. Build flags, upload flags, targets, toolchains data and other information are available for modification as SCons Construction Environments. Custom scripts are included with extra_scripts.
Warning
Please note that you can not run or debug these scripts independently with Python interpreter. They will be loaded automatically when the pio run command processes the project environment.
- Launch Types
- Construction Environments
- Before/Pre and After/Post Actions
- Build Middlewares
- Custom Targets
- Examples
- Custom options in
platformio.ini
- Split C/C++ build flags
- Extra linker flags without
-Wl,
prefix - Custom upload tool
- Upload to Cloud (OTA)
- Custom firmware/program name
- Asking for input (prompts)
- Override package files
- Override board configuration
- Custom debug flags
- Extra Python packages
- Build external sources
- Custom options in