Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-E16S]--#01-KC868-E16S-433-decode
#1
Thumbs Up 
[Arduino IDE demo source code for KC868-E16S]--#01-KC868-E16S-433-decode
   

Code:
/*www.kinocny.com */
/*KC868-E16S CODE OF 433MHz decode*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(4));
}

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();
  }
}
   


Attached Files
.zip   KC868-E16S-433-decode.zip (Size: 669 bytes / Downloads: 189)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)