I’ve performed the hardware modification at site below to bypass the efm8bb1 chip and let the esp8266 handle the RF decoding/encoding directly.
I’m wondering if anyone who has done the same has traced out all of the I/O and knows a valid OMG configuration to use?
So far, I know:
RF receiver on gpio4
RF transmitter on gpio5
Button on gpio0 (active low)
LED on gpio13 (inverted)
There should be two more LEDs accessible, but I don’t know their gpio connections. I’m hoping to use PiLight for the encoding/decoding.
I don’t think they are accessible through the ESP8255 unfortunately.
Darn. So config would look something like this?
[env:rfbridge-direct]
platform = ${com.esp8266_platform}
board = esp8285
lib_deps =
${com-esp.lib_deps}
${libraries.esp8266_mdns}
build_flags =
${com-esp.build_flags}
'-DZgatewayPilight="Pilight"'
'-DRF_RECEIVER_GPIO=5'
'-DRF_EMITTER_GPIO=4'
'-DLED_INFO=13'
'-DLED_INFO_ON=0'
'-DGateway_Name="OpenMQTTGateway_SRFB_Direct"'
board_build.flash_mode = dout
You need to put 4 for the receiver and 5 for the emitter, details below:
Apologies. Correct. I swapped them when typing. Adding code to read the button on gpio0, does this look correct?
[env:rfbridge-direct]
platform = ${com.esp8266_platform}
board = esp8285
lib_deps =
${com-esp.lib_deps}
${libraries.esp8266_mdns}
build_flags =
${com-esp.build_flags}
'-DZgatewayPilight="Pilight"'
'-DRF_RECEIVER_GPIO=4'
'-DRF_EMITTER_GPIO=5'
'-DLED_INFO=13'
'-DLED_INFO_ON=0'
'-DZsensorGPIOInput="GPIOInput"'
'-DINPUT_GPIO=0'
'-DGateway_Name="OpenMQTTGateway_SRFB_Direct"'
board_build.flash_mode = dout
I never tested it with that, but you can try
Confirmed working - for anyone in future looking for a config for that device.
1 Like
Would you be interested in submitting a PR with this configuration?