使用红外接收库的一个demo code

Dependencies:   mbed

Fork of IR_remote by Armando Casalino

Revision:
1:5e7be7addf96
Parent:
0:42764550a2cb
Child:
2:35f80e65a141
--- a/main.cpp	Thu Jul 13 08:02:24 2017 +0000
+++ b/main.cpp	Thu Jul 13 08:07:25 2017 +0000
@@ -18,8 +18,6 @@
         if (ir_rx.getState() == ReceiverIR::Received) {
             bitcount = ir_rx.getData(&format, buf, sizeof(buf) * 8);
             
-            myled = !myled;
-
             if (bitcount>0){
                 
                 pc.printf("Decoded: %02X \r\n", buf[3]);