- Add .clion.ini to configure PlatformIO as default environment - Add CLION_BUILD.md with build instructions for CLion users - Update .gitignore to exclude compile_commands.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1.4 KiB
1.4 KiB
Building Tasmota in CLion with PlatformIO
Setup Complete
PlatformIO CLI has been installed and configured for this project.
Building from CLion Terminal
Use the embedded terminal in CLion (View → Tool Windows → Terminal) or any terminal:
List all available environments:
pio run --list-targets
Build a specific environment:
pio run -e tasmota # Build standard tasmota for ESP8266
pio run -e tasmota32 # Build for ESP32
pio run -e tasmota-minimal # Build minimal version
Clean build:
pio run -e tasmota -t clean
Upload to device:
pio run -e tasmota -t upload
Monitor serial output:
pio device monitor
Code Intelligence
The compile_commands.json file has been generated for CLion to provide proper code completion and navigation.
To regenerate after configuration changes:
pio run -t compiledb -e tasmota
Available Environments
See platformio.ini for the full list of build environments. Common ones include:
tasmota- Standard ESP8266 buildtasmota32- Standard ESP32 buildtasmota-sensors- Build with sensor supporttasmota-display- Build with display supporttasmota-ir- Build with IR support
Notes
- CLion will use CMake for code indexing, but actual builds use PlatformIO
- The CMakeLists.txt files are for ESP-IDF builds (alternative build system)
- For this project, always use
piocommands for building