2022-02-28 14:52:51 +01:00
|
|
|
; ---> SELECT ONE TARGET BOARD FROM FOLLOWING ROWS <---
|
|
|
|
;
|
|
|
|
; Note: For "LILYGO TTGO ESP32-Paxcounter LoRa32 V2.1 1.6.1" select board ttgov21new.h
|
|
|
|
;
|
2020-09-27 23:15:50 +02:00
|
|
|
;
|
|
|
|
[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
|
2021-02-13 14:04:31 +01:00
|
|
|
;halfile = heltecv21.h
|
2020-09-27 23:15:50 +02:00
|
|
|
;halfile = ttgov1.h
|
|
|
|
;halfile = ttgov2.h
|
|
|
|
;halfile = ttgov21old.h
|
2022-04-29 15:41:41 +02:00
|
|
|
halfile = ttgov21new.h
|
2020-09-27 23:15:50 +02:00
|
|
|
;halfile = ttgofox.h
|
|
|
|
;halfile = ttgobeam.h
|
2022-04-29 15:41:41 +02:00
|
|
|
;halfile = ttgobeam10.h
|
2020-11-25 13:15:32 +01:00
|
|
|
;halfile = ttgotdisplay.h
|
2021-01-22 11:17:42 +01:00
|
|
|
;halfile = ttgotwristband.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
|
2021-05-29 17:01:08 +02:00
|
|
|
; upload firmware to a paxexpress repository
|
2020-09-27 23:15:50 +02:00
|
|
|
;default_envs = ota
|
2021-12-27 21:04:45 +01:00
|
|
|
; use upstream version of arduino-espressif32 framework
|
2020-09-27 23:15:50 +02:00
|
|
|
;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"
|
2023-01-21 19:11:01 +01:00
|
|
|
release_version = 3.4.62
|
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
|
2023-01-16 22:33:56 +01:00
|
|
|
extra_scripts = pre:src/build.py
|
2020-09-27 23:15:50 +02:00
|
|
|
otakeyfile = ota.conf
|
|
|
|
lorakeyfile = loraconf.h
|
|
|
|
lmicconfigfile = lmic_config.h
|
2023-01-16 22:33:56 +01:00
|
|
|
platform_espressif32 = espressif32@6.0.0
|
2020-09-27 23:15:50 +02:00
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200 ; set by build.py and taken from hal file
|
|
|
|
lib_deps_lora =
|
2021-12-28 14:57:38 +01:00
|
|
|
mcci-catena/MCCI LoRaWAN LMIC library @ ^4.1.1
|
2020-09-27 23:15:50 +02:00
|
|
|
lib_deps_display =
|
2023-01-02 15:05:16 +01:00
|
|
|
bitbank2/OneBitDisplay @ ^2.3.0
|
2023-01-14 19:34:49 +01:00
|
|
|
bitbank2/bb_spi_lcd @ ^2.4.1
|
2020-09-27 23:15:50 +02:00
|
|
|
ricmoo/QRCode @ ^0.0.1
|
|
|
|
lib_deps_ledmatrix =
|
|
|
|
seeed-studio/Ultrathin_LED_Matrix @ ^1.0.0
|
|
|
|
lib_deps_rgbled =
|
2022-10-31 16:56:48 +01:00
|
|
|
fastled/FastLED @ ^3.5.0
|
2020-09-27 23:15:50 +02:00
|
|
|
lib_deps_gps =
|
2022-10-19 22:33:46 +02:00
|
|
|
mikalhart/TinyGPSPlus @ ^1.0.3
|
2020-09-27 23:15:50 +02:00
|
|
|
lib_deps_sensors =
|
2022-12-26 13:38:41 +01:00
|
|
|
adafruit/Adafruit Unified Sensor @ ^1.1.7
|
2022-09-18 17:21:40 +02:00
|
|
|
adafruit/Adafruit BME280 Library @ ^2.2.2
|
2023-01-14 18:40:48 +01:00
|
|
|
adafruit/Adafruit BMP085 Library @ ^1.2.2
|
2020-12-09 10:15:12 +01:00
|
|
|
boschsensortec/BSEC Software Library @ 1.6.1480
|
2022-09-18 17:21:40 +02:00
|
|
|
lewapek/Nova Fitness Sds dust sensors library @ ^1.5.1
|
2020-09-27 23:15:50 +02:00
|
|
|
lib_deps_basic =
|
2022-12-21 14:05:53 +01:00
|
|
|
greyrook/libpax @ ^1.1.0
|
2020-12-27 23:43:45 +01:00
|
|
|
https://github.com/SukkoPera/Arduino-Rokkit-Hash.git
|
2023-01-14 18:40:48 +01:00
|
|
|
bblanchon/ArduinoJson @ ^6.20.0
|
2020-09-27 23:15:50 +02:00
|
|
|
makuna/RTC @ ^2.3.5
|
2022-11-06 15:00:54 +01:00
|
|
|
mathertel/OneButton @ ^2.0.3
|
2023-01-28 20:32:21 +01:00
|
|
|
lewisxhe/XPowersLib @ ^0.1.5
|
2022-09-18 17:21:40 +02:00
|
|
|
256dpi/MQTT @ ^2.5.0
|
2020-09-27 23:15:50 +02:00
|
|
|
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/paxcounter.conf"
|
|
|
|
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
|
|
|
|
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
|
|
|
|
'-DPROGVERSION="${common.release_version}"'
|
2021-03-02 18:36:34 +01:00
|
|
|
'-D LIBPAX_WIFI'
|
|
|
|
'-D LIBPAX_BLE'
|
|
|
|
'-D LIBPAX_ARDUINO'
|
2022-11-27 21:50:38 +01:00
|
|
|
'-DUSE_ESP_IDF_LOG'
|
|
|
|
'-DTAG=__FILE__'
|
2020-09-27 23:15:50 +02:00
|
|
|
build_flags_all =
|
|
|
|
${common.build_flags_basic}
|
|
|
|
-mfix-esp32-psram-cache-issue
|
|
|
|
|
|
|
|
[env]
|
|
|
|
framework = arduino
|
|
|
|
board = esp32dev
|
|
|
|
board_build.partitions = min_spiffs.csv
|
2022-02-21 17:30:11 +01:00
|
|
|
build_type = release
|
2020-09-27 23:15:50 +02:00
|
|
|
upload_speed = ${common.upload_speed}
|
2021-05-29 17:01:08 +02:00
|
|
|
;upload_port = COM12
|
2020-09-27 23:15:50 +02:00
|
|
|
platform = ${common.platform_espressif32}
|
|
|
|
lib_deps = ${common.lib_deps_all}
|
2022-11-01 11:20:17 +01:00
|
|
|
build_flags =
|
|
|
|
-include "src/hal/${board.halfile}"
|
|
|
|
${common.build_flags_all}
|
2020-09-27 23:15:50 +02:00
|
|
|
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
|
2022-12-26 13:33:16 +01:00
|
|
|
platform = https://github.com/platformio/platform-espressif32.git#develop
|
2022-04-26 16:02:33 +02:00
|
|
|
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
|
2022-11-01 11:20:17 +01:00
|
|
|
|
|
|
|
[env:ci]
|
|
|
|
build_flags =
|
|
|
|
-include "src/hal/${sysenv.CI_HALFILE}" ; set by CI
|
|
|
|
${common.build_flags_all}
|
|
|
|
upload_protocol = esptool
|