diff --git a/PlatformIO.md b/PlatformIO.md index 24fc58ab..6ae7f318 100644 --- a/PlatformIO.md +++ b/PlatformIO.md @@ -7,22 +7,18 @@ Download PlatformIO from http://platformio.org/ Install PlatformIO to a known folder. ## Download Tasmota -Download the latest Tasmota release Source code from https://github.com/arendst/Sonoff-Tasmota/releases and unzip to another known folder. - -If you use PlatformIO >= 4.0.0 make sure the Tasmota sources include [commit 9818f8b8](https://github.com/arendst/Sonoff-Tasmota/commit/9818f8b8195a63f8c1526e82cf08c0f6f43b7347) otherwise you will run into [issue 6073](https://github.com/arendst/Sonoff-Tasmota/issues/6073). Note that this update was introduced with 6.6.0.6. The 6.6.0 release branch does not include this change. +Download the latest Tasmota Source code from https://github.com/arendst/Tasmota and unzip to another known folder. ## Configure PlatformIO ### Copy files -Copy all files from the Tasmota release Source code into your PlatformIO base folder. +Copy all files from the Tasmota Source code into your PlatformIO base folder. ### Change IDE parameters -The default environment configuration can be used to easily generate Tasmota firmware variants (sonoff, sensors, display, etc.). If you're not sure which binary is the right one for you, consult the [builds table](Builds) or just start with [sonoff.bin](http://thehackbox.org/tasmota/release/sonoff.bin). To build and/or flash exactly one of these, uncomment (i.e., remove the leading `;`) the *env_default* line for the variant you need. To compile more than one binary variant, uncomment all of the desired *env_default* lines in the *platformio.ini* file. +The default environment configuration can be used to easily generate Tasmota firmware variants (sonoff, sensors, display, etc.). If you're not sure which binary is the right one for you, consult the [builds table](Builds) or just start with `sonoff.bin` / `tasmota.bin`. To build and/or flash exactly one of these, uncomment (i.e., remove the leading `;`) the *env_default* line for the variant you need. To compile more than one binary variant, uncomment all of the desired *env_default* lines in the *platformio.ini* file. ## Compile Tasmota Select ``Build`` from the menu. -Note that where the Arduino IDE automatically includes the main Arduino library, you may need to manually do this when using PlatformIO. In your main ``.cpp`` file, add ``#include `` at the top. - ## Upload Tasmota PlatformIO uses the serial interface to upload the firmware to your device. On Windows these interfaces are named COM ports (COM1, COM2, etc.). On Linux these interfaces are named [TTY ports](https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0) (e.g., /dev/ttyUSB0, /dev/ttyUSB1, etc.).