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-15 14:55:30 +02:00
|
|
|
env_default = generic
|
|
|
|
;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-14 14:25:42 +02:00
|
|
|
;env_default = ttgov21
|
2018-07-14 23:13:25 +02:00
|
|
|
;env_default = ttgobeam
|
2018-06-17 16:25:29 +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-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-15 14:34:54 +02:00
|
|
|
;platform_espressif32 = espressif32@1.0.2
|
2018-07-08 17:20:14 +02:00
|
|
|
;platform_espressif32 = espressif32@1.1.2
|
2018-07-15 14:34:54 +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-14 14:25:42 +02:00
|
|
|
; U8g2@>=2.23.12
|
2018-07-14 14:28:17 +02:00
|
|
|
; U8g2 library stored local to tweak i2c display speed down to 100khz
|
2018-07-15 14:28:05 +02:00
|
|
|
; speed, because 400khz causes interrupt injection error with espressif32 core v1.1.x
|
|
|
|
; will be removed again after bug in espressif32 core v1.1.x is solved
|
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-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-14 23:38:43 +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-08 12:24:13 +02:00
|
|
|
-w
|
2018-07-09 14:35:55 +02:00
|
|
|
|
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}
|
|
|
|
|
|
|
|
[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}
|