This is an old revision of the document!
USB
Installation
Download and install official GitHub’s Atom text editor. PlatformIO IDE is built on top of 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
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
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