@ivankravets
Hello Mr Ivankravets
Ok birthday is done and bottles empty....
-Well When you compare to Arduino IDE vs PlatforIO is something slightly different:
Running the "BatteryPoweredSensor.ino" (Mysensors 2.0) example in Arduino 1.6
1)Load new Sketch "Examples">>Mysensors >> BatteryPoweredSensor
2)Compile >>will not work for all boards (due to INTERNAL is not defined for all AVR members )
3)Download to controller
PlatformIO:
1) Choose Board (here tested with UNO)
2) Choose Dir (only existing dir no create possible) (First make MKDIR BatteryPoweredSensor )
3) Copy code file from Mysensors example dir to PlatformIO \src dir (right click open in explorer)
4) Enable Use development Version of PlatformIO (at the moment for PIO 3.0) in settings
5) Add PATH string variable in settings (Good explanation anyway)
6) Start cmd (Powershell in Windoze) from PlatformIO
7) Execute the cmd >> platformio lib install 548 (For Mysensors 2.0 lib)
8) Compile
9) Download to controller
-This being sayed for these additional steps you get something what is non existing in Arduino ide:
+AutoComplete variables /suggest with function prototypes
+Acces to all used code off the included library
+Compile in seconds
-Still some questions also:
Is there a quick way to refractor over source files (not readed the manual)?
Goto declaration does not work (maybe my fault) Clang is installed however.
Local version control?
Specify wich serial port for upload (and not use the default first one)
Tnx in advance,
Stefan.