Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868A-4 RF433MHz decoding.
#10
A4 RF433M receiver pin is IO13, here is code:
Code:
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(13));
  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();
  }
}
Reply


Messages In This Thread
RE: KC868A-4 RF433MHz decoding. - by admin - 05-07-2024, 12:04 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-07-2024, 12:12 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-10-2024, 03:21 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-10-2024, 10:43 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-10-2024, 10:56 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-13-2024, 11:42 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-14-2024, 01:10 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-14-2024, 10:35 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-15-2024, 11:43 AM

Forum Jump:


Users browsing this thread: