WT32-ETH01 and CC1101 wirring

hi

[env:esp32dev-multi_receiver-eth01]
platform = ${com.esp32_platform}
board = esp32-gateway
;board = wt32-eth01
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.wifimanager32}
  ${libraries.rc-switch}
  ${libraries.smartrc-cc1101-driver-lib}
  ${libraries.rtl_433_ESP}
  ${libraries.esppilight}
  ${libraries.newremoteswitch}
build_flags =
  ${com-esp.build_flags}
  '-DESP32_ETHERNET=true'
  '-DETH_PHY_ADDR=1'
  '-DETH_PHY_POWER=16'
  '-DETH_CLK_MODE=ETH_CLOCK_GPIO0_IN'
  '-DZgatewayRF="RF"'
  '-DZgatewayRF2="RF2"'
  '-DZgatewayRTL_433="RTL_433"'
  '-DZgatewayPilight="Pilight"'
  '-DZradioCC1101="CC1101"'
  '-DGateway_Name="OpenMQTTGateway"'
  '-DvalueAsATopic=true'  ; MQTT topic includes model and device (rtl_433) or protocol and id (RF and PiLight)
  '-DDEFAULT_RECEIVER=2'  ; Default receiver to enable on startup
; *** RF Module Options ***
  '-DMQTT_USER="***"'
  '-DMQTT_PASS="***"'
  '-DMQTT_SERVER="192.168.1.17"'
  '-DMQTT_PORT="1883"'
  '-DRF_CC1101="CC1101"'  ; CC1101 Transceiver Module
  '-DRF_MODULE_CS=2'      ; pin to be used as chip select
  '-DRF_MODULE_GDO0=4'   ; CC1101 pin GDO0
  '-DRF_MODULE_GDO2=17'   ; CC1101 pin GDO2
  ;'-DRADIOLIB_DEBUG=true'
  ;'-DRADIOLIB_VERBOSE=true'
  ;'-DRF_MODULE_INIT_STATUS=true'    ; Display transceiver config during startup
 ;SCK_PIN = 12; MISO_PIN =15 ; MOSI_PIN =14 ; SS_PIN = 2;

define in config_RF.h

     define RF_RECEIVER_GPIO 17
     define RF_EMITTER_GPIO 4
define in ELECHOUSE_CC1101_SRC_DRV.cpp
      #elif ESP32
  SCK_PIN = 12; MISO_PIN =15 ; MOSI_PIN =14 ; SS_PIN = 2;

enjoy it works…

1 Like