microReticulumTbeam/exercises/305_microReticulum_ble_file_transfer/platformio.ini

109 lines
2.3 KiB
INI

; Exercise 305: microReticulum BLE file transfer
[platformio]
default_envs = tbeam_if
[env]
platform = espressif32
framework = arduino
board = esp32-s3-devkitc-1
monitor_speed = 115200
upload_speed = 460800
board_build.partitions = huge_app.csv
extra_scripts = pre:scripts/embed_text.py
custom_text_source = texts/If.txt
build_flags =
-Wall
-Wno-missing-field-initializers
-Wno-format
-D RNS_USE_FS
-D RNS_PERSIST_PATHS
-D USTORE_USE_UNIVERSALFS
-D MSGPACK_USE_BOOST=OFF
-D MCU_ESP32
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
ArduinoJson@^7.4.2
MsgPack@^0.4.2
https://github.com/attermann/Crypto.git
https://github.com/attermann/microStore.git
microReticulum=symlink:///usr/local/src/microreticulum/microReticulum
[env:tbeam_if]
extends = env
custom_text_source = texts/If.txt
build_flags =
${env.build_flags}
-D FILE_TRANSFER_CHUNK_SIZE=32
-D FILE_TRANSFER_CHUNK_INTERVAL_MS=500
[env:tbeam_if_full]
extends = env
custom_text_source = texts/If_full.txt
build_flags =
${env.build_flags}
-D FILE_TRANSFER_CHUNK_SIZE=32
-D FILE_TRANSFER_CHUNK_INTERVAL_MS=500
[env:tbeam_constitution]
extends = env
custom_text_source = texts/US_Constitution.txt
build_flags =
${env.build_flags}
-D FILE_TRANSFER_CHUNK_SIZE=32
-D FILE_TRANSFER_CHUNK_INTERVAL_MS=500
[env:tbeam_if_pi_zero_profile]
extends = env
custom_text_source = texts/If.txt
build_flags =
${env.build_flags}
-D FILE_TRANSFER_CHUNK_SIZE=300
-D FILE_TRANSFER_CHUNK_INTERVAL_MS=100
[env:tbeam_if_full_pi_zero_profile]
extends = env
custom_text_source = texts/If_full.txt
build_flags =
${env.build_flags}
-D FILE_TRANSFER_CHUNK_SIZE=300
-D FILE_TRANSFER_CHUNK_INTERVAL_MS=100
[env:tbeam_constitution_pi_zero_profile]
extends = env
custom_text_source = texts/US_Constitution.txt
build_flags =
${env.build_flags}
-D FILE_TRANSFER_CHUNK_SIZE=300
-D FILE_TRANSFER_CHUNK_INTERVAL_MS=100
[env:tbeam]
extends = env
[env:amy]
extends = env
upload_port = /dev/ttytAMY
monitor_port = /dev/ttytAMY
[env:bob]
extends = env
upload_port = /dev/ttytBOB
monitor_port = /dev/ttytBOB
[env:cy]
extends = env
upload_port = /dev/ttytCY
monitor_port = /dev/ttytCY
[env:dan]
extends = env
upload_port = /dev/ttytDAN
monitor_port = /dev/ttytDAN
[env:ed]
extends = env
upload_port = /dev/ttytED
monitor_port = /dev/ttytED