2022-11-04 14:08:42 +01:00
|
|
|
[board]
|
2022-11-27 21:50:38 +01:00
|
|
|
;halfile = ttgotdongles3.h
|
|
|
|
halfile = ttgotdongledisplays3.h
|
2022-11-05 16:08:46 +01:00
|
|
|
;halfile = ttgotdisplays3.h
|
2022-11-04 14:08:42 +01:00
|
|
|
|
|
|
|
[platformio]
|
|
|
|
; upload firmware to board with usb cable
|
|
|
|
default_envs = usb
|
|
|
|
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-07-29 19:28:07 +02:00
|
|
|
release_version = 3.6.1
|
2022-11-04 14:08:42 +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
|
2022-11-05 16:08:46 +01:00
|
|
|
debug_level = 3
|
2023-07-01 17:44:43 +02:00
|
|
|
extra_scripts = pre:shared/build.py
|
2022-11-04 14:08:42 +01:00
|
|
|
otakeyfile = ota.conf
|
|
|
|
lorakeyfile = loraconf.h
|
|
|
|
lmicconfigfile = lmic_config.h
|
2023-08-31 20:22:21 +02:00
|
|
|
platform_espressif32 = espressif32@6.4.0
|
2022-11-04 14:08:42 +01:00
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200 ; set by build.py and taken from hal file
|
|
|
|
lib_deps_all =
|
2022-11-27 21:50:38 +01:00
|
|
|
bitbank2/BitBang_I2C@ ^2.2.1
|
2023-01-14 19:34:49 +01:00
|
|
|
bitbank2/bb_spi_lcd @ ^2.4.1
|
2023-06-04 22:08:10 +02:00
|
|
|
fastled/FastLED @ ^3.6.0
|
2023-07-16 14:42:27 +02:00
|
|
|
https://github.com/dbSuS/libpax.git
|
2022-11-04 14:08:42 +01:00
|
|
|
https://github.com/SukkoPera/Arduino-Rokkit-Hash.git
|
2023-07-29 19:28:07 +02:00
|
|
|
bblanchon/ArduinoJson @ ^6.21.3
|
2022-11-06 15:00:54 +01:00
|
|
|
mathertel/OneButton @ ^2.0.3
|
2023-02-11 13:56:48 +01:00
|
|
|
256dpi/MQTT @ ^2.5.1
|
2022-11-04 15:51:29 +01:00
|
|
|
ricmoo/QRCode @ ^0.0.1
|
2023-05-20 15:45:18 +02:00
|
|
|
build_flags_all =
|
2023-07-01 19:11:35 +02:00
|
|
|
-include "shared/paxcounter.conf"
|
2023-05-20 15:45:18 +02:00
|
|
|
'-D CORE_DEBUG_LEVEL=${common.debug_level}'
|
|
|
|
'-D LOG_LOCAL_LEVEL=${common.debug_level}'
|
|
|
|
'-D PROGVERSION="${common.release_version}"'
|
2022-11-04 14:08:42 +01:00
|
|
|
'-D LIBPAX_WIFI'
|
|
|
|
'-D LIBPAX_BLE'
|
|
|
|
'-D LIBPAX_ARDUINO'
|
2023-05-20 15:45:18 +02:00
|
|
|
'-D USE_ESP_IDF_LOG'
|
|
|
|
'-D TAG=__FILE__'
|
|
|
|
'-U BOARD_HAS_PSRAM'
|
2022-11-04 14:08:42 +01:00
|
|
|
|
|
|
|
[env]
|
|
|
|
framework = arduino
|
2022-11-04 15:20:10 +01:00
|
|
|
board = esp32-s3-devkitc-1
|
2022-11-04 14:08:42 +01:00
|
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
build_type = release
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
;upload_port = COM6
|
|
|
|
platform = ${common.platform_espressif32}
|
|
|
|
lib_deps = ${common.lib_deps_all}
|
2022-11-04 15:11:54 +01:00
|
|
|
build_flags =
|
2023-07-01 18:32:33 +02:00
|
|
|
-include "shared/hal/${board.halfile}"
|
2022-11-04 15:11:54 +01:00
|
|
|
${common.build_flags_all}
|
2022-11-04 14:08:42 +01:00
|
|
|
extra_scripts = ${common.extra_scripts}
|
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
monitor_filters = time, esp32_exception_decoder, default
|
|
|
|
|
|
|
|
[env:usb]
|
2022-11-04 15:11:54 +01:00
|
|
|
upload_protocol = esptool
|
|
|
|
|
|
|
|
[env:ci]
|
|
|
|
build_flags =
|
2023-07-01 18:32:33 +02:00
|
|
|
-include "shared/hal/${sysenv.CI_HALFILE}" ; set by CI
|
2022-11-04 15:11:54 +01:00
|
|
|
${common.build_flags_all}
|
2022-11-04 14:08:42 +01:00
|
|
|
upload_protocol = esptool
|