Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot:examples:setup:usb [2020/07/20 11:26] – external edit 127.0.0.1en:iot:examples:setup:usb [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 8: Line 8:
 === Installation === === Installation ===
  
-  - [[https://atom.io/|Download]] and install official GitHub’s Atom text editor. PlatformIO will be installed as a plugin to it.+  - [[https://atom.io/|Download]] and install official GitHub’s Atom text editor. PlatformIO will be installed as a plugin to it. Install Python if not yet installed (Windows)
   - Open Atom Package Manager (Linux,OS -> Menu: Edit > Preferences > Install, Windows -> Menu: File > Settings > Install)   - Open Atom Package Manager (Linux,OS -> Menu: Edit > Preferences > Install, Windows -> Menu: File > Settings > Install)
   - Search for official Platformio-ide package    - Search for official Platformio-ide package 
   -  {{:en:iot:examples:ide-atom-pkg-installer.png?400|}}   -  {{:en:iot:examples:ide-atom-pkg-installer.png?400|}}
   - Install PlatformIO IDE   - Install PlatformIO IDE
-  - Intall clang+  - Install clang
   * Linux: Using package managers: apt-get install clang or yum 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 are installed automatically when you run clang in Terminal for the first time, or manually by running <code c> xcode-select --install </code>+  * 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 </code>
   * Windows: [[http://releases.llvm.org/download.html|Download]] Clang 3.9.1 for Windows. Please select “Add LLVM to the system PATH” option on the installation step.   * Windows: [[http://releases.llvm.org/download.html|Download]] Clang 3.9.1 for Windows. Please select “Add LLVM to the system PATH” option on the installation step.
       * [[http://releases.llvm.org/3.9.1/LLVM-3.9.1-win32.exe|Clang 3.9.1 for Windows (32-bit)]].        * [[http://releases.llvm.org/3.9.1/LLVM-3.9.1-win32.exe|Clang 3.9.1 for Windows (32-bit)]]. 
Line 35: Line 35:
   * Choose a name for your project. In board selection choose "WeMos D1 R2 & mini (WEMOS)" and the framework should be "Arduino".   * Choose a name for your project. In board selection choose "WeMos D1 R2 & mini (WEMOS)" and the framework should be "Arduino".
 {{:en:iot:examples:setup:newproject.png?300|}} {{:en:iot:examples:setup:newproject.png?300|}}
-  * Open platformio.ini file and paste <code c>lib_deps = ITTIoT</code> to the end of the framework line. "lib_deps" informs the PlatformIO about which libraries to download for your project. ITTIoT library is a must-have with all IoT Homelab kit programs. The exact libaries needed for each module are described at their example page. +  * On the left menu add the project you just created to the Project tree 
-   {{:en:iot:examples:setup:2018-01-23.png?300|}}+  * Open platformio.ini file and paste <code c>lib_deps = ITTIoT</code> to the end of the framework line. "lib_deps" informs the PlatformIO about which libraries to download for your project. ITTIoT library is a must-have with all IoT Homelab kit programs. The exact libraries needed for each module are described on their example page. Make sure that the board is correct <code c>board = d1_mini</code> 
 +<note important>Image needs to be replaced</note> 
 +{{:en:iot:examples:setup:2018-01-23.png?300|}}
   * Open main.cpp file in src folder. Here is where you will write your code. For now just replace everything with the [[en:iot:examples:relay|relay example code]].   * Open main.cpp file in src folder. Here is where you will write your code. For now just replace everything with the [[en:iot:examples:relay|relay example code]].
 {{:en:iot:examples:setup:maincpp.png?300|}} {{:en:iot:examples:setup:maincpp.png?300|}}
Line 42: Line 44:
 {{:en:iot:examples:ide-atom-process-project.png?300|}} {{:en:iot:examples:ide-atom-process-project.png?300|}}
   * 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.   * 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 your having uploading problems with Linux, try sudo chown username /dev/ttyUSB0)+(If you are having uploading problems with Linux, try sudo chown username /dev/ttyUSB0)
  
   * To run built-in “Serial Monitor” choose (Menu: PlatformIO > Serial Monitor) 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
 {{:en:iot:examples:ide-atom-quick-start-13.png?300|}} {{:en:iot:examples:ide-atom-quick-start-13.png?300|}}
en/iot/examples/setup/usb.1595244384.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