Example for the RCSwitch Library. In receive mode, this will receive messages from the remote and decide which protocol has been used for transmission. In transmit mode, this will cycle through different formats for sending codewords.

Dependencies:   RCSwitch mbed

/media/uploads/TheChrisyd/rcswicth_components.jpg

Revision:
1:9a4f690820b0
Parent:
0:4d96e547dc15
--- a/main.cpp	Sun Oct 12 10:01:46 2014 +0000
+++ b/main.cpp	Sun Oct 12 10:05:01 2014 +0000
@@ -35,9 +35,9 @@
         wait(1);
 
         // Same switch as above, but using decimal code
-        mySwitch.send(83029, 24);//5393
+        mySwitch.send(5393, 24);
         wait(1);
-        mySwitch.send(83028, 24);//5396
+        mySwitch.send(5396, 24);
         wait(1);
 
         // Same switch as above, but using binary code