How to build PlatformIO based project

  1. Install PlatformIO
  2. Download source code with examples
  3. Extract ZIP archive
  4. Run these commands:
# Change directory to example
> cd platformio-examples/espressif/esp8266-webserver

# Build project
> platformio run

# Upload firmware
> platformio run --target upload

# Build specific environment
> platformio run -e esp01

# Upload firmware for the specific environment
> platformio run -e esp01 --target upload

# Clean build files
> platformio run --target clean