This is an old revision of the document!


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

  1. Download and install official GitHub’s Atom text editor. PlatformIO IDE is built on top of it
  2. Open Atom Package Manager (Linux,OS → Menu: Edit > Preferences > Install, Windows → Menu: File > Settings > Install)
  3. Search for official Platformio-ide package

  1. Install PlatformIO IDE
  2. 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

  1. Click on “PlatformIO Home” button on the PlatformIO Toolbar

  1. Click on “New Project”, select a board and create new PlatformIO Project

  1. 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 framwork line

  1. Open main.cpp file form src folder and replace its contents with some code
  2. Run Build (PlatformIO > Build) and you should see green “success” result in the building panel

  1. To upload firmware to the board run Upload
  2. 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)

  1. To run built-in terminal interface choose (Menu: PlatformIO > Terminal) or press the corresponding icon in the PlatformIO toolbar

  1. 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.1516718927.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0