My journey on ESP32 with the LILYGO® TTGO LoRa32 V2.1 1.6 Version 868Mhz
- Blink Bultin Led - Make blink the internal led.
- Hello World - Basic Serial print.
- Hall Sensor - Get Hall sensor value.
- BMP 280 Sensor - Get temperature, pressure, altitude from BMP 280 sensor.
- OLED with GFX - Play with OLED screen using GFX library.
- OLED with U8g2 - Play with OLED screen using U8g2 library.
- QR Code - Display QR Code on Serial & OLED screen.
- Hibernate - Hibernate ESP32 with timer wake-up.
- Tasks - MultiTasking sample.
- Preferences - Store data in NVS memory using Preferences.h.
- SPIFFS - Store data in a SPIFFS partition.
- Fast Reset - Fast Reset OOP using Tasks & Preferences.h.
- Blink Led Util - Blink Led OOP using Tasks.
- WiFi Scan - WiFi network scan.
- WiFi Client - WiFi client with auto-reconnect.
- WiFi Captive Portal - WiFi AP with Captive Portal.
# 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
# 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