Smart Home Automation Forum
[arduino code examples for AIO Hybrid]-13 RF433M receiver - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=93)
+--- Forum: AIO Hybrid (https://www.kincony.com/forum/forumdisplay.php?fid=94)
+--- Thread: [arduino code examples for AIO Hybrid]-13 RF433M receiver (/showthread.php?tid=8547)



[arduino code examples for AIO Hybrid]-13 RF433M receiver - admin - 09-15-2025

Code:
/*
  Simple example for receiving
 
  https://github.com/sui77/rc-switch/
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(40));
  Serial.print("begin test");
}

void loop() {
  if (mySwitch.available()) {
   
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );

    mySwitch.resetAvailable();
  }
}
arduino ino file download:

.zip   13-433-decode.zip (Size: 457 bytes / Downloads: 198)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   13-433-decode.ino.merged.zip (Size: 185.99 KB / Downloads: 200)