** NOTE: This setup is specifically designed for using PlayformIO for Arduino projects using CLion. You might need to change a few lines in order for it to work with your chosen IDE (or this might honestly not work at all).**
-
Extract the .exe to a folder (ex: C:Tools/arduino-cli/)
-
Add to system PATH as a variable
-
in powershell, type:
arduino-cli core update-indexarduino-cli core install arduino:avr(replace avr with whatever board family you are using, like esp32:esp32)
if not already done, install python and add to environment variables
-
In the terminal,
run pip install platformio(to verify,run platformio --version) -
Run
platformio init --ide clion --board uno -
Open the newly generated project
-
Copy repo and set as current project
Enjoy!
platformio run -> builds project
platformio run -t upload -> uploads project to board
platformio device monitor -> opens serial monitor