2 Simple example for receiving
4 https://github.com/sui77/rc-switch/
9 RCSwitch mySwitch = RCSwitch();
13 mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
17 if (mySwitch.available()) {
19 int value = mySwitch.getReceivedValue();
22 Serial.print("Unknown encoding");
24 Serial.print("Received ");
25 Serial.print( mySwitch.getReceivedValue() );
27 Serial.print( mySwitch.getReceivedBitlength() );
29 Serial.print("Protocol: ");
30 Serial.println( mySwitch.getReceivedProtocol() );
33 mySwitch.resetAvailable();