This is an old revision of the document!
Installation
Download and install official GitHub’s Atom text editor. PlatformIO will be installed as a plugin to it.
Open Atom Package Manager (Linux,
OS → Menu: Edit > Preferences > Install, Windows → Menu: File > Settings > Install)
Search for official Platformio-ide package
-
Install PlatformIO IDE
Intall clang
PLEASE DO NOT INSTALL CLANG 4.0. PLATFORMIO TEMPORARY SUPPORTS ONLY CLANG 3.9.
If you see Failed to find MSBuild toolsets directory error in the installation console, please ignore it and press any key to close this window. PlatformIO IDE uses only Clang completion engine that should work after it without any problems.
Setting Up the Project
Click on “PlatformIO Home” button on the PlatformIO Toolbar
Click on “New Project”, select a board and create new PlatformIO Project
Select “D1_mini_lite” or what ever module you're using
Open platformio.ini file and paste
lib_deps = ITTIoT, EmonLib, Adafruit NeoPixel, Encoder, Adafruit GFX Library, DHT sensor library, Adafruit Unified Sensor, Wemos Matrix Adafruit GFX
to the end of the framework line
Open main.cpp file form src folder and replace its contents with some code
Run Build (PlatformIO > Build) and you should see green “success” result in the building panel
To upload firmware to the board run Upload
What is more, you can run specific target or process project environment using (Menu: PlatformIO > Run other target…) or call targets list from the status bar (bottom, left corner)
(If your having uploading problems with Linux, try sudo chown username /dev/ttyUSB0)
To run built-in terminal interface choose (Menu: PlatformIO > Terminal) or press the corresponding icon in the PlatformIO toolbar
To run built-in “Serial Monitor” choose (Menu: PlatformIO > Serial Monitor) or press the corresponding icon in the PlatformIO toolbar
Link for installation:
http://docs.platformio.org/en/latest/ide/atom.html#installation