/esp32-walkthrough

My journey with Arduino on ESP32

Primary LanguageC++GNU General Public License v3.0GPL-3.0

ESP32 Walkthrough

My journey on ESP32 with the LILYGO® TTGO LoRa32 V2.1 1.6 Version 868Mhz

board pinout

Projects

Setup

# install esptool
pip install -U esptool

# install platformio
pip install -U platformio
export PATH="$PATH:$HOME/.local/bin"

# list your OS groups
compgen -g

# list your groups
groups

# add group uucp to your user
sudo usermod -a -G uucp vince  
sudo usermod -a -G lock vince  

# logout / login

Lifecycle

# create project directory
mkdir HelloWorld
cd HelloWorld

# init project
pio init \
    --board ttgo-lora32-v21 \
    --project-option "framework=arduino" \
    --project-option "monitor_speed=115200" \
    --ide vscode

# build
pio run

# clean
pio run -t clean

# build
pio run

# upload
pio run -t upload

# monitor
pio run -t monitor

# upload & monitor
pio run -t upload -t monitor

# list all targets
pio run --list-targets

# list all devices
pio device list

# upload data/ to SPIFFS
pio run -t uploadfs

# erase flash
pio run -t erase