This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot:examples:setup:usb [2019/01/30 14:56] – rim.puks | en:iot:examples:setup:usb [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| === Installation === | === Installation === | ||
| - | - [[https:// | + | - [[https:// |
| - 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 | ||
| - {{: | - {{: | ||
| - Install PlatformIO IDE | - Install PlatformIO IDE | ||
| - | - Intall | + | - Install |
| * 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 </ | + | * 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:// | * Windows: [[http:// | ||
| * [[http:// | * [[http:// | ||
| Line 35: | Line 35: | ||
| * Choose a name for your project. In board selection choose "WeMos D1 R2 & mini (WEMOS)" | * Choose a name for your project. In board selection choose "WeMos D1 R2 & mini (WEMOS)" | ||
| {{: | {{: | ||
| - | * 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: | * Open main.cpp file in src folder. Here is where you will write your code. For now just replace everything with the [[en: | ||
| {{: | {{: | ||
| Line 42: | Line 44: | ||
| {{: | {{: | ||
| * 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 / | + | (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 | * To run built-in “Serial Monitor” choose (Menu: PlatformIO > Serial Monitor) or press the corresponding icon in the PlatformIO toolbar | ||
| {{: | {{: | ||