en:iot:examples:setup:usb
This is an old revision of the document!
Table of Contents
USB
There are many different ways to install PlatformIO.
Sources:
http://docs.platformio.org/en/latest/ide/atom.html#installation
http://docs.platformio.org/en/latest/installation.html
http://www.whatimade.today/esp8266-easiest-way-to-program-so-far/
The next tutorial describes how to download and install PlatformIO as an Atom plugin.
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
- Linux: Using package managers: apt-get install clang or yum install clang.
- Mac OS X: Install the latest Xcode along with the latest Command Line Tools (they are installed automatically when you run clang in Terminal for the first time, or manually by running
xcode-select --install
- Windows: Download Clang 3.9.1 for Windows. Please select “Add LLVM to the system PATH” option on the installation step.
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
- 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
en/iot/examples/setup/usb.1516719280.txt.gz · Last modified: (external edit)







