[arduino source code for KC868-Uair-8] RF 433MHz wireless remoter decode - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-Uair (https://www.kincony.com/forum/forumdisplay.php?fid=31) +--- Thread: [arduino source code for KC868-Uair-8] RF 433MHz wireless remoter decode (/showthread.php?tid=1578) |
[arduino source code for KC868-Uair-8] RF 433MHz wireless remoter decode - admin - 01-04-2022 #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); void setup() { Serial.begin(9600); mySwitch.enableReceive(digitalPinToInterrupt(13)); } 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(); } } download arduino IDE source code file: RF-receiver.zip (Size: 393 bytes / Downloads: 293) Note: install "rcswitch" library online firstly. |