This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot:examples:setup:usb [2018/12/27 12:53] – external edit 127.0.0.1 | en:iot:examples:setup:usb [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Installing Atom with PlatformIO and creating your first project ====== | ||
| + | **Source:** | ||
| + | http:// | ||
| + | |||
| + | This tutorial describes how to download and install PlatformIO as an Atom plugin. | ||
| + | |||
| + | === Installation === | ||
| + | |||
| + | - [[https:// | ||
| + | - Open Atom Package Manager (Linux,OS -> Menu: Edit > Preferences > Install, Windows -> Menu: File > Settings > Install) | ||
| + | - Search for official Platformio-ide package | ||
| + | - {{: | ||
| + | - Install PlatformIO IDE | ||
| + | - Install 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 have installed automatically when you run clang in Terminal for the first time, or manually by running <code c> xcode-select --install </ | ||
| + | * Windows: [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | 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” | ||
| + | {{: | ||
| + | * Choose a name for your project. In board selection choose "WeMos D1 R2 & mini (WEMOS)" | ||
| + | {{: | ||
| + | * On the left menu add the project you just created to the Project tree | ||
| + | * Open platformio.ini file and paste <code c> | ||
| + | <note important> | ||
| + | {{: | ||
| + | * Open main.cpp file in src folder. Here is where you will write your code. For now just replace everything with the [[en: | ||
| + | {{: | ||
| + | * Run Build (PlatformIO > Build) and you should see green “success” result in the building panel | ||
| + | {{: | ||
| + | * To upload firmware to the board run Upload. After you have successfully uploaded your code you might want to check how it works. To do that try sending it commands with the MQTTbox software. | ||
| + | (If you are having uploading problems with Linux, try sudo chown username / | ||
| + | |||
| + | * To run built-in “Serial Monitor” choose (Menu: PlatformIO > Serial Monitor) or press the corresponding icon in the PlatformIO toolbar | ||
| + | {{: | ||