ESP32-PaxCounter/platformio.ini

273 lines
7.8 KiB
INI
Raw Normal View History

2018-09-15 15:20:41 +02:00
; PlatformIO Project Configuration File
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
env_default = generic
2018-09-15 15:20:41 +02:00
;env_default = ebox
;env_default = heltec
;env_default = ttgov1
;env_default = ttgov2
2018-09-17 17:23:02 +02:00
;env_default = ttgov21old
;env_default = ttgov21new
2018-09-17 18:06:50 +02:00
;env_default = ttgobeam
2018-09-15 15:20:41 +02:00
;env_default = lopy
;env_default = lopy4
;env_default = fipy
;env_default = lolin32litelora
;env_default = lolin32lora
;env_default = lolin32lite
2018-09-17 18:06:50 +02:00
;env_default = ebox, heltec, ttgobeam, lopy4, lopy, ttgov21old, ttgov21new
2018-09-15 15:20:41 +02:00
;
description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around.
2018-09-17 17:23:02 +02:00
[common]
2018-09-19 01:35:20 +02:00
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
2018-09-27 14:01:23 +02:00
release_version = 1.5.7
2018-09-18 17:23:56 +02:00
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
2018-09-17 17:23:02 +02:00
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
debug_level = 0
2018-09-18 17:23:56 +02:00
; UPLOAD MODE: select esptool to flash via USB/UART, select custom to upload to cloud for OTA
2018-09-17 17:23:02 +02:00
upload_protocol = esptool
;upload_protocol = custom
2018-09-18 17:23:56 +02:00
extra_scripts = pre:build.py
keyfile = ota.conf
2018-09-15 15:20:41 +02:00
platform_espressif32 = espressif32@1.3.0
board_build.partitions = min_spiffs.csv
2018-09-17 17:23:02 +02:00
monitor_speed = 115200
2018-09-15 15:20:41 +02:00
lib_deps_all =
2018-09-16 12:18:11 +02:00
ArduinoJson@^5.13.1
2018-09-15 15:20:41 +02:00
lib_deps_display =
U8g2@>=2.23.16
lib_deps_rgbled =
SmartLeds@>=1.1.3
lib_deps_gps =
TinyGPSPlus@>=1.0.2
Time@>=1.5
2018-09-17 17:23:02 +02:00
build_flags =
2018-09-15 15:20:41 +02:00
; override lora settings from LMiC library in lmic/config.h and use main.h instead
-D_lmic_config_h_
-include "src/paxcounter.conf"
-include "src/hal/${PIOENV}.h"
-w
2018-09-18 17:23:56 +02:00
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DBINTRAY_PACKAGE="${PIOENV}"'
'-DPROGVERSION="${common.release_version}"'
2018-09-17 17:23:02 +02:00
2018-09-15 15:20:41 +02:00
[env:ebox]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 115200
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:heltec]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = heltec_wifi_lora_32
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-21 19:30:02 +02:00
upload_speed = 921600
2018-09-15 15:20:41 +02:00
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_display}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:ttgov1]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 115200
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_display}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:ttgov2]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_display}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
2018-09-17 17:23:02 +02:00
[env:ttgov21old]
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_display}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 18:59:20 +02:00
2018-09-17 17:23:02 +02:00
[env:ttgov21new]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_all}
${common.lib_deps_display}
build_flags =
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:ttgobeam]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_gps}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
2018-09-15 15:20:41 +02:00
-mfix-esp32-psram-cache-issue
2018-09-17 17:23:02 +02:00
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:fipy]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:lopy]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:lopy4]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
2018-09-15 15:20:41 +02:00
-mfix-esp32-psram-cache-issue
2018-09-17 17:23:02 +02:00
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:lolin32litelora]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = lolin32
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:lolin32lora]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = lolin32
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:lolin32lite]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = lolin32
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2018-09-15 15:20:41 +02:00
[env:generic]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
2018-09-15 15:20:41 +02:00
upload_speed = 921600
lib_deps =
2018-09-17 17:23:02 +02:00
${common.lib_deps_all}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
${common.lib_deps_display}
2018-09-15 15:20:41 +02:00
build_flags =
2018-09-17 17:23:02 +02:00
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
2018-09-17 18:06:50 +02:00
monitor_speed = ${common.monitor_speed}