Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "ReceiverIR.h" 00003 ReceiverIR ir_rx(p15); 00004 00005 DigitalOut myled(LED1); 00006 RemoteIR::Format format; 00007 uint8_t buf[32]; 00008 int bitcount; 00009 int main() { 00010 while(1) 00011 { 00012 if (ir_rx.getState() == ReceiverIR::Received) { 00013 bitcount = ir_rx.getData(&format, buf, sizeof(buf) * 8); 00014 if ( buf[0]== 0x80 && buf[1] == 0x00 ) 00015 myled=1; 00016 } 00017 } 00018 }
Generated on Tue Jul 26 2022 05:52:32 by
1.7.2