82 lines
2.2 KiB
INI
82 lines
2.2 KiB
INI
; PlatformIO Project Configuration File for SkyLogic AeroAlign Master Node
|
|
;
|
|
; Master node hosts:
|
|
; - WiFi Access Point (SSID: SkyLogic-AeroAlign)
|
|
; - AsyncWebServer with browser-based web UI
|
|
; - ESP-NOW receiver for Slave node data
|
|
; - MPU6050/BNO055 IMU driver
|
|
;
|
|
; Board: ESP32-C3 (RISC-V, 160MHz, 4MB flash, WiFi)
|
|
; Alternative: ESP32-S3 (dual-core, 240MHz, 8MB flash)
|
|
|
|
[env:esp32-c3]
|
|
platform = espressif32
|
|
board = esp32-c3-devkitm-1
|
|
framework = arduino
|
|
|
|
; Serial monitor settings
|
|
monitor_speed = 115200
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
; Build flags
|
|
build_flags =
|
|
-D ARDUINO_USB_CDC_ON_BOOT=0 ; Use standard Serial
|
|
-D CORE_DEBUG_LEVEL=3 ; Info-level logging
|
|
-D CONFIG_ASYNC_TCP_RUNNING_CORE=0 ; AsyncWebServer on core 0
|
|
|
|
; Library dependencies
|
|
lib_deps =
|
|
Wire ; I2C for IMU
|
|
me-no-dev/AsyncTCP@^1.1.1 ; Async TCP for web server
|
|
me-no-dev/ESPAsyncWebServer@^1.2.3 ; Async HTTP server
|
|
bblanchon/ArduinoJson@^6.21.3 ; JSON serialization
|
|
adafruit/Adafruit MPU6050@^2.2.4 ; MPU6050 IMU driver
|
|
adafruit/Adafruit BNO055@^1.6.0 ; BNO055 IMU driver (optional)
|
|
|
|
; Partition scheme (3.2MB app, 640KB SPIFFS, 192KB NVS)
|
|
board_build.partitions = default.csv
|
|
|
|
; Flash settings
|
|
board_build.flash_mode = dio
|
|
board_build.f_flash = 80000000L
|
|
board_build.f_cpu = 160000000L
|
|
|
|
; Upload settings
|
|
upload_speed = 921600
|
|
|
|
[env:esp32-s3]
|
|
platform = espressif32
|
|
board = esp32-s3-devkitc-1
|
|
framework = arduino
|
|
|
|
; Serial monitor settings
|
|
monitor_speed = 115200
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
; Build flags
|
|
build_flags =
|
|
-D ARDUINO_USB_CDC_ON_BOOT=0
|
|
-D CORE_DEBUG_LEVEL=3
|
|
-D CONFIG_ASYNC_TCP_RUNNING_CORE=0
|
|
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
|
|
|
; Library dependencies (same as C3)
|
|
lib_deps =
|
|
Wire
|
|
me-no-dev/AsyncTCP@^1.1.1
|
|
me-no-dev/ESPAsyncWebServer@^1.2.3
|
|
bblanchon/ArduinoJson@^6.21.3
|
|
adafruit/Adafruit MPU6050@^2.2.4
|
|
adafruit/Adafruit BNO055@^1.6.0
|
|
|
|
; Partition scheme
|
|
board_build.partitions = default.csv
|
|
|
|
; Flash settings (8MB)
|
|
board_build.flash_mode = qio
|
|
board_build.f_flash = 80000000L
|
|
board_build.f_cpu = 240000000L
|
|
|
|
; Upload settings
|
|
upload_speed = 921600
|