diff --git a/variants/heltec_v3/platformio.ini b/variants/heltec_v3/platformio.ini index 803ee683e0..14b9e573de 100644 --- a/variants/heltec_v3/platformio.ini +++ b/variants/heltec_v3/platformio.ini @@ -57,6 +57,32 @@ lib_deps = ${esp32_ota.lib_deps} bakercp/CRC32 @ ^2.0.0 + +[env:Heltec_v3_without_display_repeater] +extends = Heltec_lora32_v3 +build_flags = + ${Heltec_lora32_v3.build_flags} + -D DISPLAY_CLASS=NullDisplayDriver + -D NO_DISPLAY + -D ADVERT_NAME='"Heltec Repeater"' + -D ADVERT_LAT=0.0 + -D ADVERT_LON=0.0 + -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 +; -D MESH_PACKET_LOGGING=1 +; -D MESH_DEBUG=1 +build_src_filter = ${Heltec_lora32_v3.build_src_filter} + - + - + - + - + +<../examples/simple_repeater> +lib_deps = + ${Heltec_lora32_v3.lib_deps} + ${esp32_ota.lib_deps} + bakercp/CRC32 @ ^2.0.0 + + [env:Heltec_v3_repeater_bridge_rs232] extends = Heltec_lora32_v3 build_flags = @@ -376,4 +402,4 @@ build_flags = build_src_filter = ${Heltec_lora32_v3.build_src_filter} +<../examples/kiss_modem/> lib_deps = - ${Heltec_lora32_v3.lib_deps} \ No newline at end of file + ${Heltec_lora32_v3.lib_deps} diff --git a/variants/heltec_v3/target.h b/variants/heltec_v3/target.h index 21a209f993..1f674ee1e1 100644 --- a/variants/heltec_v3/target.h +++ b/variants/heltec_v3/target.h @@ -8,8 +8,13 @@ #include #include #include + #ifdef DISPLAY_CLASS - #include + #ifdef NO_DISPLAY + #include + #else + #include + #endif #include #endif