Nurbol Nurdaulet / Mbed 2 deprecated 2sensors_2servo_21_11_11

Files at this revision

API Documentation at this revision

Comitter:
Nurbol
Date:
Mon Nov 21 19:25:35 2011 +0000
Parent:
1:fc8017eb0c2a
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 21 15:41:10 2011 +0000
+++ b/main.cpp	Mon Nov 21 19:25:35 2011 +0000
@@ -174,9 +174,9 @@
 // return last servo number
 //
         case READ_CMD :
-            command->nos_data = 1;                   // no data to be returned
-            command->result_data[0] = counter1p;
-            command->result_data[1] = counter2p;
+            command->nos_data = 2;                   // no data to be returned
+            command->result_data[0] = valueLED1;
+            command->result_data[1] = valueLED2;
             break;
 //
 // catch any problems
@@ -271,7 +271,6 @@
     timercounter1p.attach(&counter1, 0.1);  //function counter1 is reading all the 0.1 ms
     
      clk = !clk;
-     wait(0.1);
     
         get_cmd(&ext_cmd);
     //