tsmp1138 ir led transmitter demo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
cstevens
Date:
Wed May 21 11:33:57 2014 +0000
Commit message:
ir transmitter for tsmp1138;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /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);
+}
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed May 21 11:33:57 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e6c9f46b3bd
\ No newline at end of file