2018-03-18 19:45:17 +01:00
|
|
|
; PlatformIO Project Configuration File
|
|
|
|
;
|
|
|
|
; Build options: build flags, source filter
|
|
|
|
; Upload options: custom upload port, speed and extra flags
|
|
|
|
; Library options: dependencies, extra library storages
|
|
|
|
; Advanced options: extra scripting
|
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; http://docs.platformio.org/page/projectconf.html
|
|
|
|
|
2018-04-16 21:16:24 +02:00
|
|
|
|
2018-03-21 17:34:11 +01:00
|
|
|
; ---> SELECT TARGET PLATFORM HERE! <---
|
2018-03-18 19:45:17 +01:00
|
|
|
[platformio]
|
2018-07-28 01:46:43 +02:00
|
|
|
;env_default = test
|
2018-07-24 21:48:11 +02:00
|
|
|
;env_default = generic
|
2018-07-25 00:17:31 +02:00
|
|
|
;env_default = heltec
|
2018-07-09 21:10:27 +02:00
|
|
|
;env_default = ttgov1
|
2018-07-04 08:58:00 +02:00
|
|
|
;env_default = ttgov2
|
2018-07-28 01:46:43 +02:00
|
|
|
env_default = ttgov21
|
2018-07-26 11:00:39 +02:00
|
|
|
;env_default = ttgobeam
|
2018-07-28 01:46:43 +02:00
|
|
|
;env_default = lopy
|
2018-03-18 19:45:17 +01:00
|
|
|
;env_default = lopy4
|
2018-05-14 20:53:35 +02:00
|
|
|
;env_default = fipy
|
2018-07-15 14:28:05 +02:00
|
|
|
;env_default = lolin32litelora
|
|
|
|
;env_default = lolin32lora
|
2018-07-15 22:47:20 +02:00
|
|
|
;env_default = lolin32lite
|
2018-04-15 20:41:12 +02:00
|
|
|
;
|
2018-04-15 18:15:31 +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-04-15 14:25:14 +02:00
|
|
|
|
2018-04-15 20:41:12 +02:00
|
|
|
[common_env_data]
|
2018-07-25 00:17:31 +02:00
|
|
|
;platform_espressif32 = espressif32@1.0.2
|
2018-07-24 23:25:41 +02:00
|
|
|
;platform_espressif32 = espressif32@1.1.2
|
2018-07-25 00:17:31 +02:00
|
|
|
platform_espressif32 = https://github.com/platformio/platform-espressif32.git#feature/stage
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = no_ota.csv
|
2018-06-17 22:45:05 +02:00
|
|
|
lib_deps_all =
|
2018-04-16 21:16:24 +02:00
|
|
|
lib_deps_display =
|
2018-07-22 23:45:09 +02:00
|
|
|
U8g2@>=2.23.12
|
2018-04-16 21:16:24 +02:00
|
|
|
lib_deps_rgbled =
|
2018-06-08 22:41:37 +02:00
|
|
|
SmartLeds@>=1.1.3
|
|
|
|
lib_deps_gps =
|
2018-06-10 16:00:11 +02:00
|
|
|
TinyGPSPlus@>=1.0.2
|
2018-07-22 20:27:58 +02:00
|
|
|
Time@>=1.5
|
2018-04-15 20:41:12 +02:00
|
|
|
build_flags =
|
|
|
|
; we need build_flag for logging, otherwise we can't use ESP_LOGx in arduino framework
|
|
|
|
; ---> NOTE: For production run set DEBUG_LEVEL level to NONE! <---
|
|
|
|
; otherwise device may crash in dense environments due to serial buffer overflow
|
|
|
|
;
|
2018-07-04 08:58:00 +02:00
|
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
2018-07-25 00:17:31 +02:00
|
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
|
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
2018-07-04 08:58:00 +02:00
|
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
2018-04-15 20:41:12 +02:00
|
|
|
;
|
2018-04-16 20:56:29 +02:00
|
|
|
; override lora settings from LMiC library in lmic/config.h and use main.h instead
|
2018-04-15 20:41:12 +02:00
|
|
|
-D_lmic_config_h_
|
2018-04-19 15:17:23 +02:00
|
|
|
-include "src/paxcounter.conf"
|
2018-07-09 14:35:55 +02:00
|
|
|
-include "src/hal/${PIOENV}.h"
|
2018-07-25 00:17:31 +02:00
|
|
|
; -w
|
2018-07-09 14:35:55 +02:00
|
|
|
|
2018-07-28 01:46:43 +02:00
|
|
|
[env:test]
|
|
|
|
platform = ${common_env_data.platform_espressif32}
|
|
|
|
framework = arduino
|
|
|
|
board = heltec_wifi_lora_32
|
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
|
|
|
upload_speed = 115200
|
|
|
|
monitor_speed = 115200
|
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_all}
|
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
|
2018-05-18 17:54:45 +02:00
|
|
|
[env:heltec]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-03-18 19:45:17 +01:00
|
|
|
framework = arduino
|
2018-04-16 21:16:24 +02:00
|
|
|
board = heltec_wifi_lora_32
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-09 21:35:53 +02:00
|
|
|
upload_speed = 115200
|
|
|
|
monitor_speed = 115200
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_display}
|
2018-03-18 19:45:17 +01:00
|
|
|
build_flags =
|
2018-04-15 20:41:12 +02:00
|
|
|
${common_env_data.build_flags}
|
2018-03-18 19:45:17 +01:00
|
|
|
|
2018-03-20 21:38:41 +01:00
|
|
|
[env:ttgov1]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-03-18 19:45:17 +01:00
|
|
|
framework = arduino
|
2018-04-16 21:16:24 +02:00
|
|
|
board = esp32dev
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-09 21:35:53 +02:00
|
|
|
upload_speed = 115200
|
|
|
|
monitor_speed = 115200
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_display}
|
2018-03-18 19:45:17 +01:00
|
|
|
build_flags =
|
2018-04-15 20:41:12 +02:00
|
|
|
${common_env_data.build_flags}
|
2018-03-20 21:38:41 +01:00
|
|
|
|
|
|
|
[env:ttgov2]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-03-20 21:38:41 +01:00
|
|
|
framework = arduino
|
2018-04-16 21:16:24 +02:00
|
|
|
board = esp32dev
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-31 13:54:40 +02:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_display}
|
2018-03-20 21:38:41 +01:00
|
|
|
build_flags =
|
2018-04-15 20:41:12 +02:00
|
|
|
${common_env_data.build_flags}
|
2018-03-18 19:45:17 +01:00
|
|
|
|
2018-05-15 10:36:11 +02:00
|
|
|
[env:ttgov21]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-05-15 10:36:11 +02:00
|
|
|
framework = arduino
|
|
|
|
board = esp32dev
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-05-15 10:36:11 +02:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-05-15 10:36:11 +02:00
|
|
|
${common_env_data.lib_deps_display}
|
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
|
2018-06-06 20:01:08 +02:00
|
|
|
[env:ttgobeam]
|
|
|
|
platform = ${common_env_data.platform_espressif32}
|
|
|
|
framework = arduino
|
|
|
|
board = esp32dev
|
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-06-06 20:01:08 +02:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-06-08 22:41:37 +02:00
|
|
|
${common_env_data.lib_deps_gps}
|
2018-06-06 20:01:08 +02:00
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
|
2018-05-14 18:14:59 +02:00
|
|
|
[env:fipy]
|
2018-06-18 22:44:57 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-05-14 18:14:59 +02:00
|
|
|
framework = arduino
|
|
|
|
board = esp32dev
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-05-14 18:14:59 +02:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-05-14 18:14:59 +02:00
|
|
|
${common_env_data.lib_deps_rgbled}
|
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
|
2018-03-18 19:45:17 +01:00
|
|
|
[env:lopy]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-03-18 19:45:17 +01:00
|
|
|
framework = arduino
|
2018-04-16 21:16:24 +02:00
|
|
|
board = esp32dev
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_rgbled}
|
2018-06-17 16:25:29 +02:00
|
|
|
${common_env_data.lib_deps_gps}
|
2018-03-18 19:45:17 +01:00
|
|
|
build_flags =
|
2018-04-15 20:41:12 +02:00
|
|
|
${common_env_data.build_flags}
|
2018-03-18 19:45:17 +01:00
|
|
|
|
|
|
|
[env:lopy4]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-03-18 19:45:17 +01:00
|
|
|
framework = arduino
|
2018-04-16 21:16:24 +02:00
|
|
|
board = esp32dev
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_rgbled}
|
2018-06-17 16:25:29 +02:00
|
|
|
${common_env_data.lib_deps_gps}
|
2018-04-02 01:37:55 +02:00
|
|
|
build_flags =
|
2018-04-15 20:41:12 +02:00
|
|
|
${common_env_data.build_flags}
|
2018-03-27 01:52:24 +02:00
|
|
|
|
2018-07-15 14:28:05 +02:00
|
|
|
[env:lolin32litelora]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-03-28 01:30:28 +02:00
|
|
|
framework = arduino
|
2018-04-16 21:16:24 +02:00
|
|
|
board = lolin32
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-28 01:30:28 +02:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_rgbled}
|
2018-04-02 01:37:55 +02:00
|
|
|
build_flags =
|
2018-04-15 20:41:12 +02:00
|
|
|
${common_env_data.build_flags}
|
2018-03-28 01:30:28 +02:00
|
|
|
|
2018-07-15 14:28:05 +02:00
|
|
|
[env:lolin32lora]
|
2018-06-03 11:19:06 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
2018-04-16 21:16:24 +02:00
|
|
|
framework = arduino
|
2018-03-27 01:52:24 +02:00
|
|
|
board = lolin32
|
2018-06-03 11:19:06 +02:00
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
2018-07-15 14:28:05 +02:00
|
|
|
upload_speed = 921600
|
2018-07-09 21:35:53 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-27 01:52:24 +02:00
|
|
|
lib_deps =
|
2018-06-16 19:50:36 +02:00
|
|
|
${common_env_data.lib_deps_all}
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_rgbled}
|
2018-07-15 14:55:30 +02:00
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
|
2018-07-15 22:19:05 +02:00
|
|
|
[env:lolin32lite]
|
2018-07-15 20:17:54 +02:00
|
|
|
platform = ${common_env_data.platform_espressif32}
|
|
|
|
framework = arduino
|
|
|
|
board = lolin32
|
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
|
|
|
upload_speed = 921600
|
|
|
|
monitor_speed = 115200
|
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_all}
|
|
|
|
${common_env_data.lib_deps_rgbled}
|
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
|
2018-07-15 14:55:30 +02:00
|
|
|
[env:generic]
|
|
|
|
platform = ${common_env_data.platform_espressif32}
|
|
|
|
framework = arduino
|
|
|
|
board = esp32dev
|
|
|
|
board_build.partitions = ${common_env_data.board_build.partitions}
|
|
|
|
upload_speed = 921600
|
|
|
|
monitor_speed = 115200
|
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_all}
|
|
|
|
${common_env_data.lib_deps_rgbled}
|
|
|
|
${common_env_data.lib_deps_gps}
|
|
|
|
${common_env_data.lib_deps_display}
|
2018-04-02 01:37:55 +02:00
|
|
|
build_flags =
|
2018-07-09 14:35:55 +02:00
|
|
|
${common_env_data.build_flags}
|