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-06-04 08:21:05 +02:00
|
|
|
env_default = heltec
|
2018-03-21 14:33:55 +01:00
|
|
|
;env_default = ttgov1
|
2018-06-04 08:21:05 +02:00
|
|
|
;env_default = ttgov2
|
2018-06-03 22:28:48 +02:00
|
|
|
;env_default = ttgov21
|
2018-04-17 23:14:01 +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-05-18 17:54:45 +02:00
|
|
|
;env_default = lolin32lite
|
|
|
|
;env_default = lolin32
|
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-06-03 11:19:06 +02:00
|
|
|
platform_espressif32 = espressif32@>=1.0.1
|
|
|
|
board_build.partitions = no_ota.csv
|
|
|
|
board_upload.maximum_size = 2097152
|
2018-04-16 21:16:24 +02:00
|
|
|
lib_deps_display =
|
|
|
|
U8g2@>=2.22.14
|
|
|
|
lib_deps_rgbled =
|
|
|
|
SmartLeds
|
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-05-21 17:48:43 +02:00
|
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
|
2018-06-02 18:28:01 +02:00
|
|
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
|
2018-04-15 20:41:12 +02:00
|
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
|
2018-04-15 21:48:55 +02:00
|
|
|
; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
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-04-15 20:41:12 +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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
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
|
|
|
-include "src/hal/heltec.h"
|
|
|
|
|
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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-04-15 20:41:12 +02:00
|
|
|
upload_speed = 115200
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
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
|
|
|
-include "src/hal/ttgov1.h"
|
|
|
|
|
|
|
|
[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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-28 19:34:45 +02:00
|
|
|
upload_speed = 921600
|
2018-03-31 13:54:40 +02:00
|
|
|
lib_deps =
|
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-20 21:38:41 +01:00
|
|
|
-include "src/hal/ttgov2.h"
|
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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-05-15 10:36:11 +02:00
|
|
|
upload_speed = 921600
|
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_display}
|
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
-include "src/hal/ttgov21.h"
|
|
|
|
|
2018-05-14 18:14:59 +02:00
|
|
|
[env:fipy]
|
2018-06-02 18:28:01 +02:00
|
|
|
platform = espressif32@1.0.1
|
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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-05-14 18:14:59 +02:00
|
|
|
upload_speed = 921600
|
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_rgbled}
|
|
|
|
build_flags =
|
|
|
|
${common_env_data.build_flags}
|
|
|
|
-include "src/hal/fipy.h"
|
|
|
|
|
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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-04-03 16:41:23 +02:00
|
|
|
upload_speed = 921600
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
2018-04-16 20:56:29 +02:00
|
|
|
${common_env_data.lib_deps_rgbled}
|
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
|
|
|
-include "src/hal/lopy.h"
|
|
|
|
|
|
|
|
[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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-04-03 16:41:23 +02:00
|
|
|
upload_speed = 921600
|
2018-03-23 08:37:52 +01:00
|
|
|
lib_deps =
|
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-18 19:45:17 +01:00
|
|
|
-include "src/hal/lopy4.h"
|
2018-03-27 01:52:24 +02:00
|
|
|
|
2018-05-18 17:54:45 +02:00
|
|
|
[env:lolin32lite]
|
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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-28 02:03:37 +02:00
|
|
|
upload_speed = 256000
|
2018-03-28 01:30:28 +02:00
|
|
|
lib_deps =
|
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
|
|
|
-include "src/hal/lolin32lite_lora.h"
|
|
|
|
|
2018-05-18 17:54:45 +02:00
|
|
|
[env:lolin32]
|
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}
|
|
|
|
board_upload.maximum_size = ${common_env_data.board_upload.maximum_size}
|
2018-06-03 13:23:03 +02:00
|
|
|
monitor_speed = 115200
|
2018-03-27 01:52:24 +02:00
|
|
|
upload_speed = 921600
|
|
|
|
lib_deps =
|
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-04-15 14:25:14 +02:00
|
|
|
-include "src/hal/lolin32_lora.h"
|