tsmp1138 ir led transmitter demo

Dependencies:   mbed

Revision:
0:0f4b530d91d5
diff -r 000000000000 -r 0f4b530d91d5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed May 21 11:33:57 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Serial pc(USBTX,USBRX);
+Serial IRTX(PTC4,PTC3); // TX,RX
+DigitalOut Ipower(PTC12); // pin to power the irda
+
+int main() {
+// power the irda electronics on
+int i=0;
+Ipower=1;
+for(i=0;i<5;i++){
+myled=0;
+pc.printf("Sending %d\n\r",i);
+IRTX.printf("Hello IRDA    \r");
+myled=1;
+wait(0.2);
+}
+
+}