For now its ok to use defaults here.Ĭompiling and uploading sample blink sketch with PlarformIOlets create sample blink sketch: Platformio.ini - main configutation file. gitignore - handy if you going to store your project in git cvs. Name from type column is what you need to specify in -board parameter.Īfter initialising your project structure will be the following: Protrinket5 atmega328p 16Mhz 28Kb 2Kb Adafruit Pro Trinket 5V/16MHz (USB) Protrinket3 atmega328p 12Mhz 28Kb 2Kb Adafruit Pro Trinket 3V/12MHz (USB) Protrinket3ftdi atmega328p 16Mhz 28Kb 2Kb Adafruit Pro Trinket 3V/12MHz (FTDI) Metro atmega328p 16Mhz 31Kb 2Kb Adafruit Metro Gemma attiny85 8Mhz 8Kb 512B Adafruit Gemma An example output of this command is the following:īluefruitmicro atmega32u4 8Mhz 28Kb 2.5Kb Adafruit Bluefruit Microįeather32u4 atmega32u4 8Mhz 28Kb 2.5Kb Adafruit Featherįlora8 atmega32u4 8Mhz 28Kb 2.5Kb Adafruit Flora If you wish to use other board - you could find it's name using the following command:Īnd then just find in the command output name of your board (for Arduino boards see atmelavr platforms section). Here i've created project for the Adruino UNO board. Create folder where your test project will be placed, cd to this folder. Now lets create first project with platformio.
If pip is not installed you could install it by running the following command:Īfter this lets install PlatformIO by itself: So first of all check whether you have installed python package manager pip:
So how to use PlatformIO and how to integrate it with IntelliJ IDEA? Also it does not require installed Arduino IDE - it is completely independent solution: toolchain for specific platform is downloaded and managed by Platformio. The great thing is that it supports not only Arduino but other MCU's as well - you could see list of supported platforms here. It has pre-configured settings for the most Arduino Boards. PlatformIO to the rescueIn short PlatformIO is free and open-source cross-platform code builder and library manager for Arduino with Continuos and IDE integration. There is a CLion Arduino plugin present in IntelliJ plugins repository i've tried it but still was unhappy (also i used trial version of CLion since it does not have community version).īut recently i've found such a great project - PlatformIO created by Ivan Kravets from Ukraine which is very great since i'm also from Ukraine. Originally i've used Arduino IDE to develop and upload sketches to the MCU.īut as a java/javascript software developer i always felt myself unhappy since i could not use my favourite IntelliJ IDEA for this. Arduino IDE timesRecently i've started to play with Arduino and also different other micro controllers like esp8266.