140 lines
4.0 KiB
INI
140 lines
4.0 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
|
|
|
|
; [env:esp32-c3-devkitm-1]
|
|
; platform = espressif32
|
|
; board = esp32-c3-devkitm-1
|
|
; framework = arduino
|
|
|
|
|
|
[platformio]
|
|
default_envs = test
|
|
|
|
|
|
;CHANGE THE VERSION BELOW !!!!!!
|
|
[program_customisation]
|
|
version = "0.19.03" ; don't use letters, 2 digits in each field
|
|
client = "papio"
|
|
|
|
[scripts_defaults]
|
|
extra_scripts =
|
|
; post:extra_scripts/output_bins.py
|
|
; post:extra_scripts/erase_before_upload.py
|
|
|
|
[common]
|
|
build_flags =
|
|
'-DHOSTNAME="$PIOENV"'
|
|
'-Os'
|
|
'-D ZH_PROG_VERSION=${program_customisation.version}'
|
|
'-D CLIENT=${program_customisation.client}'
|
|
-DCORE_DEBUG_LEVEL=0
|
|
; -DCORE_DEBUG_LEVEL=5
|
|
-D CONFIG_ESP_COEX_SW_COEXIST_ENABLE
|
|
; -D CONFIG_ESP_INT_WDT_TIMEOUT_MS=300
|
|
; -D CONFIG_ESP_TASK_WDT_TIMEOUT_S=3
|
|
|
|
lib_deps =
|
|
; ^1.2.3 means that any 1.x.x version is accpeted.
|
|
; ~1.2.3 means that any 1.2.x version is accepted.
|
|
; "@ ~" Accept only backwards compatible bug fixes
|
|
; arduino-libraries/ArduinoBLE @ ^1.4.1
|
|
|
|
; common - needed SOMETIMES:
|
|
FS
|
|
SPIFFS
|
|
Wire
|
|
WiFi
|
|
|
|
; Project specific: some libs moved to /lib so local
|
|
; arduino-libraries/ArduinoBLE @ ~1.3.7
|
|
SPI
|
|
; bodmer/TFT_eSPI @ ~2.5.43
|
|
; pstolarz/OneWireNg @ ~0.13.3
|
|
; robtillaart/ADS1X15 @ ~0.5.1
|
|
|
|
; OTA - FW update
|
|
; esphome/ESPAsyncWebServer-esphome@^2.1.0
|
|
; ottowinter/ESPAsyncTCP-esphome @ ^1.2.3
|
|
Update
|
|
|
|
monitor_filters = time, colorize, esp32_exception_decoder
|
|
platform = espressif32
|
|
framework = arduino
|
|
|
|
; my common libraries
|
|
lib_extra_dirs =
|
|
; /Users/papio/3-Programming/02-Platformio/0-common-libs
|
|
|
|
; =========================================================================================================
|
|
; CUSTOM board: ZH bare module OK, here are partition and pins
|
|
; /Users/papio/.platformio/packages/framework-arduinoespressif32/variants/zh_esp32s3_bare_module
|
|
; here is where the boards are described:
|
|
|
|
; using UART, with DARDUINO_USB_CDC_ON_BOOT=0
|
|
; /Users/papio/.platformio/platforms/espressif32/boards/zh_esp32s3_bare_module.json
|
|
|
|
; using UART, with DARDUINO_USB_CDC_ON_BOOT=0 - same as above - linked
|
|
; /Users/papio/.platformio/platforms/espressif32/boards/zh_esp32s3_bare_module-uart.json
|
|
|
|
; using USB OTG, with DARDUINO_USB_CDC_ON_BOOT=1
|
|
; no need to have reset and gpio 0 exposed for programming - it does it automatically (like RTS/DTR)
|
|
; /Users/papio/.platformio/platforms/espressif32/boards/zh_esp32s3_bare_module-usb-otg.json
|
|
|
|
|
|
; [zh_esp32s3_bare_module]
|
|
; board = zh_esp32s3_bare_module
|
|
|
|
; [zh_esp32s3_bare_module-uart]
|
|
; board = zh_esp32s3_bare_module-uart
|
|
|
|
; [zh_esp32s3_bare_module-usbotg]
|
|
; board = zh_esp32s3_bare_module-usb-otg
|
|
; =========================================================================================================
|
|
|
|
|
|
[esp32]
|
|
board=esp32dev
|
|
|
|
[esp32c3]
|
|
board=esp32-c3-devkitm-1
|
|
|
|
[wemoss3minilolin]
|
|
board = lolin_s3_mini
|
|
|
|
[zh_esp32s3_bare_module-usbotg]
|
|
board = zh_esp32s3_bare_module-usb-otg
|
|
|
|
[env]
|
|
upload_speed = 921600
|
|
monitor_speed = 115200
|
|
extra_scripts = ${scripts_defaults.extra_scripts}
|
|
monitor_port = /dev/cu.usbmodem2101
|
|
upload_port = /dev/cu.usbmodem2101
|
|
|
|
[base]
|
|
monitor_filters = ${common.monitor_filters}
|
|
platform = ${common.platform}
|
|
framework = ${common.framework}
|
|
lib_deps = ${common.lib_deps}
|
|
build_flags = ${common.build_flags}
|
|
lib_extra_dirs = ${common.lib_extra_dirs}
|
|
board_build.partitions = min_spiffs.csv ; not enough space on C3
|
|
|
|
; ********************* TEST boards definition start here *********************
|
|
|
|
[env:test]
|
|
extends = base
|
|
board = ${esp32c3.board}
|
|
build_flags = ${base.build_flags}
|
|
-D DEVICE_ID=13
|
|
-DARDUINO_USB_MODE=1
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
|