Skip to content

Instantly share code, notes, and snippets.

@Ritika-Das
Last active March 27, 2022 18:47
Show Gist options
  • Save Ritika-Das/5658fef4229066faeedd29392474ba97 to your computer and use it in GitHub Desktop.
Save Ritika-Das/5658fef4229066faeedd29392474ba97 to your computer and use it in GitHub Desktop.

Initialise a Platformio Project

mkdir Project cd Project pio project init

Removing unnecessary PlatformIO system data

pio system prune --dry-run

Configure platform.ini file

nvim platform.ini Put this in the file (since we're using an ESP32 board):

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200

Create main.cpp in src and put your Arduino/ESP32 code

Build the project

pio run

Upload to board

pio run --target upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment