2019-01-19 19:54:54 +01:00
|
|
|
; PlatformIO Project Configuration File
|
2019-06-29 15:03:55 +02:00
|
|
|
; NOTE: PlatformIO v4 is needed!
|
2019-01-19 19:54:54 +01:00
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; http://docs.platformio.org/page/projectconf.html
|
|
|
|
|
|
|
|
|
2019-06-30 17:48:24 +02:00
|
|
|
; ---> SELECT THE TARGET PLATFORM HERE! <---
|
2019-06-29 15:03:55 +02:00
|
|
|
[board]
|
2020-09-27 19:29:31 +02:00
|
|
|
;halfile = generic.h
|
2019-06-29 15:03:55 +02:00
|
|
|
;halfile = ebox.h
|
|
|
|
;halfile = eboxtube.h
|
|
|
|
;halfile = ecopower.h
|
|
|
|
;halfile = heltec.h
|
|
|
|
;halfile = heltecv2.h
|
|
|
|
;halfile = ttgov1.h
|
|
|
|
;halfile = ttgov2.h
|
|
|
|
;halfile = ttgov21old.h
|
2020-09-27 19:29:31 +02:00
|
|
|
halfile = ttgov21new.h
|
2020-07-29 10:52:48 +02:00
|
|
|
;halfile = ttgofox.h
|
2019-12-22 13:16:15 +01:00
|
|
|
;halfile = ttgobeam.h
|
2020-07-29 10:50:40 +02:00
|
|
|
;halfile = ttgobeam10.h
|
2019-06-29 15:03:55 +02:00
|
|
|
;halfile = fipy.h
|
|
|
|
;halfile = lopy.h
|
|
|
|
;halfile = lopy4.h
|
|
|
|
;halfile = lolin32litelora.h
|
|
|
|
;halfile = lolin32lora.h
|
|
|
|
;halfile = lolin32lite.h
|
|
|
|
;halfile = wemos32oled.h
|
2019-07-15 22:06:50 +02:00
|
|
|
;halfile = wemos32matrix.h
|
2019-06-29 15:03:55 +02:00
|
|
|
;halfile = octopus32.h
|
2019-08-14 21:52:12 +02:00
|
|
|
;halfile = tinypico.h
|
2019-08-17 18:31:45 +02:00
|
|
|
;halfile = tinypicomatrix.h
|
2020-02-05 22:03:22 +01:00
|
|
|
;halfile = m5core.h
|
2020-04-05 23:22:31 +02:00
|
|
|
;halfile = m5fire.h
|
2020-07-19 16:03:15 +02:00
|
|
|
;halfile = olimexpoeiso.h
|
2019-06-29 15:03:55 +02:00
|
|
|
|
2019-01-19 19:54:54 +01:00
|
|
|
[platformio]
|
2019-06-29 15:03:55 +02:00
|
|
|
; upload firmware to board with usb cable
|
2020-09-02 11:21:56 +02:00
|
|
|
default_envs = usb
|
2019-06-29 15:03:55 +02:00
|
|
|
; upload firmware to a jfrog bintray repository
|
2019-06-29 17:04:57 +02:00
|
|
|
;default_envs = ota
|
2019-07-22 23:48:22 +02:00
|
|
|
; use latest versions of libraries
|
2020-09-02 11:21:56 +02:00
|
|
|
;default_envs = dev
|
2019-06-30 17:48:24 +02:00
|
|
|
description = Paxcounter is a device for metering passenger flows in realtime. It counts how many mobile devices are around.
|
2019-01-19 19:54:54 +01:00
|
|
|
|
|
|
|
[common]
|
|
|
|
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
|
2020-09-27 19:29:31 +02:00
|
|
|
release_version = 2.0.13
|
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
|
2020-09-04 20:37:47 +02:00
|
|
|
debug_level = 3
|
2019-01-19 19:54:54 +01:00
|
|
|
extra_scripts = pre:build.py
|
2019-05-26 17:46:33 +02:00
|
|
|
otakeyfile = ota.conf
|
|
|
|
lorakeyfile = loraconf.h
|
|
|
|
lmicconfigfile = lmic_config.h
|
2020-09-11 20:24:22 +02:00
|
|
|
platform_espressif32 = espressif32@2.0.0
|
2019-01-19 19:54:54 +01:00
|
|
|
monitor_speed = 115200
|
2020-05-09 22:49:00 +02:00
|
|
|
upload_speed = 115200 ; set by build.py and taken from hal file
|
|
|
|
display_library = ; set by build.py and taken from hal file
|
2019-01-19 20:04:47 +01:00
|
|
|
lib_deps_lora =
|
2020-09-08 11:49:48 +02:00
|
|
|
mcci-catena/MCCI LoRaWAN LMIC library @ ^3.2.0
|
2019-01-19 19:54:54 +01:00
|
|
|
lib_deps_display =
|
2020-09-11 20:24:22 +02:00
|
|
|
bitbank2/OneBitDisplay @ 1.5.0
|
|
|
|
ricmoo/QRCode @ ^0.0.1
|
|
|
|
bodmer/TFT_eSPI @ ^2.2.20
|
2020-05-09 22:49:00 +02:00
|
|
|
lib_deps_ledmatrix =
|
2020-09-11 20:24:22 +02:00
|
|
|
seeed-studio/Ultrathin_LED_Matrix @ ^1.0.0
|
2019-01-19 19:54:54 +01:00
|
|
|
lib_deps_rgbled =
|
2020-09-11 20:24:22 +02:00
|
|
|
roboticsbrno/SmartLeds @ ^1.2.1
|
2019-01-19 19:54:54 +01:00
|
|
|
lib_deps_gps =
|
2020-09-08 11:49:48 +02:00
|
|
|
mikalhart/TinyGPSPlus @ ^1.0.2
|
2019-03-13 21:15:28 +01:00
|
|
|
lib_deps_sensors =
|
2020-09-11 20:24:22 +02:00
|
|
|
adafruit/Adafruit Unified Sensor @ ^1.1.4
|
|
|
|
adafruit/Adafruit BME280 Library @ ^2.1.0
|
2020-09-27 19:29:31 +02:00
|
|
|
adafruit/Adafruit BMP085 Unified
|
2020-09-11 20:24:22 +02:00
|
|
|
boschsensortec/BSEC Software Library @ 1.5.1474
|
2020-02-26 15:58:10 +01:00
|
|
|
https://github.com/ricki-z/SDS011.git
|
2019-01-19 19:54:54 +01:00
|
|
|
lib_deps_basic =
|
2020-09-11 20:24:22 +02:00
|
|
|
bblanchon/ArduinoJson @ <6
|
2020-09-08 11:49:48 +02:00
|
|
|
jchristensen/Timezone @ ^1.2.4
|
|
|
|
makuna/RTC @ ^2.3.5
|
2020-09-11 20:24:22 +02:00
|
|
|
spacehuhn/SimpleButton
|
2020-09-08 11:49:48 +02:00
|
|
|
lewisxhe/AXP202X_Library @ ^1.1.2
|
2020-09-11 20:24:22 +02:00
|
|
|
geeksville/esp32-micro-sdcard @ ^0.1.1
|
2020-09-08 11:49:48 +02:00
|
|
|
256dpi/MQTT @ ^2.4.7
|
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-07-06 15:52:11 +02:00
|
|
|
${common.lib_deps_sensors}
|
2020-05-09 22:49:00 +02:00
|
|
|
${common.lib_deps_ledmatrix}
|
2019-01-19 19:54:54 +01:00
|
|
|
build_flags_basic =
|
2019-06-29 15:03:55 +02:00
|
|
|
-include "src/hal/${board.halfile}"
|
2019-01-19 19:54:54 +01:00
|
|
|
-include "src/paxcounter.conf"
|
2019-07-25 23:25:33 +02: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}
|
|
|
|
-mfix-esp32-psram-cache-issue
|
|
|
|
|
2019-06-29 15:03:55 +02:00
|
|
|
[env]
|
2020-09-07 22:50:02 +02:00
|
|
|
lib_ldf_mode = deep ; #632 Fixes compiler error with OneBitDisplay library
|
2019-07-16 22:48:37 +02:00
|
|
|
framework = arduino
|
2020-09-27 19:29:31 +02:00
|
|
|
board = ttgo-lora32-v21new
|
2019-07-16 22:48:37 +02:00
|
|
|
board_build.partitions = min_spiffs.csv
|
2019-06-30 17:48:24 +02:00
|
|
|
upload_speed = ${common.upload_speed}
|
2020-09-08 11:49:48 +02:00
|
|
|
;upload_port = COM8
|
2019-01-19 19:54:54 +01:00
|
|
|
platform = ${common.platform_espressif32}
|
|
|
|
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}
|
2020-09-11 20:24:22 +02:00
|
|
|
monitor_filters = time, esp32_exception_decoder, default
|
2019-01-19 19:54:54 +01:00
|
|
|
|
2019-06-29 15:03:55 +02:00
|
|
|
[env:ota]
|
|
|
|
upload_protocol = custom
|
|
|
|
|
|
|
|
[env:usb]
|
2019-06-29 17:04:57 +02:00
|
|
|
upload_protocol = esptool
|
|
|
|
|
|
|
|
[env:dev]
|
2019-09-17 15:05:35 +02:00
|
|
|
upload_protocol = esptool
|
2019-06-30 17:48:24 +02:00
|
|
|
build_type = debug
|
2020-02-04 14:05:46 +01:00
|
|
|
platform = https://github.com/platformio/platform-espressif32.git#develop
|
2020-02-10 22:58:34 +01:00
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
|