@@ -422,16 +422,22 @@ build_flags =
422422 -D P_LORA_MOSI =27 ; SPI MOSI
423423 -D P_LORA_TX_LED =2 ; LED pin for TX indication
424424 -D PIN_VBAT_READ =35 ; Battery voltage reading (analog pin)
425+ -D PIN_USER_BTN =0
425426 -D RADIO_CLASS =CustomSX1276
426427 -D ARDUINO_LOOP_STACK_SIZE =16384
428+ -D DISPLAY_CLASS =SSD1306Display
427429 -D WRAPPER_CLASS =CustomSX1276Wrapper
428430 -D LORA_TX_POWER =20
431+ lib_deps =
432+ ${esp32_base.lib_deps}
433+ adafruit/Adafruit SSD1306 @ ^2.5.13
429434
430435; === LILYGO T-LoRa V2.1-1.6 with SX1276 environments ===
431436[env:LilyGo_TLora_V2_1_1_6_Repeater]
432437extends = LilyGo_TLora_V2_1_1_6
433438build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
434- +<../examples/simple_repeater/main.cpp>
439+ +<helpers/ui/*.cpp>
440+ +<../examples/simple_repeater>
435441build_flags =
436442 ${LilyGo_TLora_V2_1_1_6.build_flags}
437443 -D ADVERT_NAME =" \" TLora-V2.1-1.6 Repeater\" "
@@ -451,7 +457,8 @@ build_flags =
451457; -D MESH_PACKET_LOGGING=1
452458; -D MESH_DEBUG=1
453459build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
454- +<../examples/simple_secure_chat/main.cpp>
460+ +<helpers/ui/*.cpp>
461+ +<../examples/simple_repeater>
455462lib_deps =
456463 ${LilyGo_TLora_V2_1_1_6.lib_deps}
457464 densaugeo/base64 @ ~1.4.0
@@ -467,7 +474,8 @@ build_flags =
467474; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
468475; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
469476build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
470- +<../examples/companion_radio/main.cpp>
477+ +<helpers/ui/*.cpp>
478+ +<../examples/companion_radio>
471479lib_deps =
472480 ${LilyGo_TLora_V2_1_1_6.lib_deps}
473481 densaugeo/base64 @ ~1.4.0
@@ -486,15 +494,17 @@ build_flags =
486494; -D MESH_DEBUG=1
487495build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
488496 +<helpers/esp32/*.cpp>
489- +<../examples/companion_radio/main.cpp>
497+ +<helpers/ui/*.cpp>
498+ +<../examples/companion_radio>
490499lib_deps =
491500 ${LilyGo_TLora_V2_1_1_6.lib_deps}
492501 densaugeo/base64 @ ~1.4.0
493502
494503[env:LilyGo_TLora_V2_1_1_6_room_server]
495504extends = LilyGo_TLora_V2_1_1_6
496505build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
497- +<../examples/simple_room_server/main.cpp>
506+ +<helpers/ui/*.cpp>
507+ +<../examples/simple_room_server>
498508build_flags =
499509 ${LilyGo_TLora_V2_1_1_6.build_flags}
500510 -D ADVERT_NAME =" \" TLora-V2.1-1.6 Room\" "
0 commit comments