164 lines
4.8 KiB
INI
164 lines
4.8 KiB
INI
;PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
; ============================================================
|
|
; chose environment:
|
|
; ESP32
|
|
; esp32s2
|
|
; esp32s3
|
|
; esp32c3
|
|
|
|
; ============================================================
|
|
default_envs = ESP32
|
|
|
|
[env]
|
|
; ============================================================
|
|
; Serial configuration
|
|
; choose upload speed, serial-monitor speed
|
|
; ============================================================
|
|
upload_speed = 921600
|
|
;upload_port = COM11
|
|
;monitor_speed = 9600
|
|
;monitor_port = COM11
|
|
|
|
; ============================================================
|
|
; Checks for the compatibility with frameworks and dev/platforms
|
|
lib_compat_mode = strict
|
|
lib_ldf_mode = chain+
|
|
;lib_ldf_mode = deep+
|
|
|
|
; ============================================================
|
|
lib_deps =
|
|
|
|
; ============================================================
|
|
build_flags =
|
|
; set your debug output (default=Serial)
|
|
-D DEBUG_ESP_PORT=Serial
|
|
; comment the following line to enable WiFi debugging
|
|
-D NDEBUG
|
|
|
|
; ============================================================
|
|
; ============================================================
|
|
[env:ESP32]
|
|
platform = espressif32
|
|
framework = arduino
|
|
|
|
; ============================================================
|
|
; Board configuration
|
|
; choose your board by uncommenting one of the following lines
|
|
; ============================================================
|
|
;board = esp32cam
|
|
;board = alksesp32
|
|
;board = featheresp32
|
|
;board = espea32
|
|
;board = bpi-bit
|
|
;board = d-duino-32
|
|
board = esp32doit-devkit-v1
|
|
;board = pocket_32
|
|
;board = fm-devkit
|
|
;board = pico32
|
|
;board = esp32-evb
|
|
;board = esp32-gateway
|
|
;board = esp32-pro
|
|
;board = esp32-poe
|
|
;board = oroca_edubot
|
|
;board = onehorse32dev
|
|
;board = lopy
|
|
;board = lopy4
|
|
;board = wesp32
|
|
;board = esp32thing
|
|
;board = sparkfun_lora_gateway_1-channel
|
|
;board = ttgo-lora32-v1
|
|
;board = ttgo-t-beam
|
|
;board = turta_iot_node
|
|
;board = lolin_d32
|
|
;board = lolin_d32_pro
|
|
;board = lolin32
|
|
;board = wemosbat
|
|
;board = widora-air
|
|
;board = xinabox_cw02
|
|
;board = iotbusio
|
|
;board = iotbusproteus
|
|
;board = nina_w10
|
|
|
|
; ============================================================
|
|
; ============================================================
|
|
[env:esp32s2]
|
|
platform = espressif32
|
|
framework = arduino
|
|
|
|
; toolchain download links see
|
|
; refer "name": "xtensa-esp32s2-elf-gcc","version": "gcc8_4_0-esp-2021r1" section of
|
|
; https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
|
|
; e.g. Windows: https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r1-win32.zip
|
|
platform_packages =
|
|
toolchain-xtensa32s2@file://C:\Users\Max\Downloads\xtensa-esp32s2-elf
|
|
framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#a4118ea88987c28aac3a49bcb9cc5d6c0acc6f3f
|
|
platformio/tool-esptoolpy @ ~1.30100
|
|
framework = arduino
|
|
board = esp32dev
|
|
board_build.mcu = esp32s2
|
|
board_build.partitions = huge_app.csv
|
|
board_build.variant = esp32s2
|
|
board_build.f_cpu = 240000000L
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
board_build.arduino.ldscript = esp32s2_out.ld
|
|
build_unflags =
|
|
-DARDUINO_ESP32_DEV
|
|
-DARDUINO_VARIANT="esp32"
|
|
build_flags =
|
|
-DARDUINO_ESP32S2_DEV
|
|
-DARDUINO_VARIANT="esp32s2"
|
|
|
|
; ============================================================
|
|
; ============================================================
|
|
[env:esp32s3]
|
|
platform = espressif32
|
|
framework = arduino
|
|
|
|
board_build.mcu = esp32s3
|
|
board_build.partitions = huge_app.csv
|
|
board_build.variant = esp32s3
|
|
board_build.f_cpu = 240000000L
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
board_build.arduino.ldscript = esp32s3_out.ld
|
|
build_unflags =
|
|
-DARDUINO_ESP32_DEV
|
|
-DARDUINO_VARIANT="esp32"
|
|
build_flags =
|
|
-DARDUINO_ESP32S3_DEV
|
|
-DARDUINO_VARIANT="esp32s3"
|
|
|
|
; ============================================================
|
|
; ============================================================
|
|
[env:esp32sc3]
|
|
platform = espressif32
|
|
framework = arduino
|
|
|
|
board_build.mcu = esp32c3
|
|
board_build.partitions = huge_app.csv
|
|
board_build.variant = esp32c3
|
|
board_build.f_cpu = 160000000L
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
board_build.arduino.ldscript = esp32c3_out.ld
|
|
build_unflags =
|
|
-DARDUINO_ESP32_DEV
|
|
-DARDUINO_VARIANT="esp32"
|
|
build_flags =
|
|
-DARDUINO_ESP32S3_DEV
|
|
-DARDUINO_VARIANT="esp32c3"
|
|
|
|
; ============================================================
|
|
; ============================================================
|