ESP32-PaxCounter/platformio.ini

361 lines
10 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]
2018-11-25 23:39:12 +01:00
env_default = generic
2018-09-15 15:20:41 +02:00
;env_default = ebox
;env_default = eboxtube
2018-11-25 16:05:30 +01: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
2018-11-25 16:35:36 +01:00
;env_default = ttgov21new
2018-12-17 10:13:08 +01:00
;env_default = ttgobeam_old
;env_default = ttgobeam_new
;env_default = lopy
2018-11-05 17:27:17 +01:00
;env_default = lopy4
2018-09-15 15:20:41 +02:00
;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"
2018-12-17 10:13:08 +01:00
release_version = 1.6.972
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
2018-11-25 23:39:12 +01:00
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-11-28 11:42:56 +01:00
upload_protocol = esptool
;upload_protocol = custom
2018-09-18 17:23:56 +02:00
extra_scripts = pre:build.py
keyfile = ota.conf
platform_espressif32 = espressif32@1.5.0
;platform_espressif32 = https://github.com/platformio/platform-espressif32.git#a7b1fe6
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
lib_deps_lora =
MCCI LoRaWAN LMIC library@2.3.0
2018-09-15 15:20:41 +02:00
lib_deps_display =
2018-11-10 18:32:16 +01:00
U8g2@>=2.25.0
2018-09-15 15:20:41 +02:00
lib_deps_rgbled =
SmartLeds@>=1.1.3
lib_deps_gps =
TinyGPSPlus@>=1.0.2
2018-11-21 11:49:23 +01:00
lib_deps_basic =
ArduinoJson@^5.13.1
Time@>=1.5
lib_deps_all =
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
2018-11-25 11:48:03 +01:00
build_flags_basic =
2018-12-11 23:20:32 +01:00
-include "src/hal/${PIOENV}.h"
-include "src/paxcounter.conf"
2018-11-25 11:48:03 +01:00
-w
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
'-DBINTRAY_PACKAGE="${PIOENV}"'
'-DPROGVERSION="${common.release_version}"'
build_flags_sensors =
2018-11-22 23:37:53 +01:00
-Llib/Bosch-BSEC
-llibalgobsec.a
2018-11-25 11:48:03 +01:00
build_flags_all =
${common.build_flags_basic}
${common.build_flags_sensors}
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 =
${common.lib_deps_basic}
${common.lib_deps_lora}
build_flags =
2018-11-25 11:48:03 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:eboxtube]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 115200
lib_deps =
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
2018-09-15 15:20:41 +02:00
build_flags =
2018-11-25 11:48:03 +01:00
${common.build_flags_basic}
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: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 =
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
build_flags =
2018-11-25 11:48:03 +01:00
${common.build_flags_basic}
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_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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: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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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: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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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
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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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 18:59:20 +02:00
2018-09-17 17:23:02 +02:00
[env:ttgov21new]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
2018-09-17 17:23:02 +02:00
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_basic}
${common.lib_deps_lora}
2018-09-17 17:23:02 +02:00
${common.lib_deps_display}
build_flags =
2018-11-25 11:48:03 +01:00
${common.build_flags_basic}
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
2018-12-17 10:13:08 +01:00
[env:ttgobeam_old]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_gps}
build_flags =
${common.build_flags_all}
-mfix-esp32-psram-cache-issue
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:ttgobeam_new]
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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_all}
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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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:lopy]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
2018-12-08 12:34:35 +01:00
board = lopy
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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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:lopy4]
2018-09-17 17:23:02 +02:00
platform = ${common.platform_espressif32}
2018-09-15 15:20:41 +02:00
framework = arduino
2018-11-25 11:48:03 +01:00
board = lopy4
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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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: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 =
${common.lib_deps_basic}
${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-11-25 11:48:03 +01:00
${common.build_flags_basic}
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: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 =
${common.lib_deps_basic}
2018-09-17 17:23:02 +02:00
${common.lib_deps_rgbled}
2018-09-15 15:20:41 +02:00
build_flags =
2018-11-25 11:48:03 +01:00
${common.build_flags_basic}
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: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}
2018-11-25 11:48:03 +01:00
build_flags = ${common.build_flags_all}
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 = ${common.lib_deps_all}
2018-11-25 11:48:03 +01:00
build_flags = ${common.build_flags_all}
2018-09-17 17:23:02 +02:00
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
2018-12-08 12:34:35 +01:00
monitor_speed = ${common.monitor_speed}