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-09-17 18:06:50 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
[bintray]
|
|
|
|
user = cyberman54
|
|
|
|
repository = paxcounter-firmware
|
2018-09-15 16:29:52 +02:00
|
|
|
api_token = 2e10f923df5d47b9c7e25752510322a1d65ee997
|
2018-09-15 15:20:41 +02:00
|
|
|
|
2018-09-15 17:04:04 +02:00
|
|
|
[ota]
|
2018-09-17 17:23:02 +02:00
|
|
|
;release_version = max. 9 chars total, using decimal format "a.b.c"
|
|
|
|
release_version = 1.4.32
|
2018-09-15 17:04:04 +02:00
|
|
|
wifi_ssid = testnet
|
|
|
|
wifi_password = test0815
|
2018-09-15 15:20:41 +02:00
|
|
|
build_flags =
|
2018-09-15 17:04:04 +02:00
|
|
|
'-DWIFI_SSID="${ota.wifi_ssid}"'
|
|
|
|
'-DWIFI_PASS="${ota.wifi_password}"'
|
2018-09-15 15:20:41 +02:00
|
|
|
'-DBINTRAY_USER="${bintray.user}"'
|
|
|
|
'-DBINTRAY_REPO="${bintray.repository}"'
|
2018-09-17 17:23:02 +02:00
|
|
|
'-DBINTRAY_PACKAGE="${PIOENV}"'
|
|
|
|
'-DPROGVERSION="${ota.release_version}"'
|
2018-09-15 15:20:41 +02:00
|
|
|
|
2018-09-17 17:23:02 +02:00
|
|
|
[common]
|
|
|
|
; DEBUG LEVEL
|
|
|
|
; For production run setto 0, otherwise device will leak RAM while running!
|
|
|
|
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
|
|
|
|
debug_level = 0
|
|
|
|
; UPLOAD MODE
|
|
|
|
; select esptool for USB/UART flashing, custom for OTA upload
|
|
|
|
upload_protocol = esptool
|
|
|
|
;upload_protocol = custom
|
|
|
|
extra_scripts = pre:publish_firmware.py
|
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"
|
2018-09-15 18:59:20 +02:00
|
|
|
${ota.build_flags}
|
2018-09-15 15:20:41 +02:00
|
|
|
-w
|
2018-09-17 17:23:02 +02:00
|
|
|
-DCORE_DEBUG_LEVEL=${common.debug_level}
|
|
|
|
|
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-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: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}
|