I have a LilyGo TTGO board and am trying to use it with OMG. I can get it to work using the pre-defined environments which utilise RTL_433, but I want to use the RC_SWITCH library for my project (already proven on a stock ESP32 with a CC1101 radio). According to what I’ve read so far, this should be possible by doing a custom build by downloading the code and editing the relevant environments.ini entry in platform.io. I did this by adding the rc-switch library to a copy of the env:lilygo-rtl_433 entry, along with a relevant -DGateway… entry (see below), but the code fails to compile with assorted errors in modules such as ZcommonRF.ino. I’m a noob to all of this and probably am in way over my head (I’m no coder!), but has anyone got the RC_SWITCH libraries running on a LilyGo TTGO (SX127x radio)?
[env:lilygo-rtl_433-rf]
platform = ${com.esp32_platform}
board = ttgo-lora32-v21
; ~/.platformio/packages/framework-arduinoespressif32/variants/…/pins_arduino.h
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp32.lib_deps}
${libraries.ssd1306}
${libraries.rc-switch}
; ${libraries.rtl_433_ESP}
build_flags =
${com-esp32.build_flags}
; *** OpenMQTTGateway Config ***
;‘-UZmqttDiscovery’ ; disables MQTT Discovery
‘-DvalueAsATopic=true’ ; MQTT topic includes model and device
‘-DGateway_Name=“OMG_lilygo_rtl_433_ESP-RF”’
; *** OpenMQTTGateway Modules ***
‘-DZgatewayRF=“RF”’
; ‘-DZgatewayRTL_433=“rtl_433”’
‘-DZradioSX127x=“SX127x”’
; *** ssd1306 Display Options ***
‘-DZdisplaySSD1306=“LilyGo_SSD1306”’
; ‘-DLOG_TO_OLED=true’ ; Enable log to OLED
; ‘-DJSON_TO_OLED=true’
; ‘-DLOG_LEVEL_OLED=LOG_LEVEL_NOTICE’
; ‘-DDISPLAY_IDLE_LOGO=false’
; ‘-DDISPLAY_BRIGHTNESS=80’
; ‘-DDISPLAY_METRIC=false’
custom_description = For ESP32, Gateway using RTL_433_ESP and RF
custom_hardware = ESP32 LILYGO LoRa32 V2.1