ESP32-PaxCounter/platformio.ini

405 lines
11 KiB
INI
Raw Normal View History

2019-01-19 19:54:54 +01: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]
default_envs = generic
;default_envs = ebox
;default_envs = eboxtube
;default_envs = ecopower
;default_envs = heltec
;default_envs = heltecv2
;default_envs = ttgov1
;default_envs = ttgov2
;default_envs = ttgov21old
;default_envs = ttgov21new
;default_envs = ttgobeam
;default_envs = ttgofox
;default_envs = lopy
;default_envs = lopy4
;default_envs = fipy
;default_envs = lolin32litelora
;default_envs = lolin32lora
;default_envs = lolin32lite
;default_envs = wemos32oled
;default_envs = octopus32
;default_envs = ecopower, eboxtube, heltec, ttgobeam, lopy4, lopy, ttgov21old, ttgov21new, ttgofox
2019-01-19 19:54:54 +01:00
;
description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around.
[common]
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
2019-06-23 15:52:54 +02:00
release_version = 1.7.62
2019-01-19 19:54:54 +01:00
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
2019-04-19 18:07:36 +02:00
debug_level = 3
2019-01-19 19:54:54 +01:00
; UPLOAD MODE: select esptool to flash via USB/UART, select custom to upload to cloud for OTA
upload_protocol = esptool
;upload_protocol = custom
extra_scripts = pre:build.py
otakeyfile = ota.conf
lorakeyfile = loraconf.h
lmicconfigfile = lmic_config.h
2019-04-19 18:07:36 +02:00
platform_espressif32 = espressif32@1.8.0
;platform_espressif32 = https://github.com/platformio/platform-espressif32.git#develop
2019-01-19 19:54:54 +01:00
board_build.partitions = min_spiffs.csv
monitor_speed = 115200
2019-01-19 20:04:47 +01:00
lib_deps_lora =
2019-04-15 12:57:55 +02:00
;MCCI LoRaWAN LMIC library@2.3.2
2019-04-19 18:07:36 +02:00
https://github.com/mcci-catena/arduino-lmic.git
2019-01-19 19:54:54 +01:00
lib_deps_display =
U8g2@>=2.26.13
lib_deps_matrix_display =
https://github.com/Seeed-Studio/Ultrathin_LED_Matrix.git
2019-01-19 19:54:54 +01:00
lib_deps_rgbled =
2019-02-04 20:02:30 +01:00
SmartLeds@>=1.1.5
2019-01-19 19:54:54 +01:00
lib_deps_gps =
TinyGPSPlus@>=1.0.2
2019-03-13 21:15:28 +01:00
lib_deps_sensors =
Adafruit Unified Sensor@^1.0.3
Adafruit BME280 Library@1.0.8
2019-01-19 19:54:54 +01:00
lib_deps_basic =
ArduinoJson@^5.13.1
76@^1.2.2 ;Timezone by Jack Christensen
274@^2.3.3 ;RTC by Michael Miller
2019-05-03 20:24:42 +02:00
SimpleButton
2019-01-19 20:04:47 +01:00
lib_deps_all =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
2019-05-27 23:29:26 +02:00
${common.lib_deps_matrix_display}
2019-01-19 19:54:54 +01:00
build_flags_basic =
-include "src/hal/${PIOENV}.h"
-include "src/paxcounter.conf"
2019-02-17 19:33:41 +01:00
-w
2019-01-19 19:54:54 +01:00
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
'-DPROGVERSION="${common.release_version}"'
build_flags_sensors =
-Llib/Bosch-BSEC/src/esp32/
-lalgobsec
build_flags_all =
${common.build_flags_basic}
${common.build_flags_sensors}
[env:ebox]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 115200
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +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
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2019-03-23 11:05:47 +01:00
[env:ecopower]
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_display}
build_flags =
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2019-01-19 19:54:54 +01:00
[env:heltec]
platform = ${common.platform_espressif32}
framework = arduino
board = heltec_wifi_lora_32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +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_V2
2019-01-19 19:54:54 +01:00
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:ttgov1]
platform = ${common.platform_espressif32}
framework = arduino
board = ttgo-lora32-v1
board_build.partitions = ${common.board_build.partitions}
upload_speed = 115200
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:ttgov2]
platform = ${common.platform_espressif32}
framework = arduino
board = ttgo-lora32-v1
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:ttgov21old]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:ttgov21new]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2019-01-18 22:19:40 +01:00
[env:ttgofox]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-18 22:19:40 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_display}
build_flags =
2019-01-18 22:19:40 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2019-01-19 19:54:54 +01:00
[env:ttgobeam]
platform = ${common.platform_espressif32}
framework = arduino
board = ttgo-t-beam
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_gps}
2019-02-09 14:21:09 +01:00
${common.lib_deps_display}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${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:fipy]
platform = ${common.platform_espressif32}
framework = arduino
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:lopy]
platform = ${common.platform_espressif32}
framework = arduino
board = lopy
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
2019-01-19 20:04:47 +01:00
build_flags =
2019-01-19 19:54:54 +01:00
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:lopy4]
platform = ${common.platform_espressif32}
framework = arduino
board = lopy4
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
${common.lib_deps_gps}
build_flags =
${common.build_flags_basic}
-mfix-esp32-psram-cache-issue
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:lolin32litelora]
platform = ${common.platform_espressif32}
framework = arduino
board = lolin32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
build_flags =
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:lolin32lora]
platform = ${common.platform_espressif32}
2019-01-19 20:04:47 +01:00
framework = arduino
2019-01-19 19:54:54 +01:00
board = lolin32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_lora}
${common.lib_deps_rgbled}
build_flags =
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:lolin32lite]
platform = ${common.platform_espressif32}
2019-01-19 20:04:47 +01:00
framework = arduino
2019-01-19 19:54:54 +01:00
board = lolin32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
2019-01-19 20:04:47 +01:00
lib_deps =
2019-01-19 19:54:54 +01:00
${common.lib_deps_basic}
${common.lib_deps_rgbled}
2019-05-27 23:29:26 +02:00
${common.lib_deps_matrix_display}
2019-01-19 19:54:54 +01:00
build_flags =
${common.build_flags_basic}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:wemos32oled]
platform = ${common.platform_espressif32}
framework = arduino
board = lolin32
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps =
${common.lib_deps_basic}
${common.lib_deps_display}
2019-05-07 21:17:06 +02:00
${common.lib_deps_matrix_display}
build_flags =
${common.build_flags_all}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
2019-01-19 19:54:54 +01: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}
build_flags = ${common.build_flags_all}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
[env:generic]
platform = ${common.platform_espressif32}
2019-01-19 20:04:47 +01:00
framework = arduino
2019-01-19 19:54:54 +01:00
board = esp32dev
board_build.partitions = ${common.board_build.partitions}
upload_speed = 921600
lib_deps = ${common.lib_deps_all}
build_flags = ${common.build_flags_all}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
2019-01-19 20:04:47 +01:00
monitor_speed = ${common.monitor_speed}