asdf

Dependencies:   NokiaLCD XMIT_IR mbed

Fork of 4180_mP_WirelessPong_revC by Curtis Mulady

Files at this revision

API Documentation at this revision

Comitter:
cmulady
Date:
Thu Oct 04 15:12:58 2012 +0000
Parent:
3:8e492eacd346
Child:
5:2e08cc167fff
Commit message:
ir data xmission troublesome;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 04 14:54:59 2012 +0000
+++ b/main.cpp	Thu Oct 04 15:12:58 2012 +0000
@@ -24,7 +24,6 @@
 NokiaLCD lcd(p5, p7, p8, p9, NokiaLCD::LCD6610); // mosi, sclk, cs, rst, type
 Serial device(p28, p27);  // tx, rx
 PwmOut IRLED_mod(p22);
-DigitalOut IRLED_ctrl(p22);
 DigitalIn IRLED_rx(p20);
 
 //Global Vars
@@ -97,14 +96,15 @@
         if(device.readable()) {
             irdata_in = device.getc();
         }
+        Thread::wait(300);
     }
+
 }
 
 void BlinkAlive(void const* arguments)
 {
     while(true) {
         led1 = !led1;
-        IRLED_ctrl = led1;
         irdata_out++;
         Thread::wait(1000);
     }