From 5e01f40829fb1b2b0d456ade7affbe431aeba89e Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 28 Oct 2023 14:28:38 -0500 Subject: [PATCH] [BOARD] Differentiate Pilight from multi receiver environment (#1785) --- .github/workflows/build.yml | 1 + environments.ini | 30 +++++++++++++++++++++++++++++- platformio.ini | 1 + 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9d19f2..ad1efc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,6 +43,7 @@ jobs: - "lilygo-rtl_433" - "lilygo-ble" - "esp32dev-multi_receiver" + - "esp32dev-multi_receiver-pilight" - "tinypico-ble" - "ttgo-lora32-v1" - "ttgo-lora32-v21" diff --git a/environments.ini b/environments.ini index 6cb1bad..9cc0b5c 100644 --- a/environments.ini +++ b/environments.ini @@ -841,6 +841,33 @@ build_flags = '-DZgatewayRF="RF"' '-DZgatewayRF2="RF2"' '-DZgatewayRTL_433="RTL_433"' + '-DZradioCC1101="CC1101"' + '-DGateway_Name="OMG_multi_receiver"' + '-DvalueAsATopic=true' ; MQTT topic includes model and device (rtl_433) or protocol and id (RF and PiLight) +; '-DDEFAULT_RECEIVER=1' ; Default receiver to enable on startup +; *** RF Module Options *** + '-DRF_CC1101="CC1101"' ; CC1101 Transceiver Module + '-DRF_MODULE_CS=5' ; pin to be used as chip select + '-DRF_MODULE_GDO0=12' ; CC1101 pin GDO0 + '-DRF_MODULE_GDO2=27' ; CC1101 pin GDO2 +; '-DRF_MODULE_INIT_STATUS=true' ; Display transceiver config during startup +custom_description = Multi RF library with the possibility to switch between RTL_433_ESP, NewRemoteSwitch and RCSwitch, need CC1101 + +[env:esp32dev-multi_receiver-pilight] +platform = ${com.esp32_platform} +board = esp32dev +board_build.partitions = min_spiffs.csv +lib_deps = + ${com-esp32.lib_deps} + ${libraries.rc-switch} + ${libraries.smartrc-cc1101-driver-lib} + ${libraries.rtl_433_ESP} + ${libraries.esppilight} + ${libraries.newremoteswitch} +build_flags = + ${com-esp32.build_flags} + '-DZgatewayRF="RF"' + '-DZgatewayRF2="RF2"' '-DZgatewayPilight="Pilight"' '-DZradioCC1101="CC1101"' '-DGateway_Name="OMG_multi_receiver"' @@ -852,7 +879,8 @@ build_flags = '-DRF_MODULE_GDO0=12' ; CC1101 pin GDO0 '-DRF_MODULE_GDO2=27' ; CC1101 pin GDO2 ; '-DRF_MODULE_INIT_STATUS=true' ; Display transceiver config during startup -custom_description = Multi RF library with the possibility to switch between ESPilight, RTL_433_ESP, NewRemoteSwitch and RCSwitch, need CC1101 +custom_description = Multi RF library with the possibility to switch between ESPilight, NewRemoteSwitch and RCSwitch, need CC1101 + [env:tinypico-ble] platform = ${com.esp32_platform} diff --git a/platformio.ini b/platformio.ini index 39fbc95..64dcfa8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -65,6 +65,7 @@ extra_configs = ;default_envs = lilygo-rtl_433 ;default_envs = lilygo-ble ;default_envs = esp32dev-multi_receiver +;default_envs = esp32dev-multi_receiver-pilight ;default_envs = tinypico-ble ;default_envs = ttgo-lora32-v1 ;default_envs = ttgo-lora32-v21