ESP32-PaxCounter/platformio.ini

339 lines
9.7 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 = eboxtube
2018-09-15 15:20:41 +02:00
;env_default = heltec
;env_default = heltecv2
2018-09-15 15:20:41 +02:00
;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
;env_default = lopy
2018-09-15 15:20:41 +02:00
;env_default = lopy4
;env_default = fipy
;env_default = lolin32litelora
;env_default = lolin32lora
;env_default = lolin32lite
;env_default = octopus32
;env_default = ebox, eboxtube, 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"
release_version = 1.6.54
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-10-03 16:24:45 +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-10-01 22:04:56 +02:00
platform_espressif32 = espressif32@1.4.0
2018-09-15 15:20:41 +02:00
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
lib_deps_lora =
; MCCI LoRaWAN LMIC library@^2.2.2
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
-include "src/hal/${PIOENV}.h"
-include "src/paxcounter.conf"
2018-09-15 15:20:41 +02:00
-w
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'
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 = heltec_wifi_lora_32
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_lora}
build_flags =
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:eboxtube]
platform = ${common.platform_espressif32}
framework = arduino
board = heltec_wifi_lora_32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 115200
lib_deps =
${common.lib_deps_all}
${common.lib_deps_lora}
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_lora}
${common.lib_deps_display}
build_flags =
${common.build_flags}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:heltecv2]
platform = ${common.platform_espressif32}
framework = arduino
board = heltec_wifi_lora_32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_all}
${common.lib_deps_lora}
2018-09-17 17:23:02 +02:00
${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 = ttgo-lora32-v1
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_lora}
2018-09-17 17:23:02 +02:00
${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 = ttgo-lora32-v1
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_lora}
2018-09-17 17:23:02 +02:00
${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 = heltec_wifi_lora_32
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_lora}
2018-09-17 17:23:02 +02:00
${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 = heltec_wifi_lora_32
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_all}
${common.lib_deps_lora}
2018-09-17 17:23:02 +02:00
${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 = heltec_wifi_lora_32
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_lora}
2018-09-17 17:23:02 +02:00
${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 = heltec_wifi_lora_32
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_lora}
2018-09-17 17:23:02 +02:00
${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 = heltec_wifi_lora_32
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_lora}
2018-09-17 17:23:02 +02:00
${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 = heltec_wifi_lora_32
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_lora}
2018-09-17 17:23:02 +02:00
${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_lora}
2018-09-17 17:23:02 +02:00
${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_lora}
2018-09-17 17:23:02 +02:00
${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:octopus32]
platform = ${common.platform_espressif32}
framework = arduino
board = featheresp32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_all}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
${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:generic]
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-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_lora}
2018-09-17 17:23:02 +02:00
${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}
monitor_speed = ${common.monitor_speed}