2022-11-04 14:08:42 +01:00
|
|
|
[board]
|
|
|
|
halfile = ttgotdongles3.h
|
|
|
|
;halfile = ttgotdongledisplays3.h
|
|
|
|
|
|
|
|
[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"
|
|
|
|
release_version = 3.3.2
|
|
|
|
; 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 = 5
|
|
|
|
extra_scripts = pre:build.py
|
|
|
|
otakeyfile = ota.conf
|
|
|
|
lorakeyfile = loraconf.h
|
|
|
|
lmicconfigfile = lmic_config.h
|
|
|
|
platform_espressif32 = espressif32@5.2.0
|
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200 ; set by build.py and taken from hal file
|
|
|
|
lib_deps_all =
|
|
|
|
bitbank2/BitBang_I2C@^2.2.1
|
|
|
|
https://github.com/bitbank2/bb_spi_lcd.git
|
|
|
|
fastled/FastLED @ ^3.5.0
|
|
|
|
;greyrook/libpax @ ^1.0.1
|
|
|
|
https://github.com/cyberman54/libpax.git
|
|
|
|
https://github.com/SukkoPera/Arduino-Rokkit-Hash.git
|
|
|
|
bblanchon/ArduinoJson @ ^6
|
|
|
|
spacehuhn/SimpleButton
|
|
|
|
256dpi/MQTT @ ^2.5.0
|
2022-11-04 15:51:29 +01:00
|
|
|
ricmoo/QRCode @ ^0.0.1
|
2022-11-04 14:08:42 +01:00
|
|
|
build_flags_basic =
|
|
|
|
-include "src/paxcounter.conf"
|
|
|
|
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
|
|
|
|
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
|
|
|
|
'-DPROGVERSION="${common.release_version}"'
|
|
|
|
'-D LIBPAX_WIFI'
|
|
|
|
'-D LIBPAX_BLE'
|
|
|
|
'-D LIBPAX_ARDUINO'
|
|
|
|
build_flags_all =
|
|
|
|
${common.build_flags_basic}
|
|
|
|
-mfix-esp32-psram-cache-issue
|
|
|
|
|
|
|
|
[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 =
|
|
|
|
-include "src/hal/${board.halfile}"
|
|
|
|
${common.build_flags_all}
|
2022-11-04 14:08:42 +01:00
|
|
|
upload_protocol = ${common.upload_protocol}
|
|
|
|
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 =
|
|
|
|
-include "src/hal/${sysenv.CI_HALFILE}" ; set by CI
|
|
|
|
${common.build_flags_all}
|
2022-11-04 14:08:42 +01:00
|
|
|
upload_protocol = esptool
|