Compile Button2 examples to verify they build cleanly across target platforms.
Parse $ARGUMENTS:
- If a specific platform is named (esp8266, esp32, nano), run
pio run -e <matching env>for that platform - If "examples" or nothing is given, run
./test/compile_examples.shto compile all examples across all platforms - If a specific example name is given, find the matching
.inofile underexamples/and compile it witharduino-cli compilefor all three cores (esp8266:esp8266:d1_mini, esp32:esp32:m5stack_core2, arduino:avr:nano)
Report any compiler errors clearly, quoting the relevant error lines. If compilation is clean, confirm which platforms and examples passed.