20 lines
792 B
INI
20 lines
792 B
INI
|
|
; BalDav BLE barometer - ESP32-C3 SuperMini + BMP280
|
||
|
|
; Build & flash over USB, no Arduino IDE:
|
||
|
|
; pip install platformio (once)
|
||
|
|
; pio run -t upload (compile + flash via USB-C)
|
||
|
|
; pio device monitor (optional: see logs)
|
||
|
|
; ESP32-C3 flashes over its native USB. If upload can't find the port the first time:
|
||
|
|
; hold BOOT (GPIO9), tap RESET, release BOOT -> it enters download mode, then retry upload.
|
||
|
|
|
||
|
|
[env:esp32-c3-supermini]
|
||
|
|
platform = espressif32
|
||
|
|
board = esp32-c3-devkitm-1
|
||
|
|
framework = arduino
|
||
|
|
monitor_speed = 115200
|
||
|
|
; native USB-CDC so the board enumerates as a serial port over its own USB-C
|
||
|
|
build_flags =
|
||
|
|
-D ARDUINO_USB_MODE=1
|
||
|
|
-D ARDUINO_USB_CDC_ON_BOOT=1
|
||
|
|
lib_deps =
|
||
|
|
adafruit/Adafruit BMP280 Library @ ^2.6.8
|
||
|
|
h2zero/NimBLE-Arduino @ ^1.4.1
|