2020-09-27 23:15:50 +02:00
|
|
|
; PlatformIO Project Configuration File
|
2020-12-02 17:50:39 +01:00
|
|
|
; NOTE: PlatformIO v5 is needed!
|
2020-09-27 23:15:50 +02:00
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; http://docs.platformio.org/page/projectconf.html
|
|
|
|
|
|
|
|
|
|
|
|
; ---> SELECT THE TARGET PLATFORM HERE! <---
|
|
|
|
[board]
|
2020-12-09 10:15:12 +01:00
|
|
|
;halfile = generic.h
|
2020-09-27 23:15:50 +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
|
|
|
|
;halfile = ttgov21new.h
|
|
|
|
;halfile = ttgofox.h
|
|
|
|
;halfile = ttgobeam.h
|
2020-12-09 10:15:12 +01:00
|
|
|
halfile = ttgobeam10.h
|
2020-11-30 21:58:27 +01:00
|
|
|
;halfile = ttgotdisplay.h
|
2020-09-27 23:15:50 +02:00
|
|
|
;halfile = fipy.h
|
|
|
|
;halfile = lopy.h
|
|
|
|
;halfile = lopy4.h
|
|
|
|
;halfile = lolin32litelora.h
|
|
|
|
;halfile = lolin32lora.h
|
|
|
|
;halfile = lolin32lite.h
|
|
|
|
;halfile = wemos32oled.h
|
|
|
|
;halfile = wemos32matrix.h
|
|
|
|
;halfile = octopus32.h
|
|
|
|
;halfile = tinypico.h
|
|
|
|
;halfile = tinypicomatrix.h
|
|
|
|
;halfile = m5core.h
|
|
|
|
;halfile = m5fire.h
|
|
|
|
;halfile = olimexpoeiso.h
|
|
|
|
|
|
|
|
[platformio]
|
|
|
|
; upload firmware to board with usb cable
|
|
|
|
default_envs = usb
|
|
|
|
; upload firmware to a jfrog bintray repository
|
|
|
|
;default_envs = ota
|
|
|
|
; use latest versions of libraries
|
|
|
|
;default_envs = dev
|
|
|
|
description = Paxcounter is a device for metering passenger flows in realtime. It counts how many mobile devices are around.
|
|
|
|
|
|
|
|
[common]
|
|
|
|
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
|
2020-12-25 16:55:12 +01:00
|
|
|
release_version = 2.1.0
|
2020-09-27 23:15:50 +02: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
|
|
|
|
debug_level = 3
|
|
|
|
extra_scripts = pre:build.py
|
|
|
|
otakeyfile = ota.conf
|
|
|
|
lorakeyfile = loraconf.h
|
|
|
|
lmicconfigfile = lmic_config.h
|
2020-12-09 10:15:12 +01:00
|
|
|
platform_espressif32 = espressif32@2.1.0
|
2020-09-27 23:15:50 +02:00
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200 ; set by build.py and taken from hal file
|
|
|
|
display_library = ; set by build.py and taken from hal file
|
|
|
|
lib_deps_lora =
|
2020-12-18 18:42:03 +01:00
|
|
|
mcci-catena/MCCI LoRaWAN LMIC library @ ^3.3.0
|
2020-09-27 23:15:50 +02:00
|
|
|
lib_deps_display =
|
2020-10-31 12:26:46 +01:00
|
|
|
bitbank2/OneBitDisplay @ 1.9.0
|
2020-10-14 10:29:13 +02:00
|
|
|
bitbank2/BitBang_I2C @ ^2.1.3
|
2020-09-27 23:15:50 +02:00
|
|
|
ricmoo/QRCode @ ^0.0.1
|
2020-12-09 10:15:12 +01:00
|
|
|
bodmer/TFT_eSPI @ ^2.3.51
|
2020-09-27 23:15:50 +02:00
|
|
|
lib_deps_ledmatrix =
|
|
|
|
seeed-studio/Ultrathin_LED_Matrix @ ^1.0.0
|
|
|
|
lib_deps_rgbled =
|
|
|
|
roboticsbrno/SmartLeds @ ^1.2.1
|
|
|
|
lib_deps_gps =
|
|
|
|
mikalhart/TinyGPSPlus @ ^1.0.2
|
|
|
|
lib_deps_sensors =
|
|
|
|
adafruit/Adafruit Unified Sensor @ ^1.1.4
|
2020-10-02 22:57:48 +02:00
|
|
|
adafruit/Adafruit BME280 Library @ ^2.1.1
|
2020-09-27 23:15:50 +02:00
|
|
|
adafruit/Adafruit BMP085 Library @ ^1.1.0
|
2020-12-09 10:15:12 +01:00
|
|
|
boschsensortec/BSEC Software Library @ 1.6.1480
|
2020-09-27 23:15:50 +02:00
|
|
|
https://github.com/ricki-z/SDS011.git
|
|
|
|
lib_deps_basic =
|
2020-12-27 23:43:45 +01:00
|
|
|
https://github.com/SukkoPera/Arduino-Rokkit-Hash.git
|
2020-12-26 18:14:59 +01:00
|
|
|
bblanchon/ArduinoJson @ ^6
|
2020-09-27 23:15:50 +02:00
|
|
|
jchristensen/Timezone @ ^1.2.4
|
|
|
|
makuna/RTC @ ^2.3.5
|
|
|
|
spacehuhn/SimpleButton
|
|
|
|
lewisxhe/AXP202X_Library @ ^1.1.2
|
|
|
|
geeksville/esp32-micro-sdcard @ ^0.1.1
|
|
|
|
256dpi/MQTT @ ^2.4.7
|
|
|
|
lib_deps_all =
|
|
|
|
${common.lib_deps_basic}
|
|
|
|
${common.lib_deps_lora}
|
|
|
|
${common.lib_deps_display}
|
|
|
|
${common.lib_deps_rgbled}
|
|
|
|
${common.lib_deps_gps}
|
|
|
|
${common.lib_deps_sensors}
|
|
|
|
${common.lib_deps_ledmatrix}
|
|
|
|
build_flags_basic =
|
|
|
|
-include "src/hal/${board.halfile}"
|
|
|
|
-include "src/paxcounter.conf"
|
|
|
|
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
|
|
|
|
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
|
|
|
|
'-DPROGVERSION="${common.release_version}"'
|
2020-10-09 23:04:34 +02:00
|
|
|
'-Wno-unknown-pragmas'
|
|
|
|
'-Wno-unused-variable'
|
2020-09-27 23:15:50 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
[env]
|
|
|
|
lib_ldf_mode = deep ; #632 Fixes compiler error with OneBitDisplay library
|
|
|
|
framework = arduino
|
|
|
|
board = esp32dev
|
|
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
upload_speed = ${common.upload_speed}
|
2020-12-09 10:15:12 +01:00
|
|
|
;upload_port = COM3
|
2020-09-27 23:15:50 +02: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}
|
|
|
|
monitor_filters = time, esp32_exception_decoder, default
|
|
|
|
|
|
|
|
[env:ota]
|
|
|
|
upload_protocol = custom
|
|
|
|
|
|
|
|
[env:usb]
|
|
|
|
upload_protocol = esptool
|
|
|
|
|
|
|
|
[env:dev]
|
|
|
|
upload_protocol = esptool
|
|
|
|
build_type = debug
|
2020-12-18 18:42:03 +01:00
|
|
|
platform = https://github.com/platformio/platform-espressif32.git#develop
|