
basic version
Dependencies: C12832_lcd USBHost mbed
Revision 9:88d70b0c1b8b, committed 2015-01-29
- Comitter:
- cathal66
- Date:
- Thu Jan 29 16:18:19 2015 +0000
- Parent:
- 8:b22ef9f44549
- Child:
- 10:6059097698f7
- Child:
- 11:f4639eb91e5f
- Commit message:
- PWM added to LED
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-rtos.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 26 23:01:46 2015 +0000 +++ b/main.cpp Thu Jan 29 16:18:19 2015 +0000 @@ -2,6 +2,9 @@ #include "rtos.h" #include "C12832_lcd.h" + + + //Varible float sonarDistance; float servoPosition; @@ -43,9 +46,11 @@ int Size=16; float Average_4[16]; //number of value in the array float Average_Sum=0; + + + while(true) { - for(int i=0;i<Size;i++) { @@ -62,7 +67,6 @@ servoPosition_mutex.unlock(); //Mutex unlock for the servo value }//end for loop - }//end of while loop }//End of thread
--- a/mbed-rtos.lib Mon Jan 26 23:01:46 2015 +0000 +++ b/mbed-rtos.lib Thu Jan 29 16:18:19 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#9387d4c49609 +http://mbed.org/users/mbed_official/code/mbed-rtos/#5448826aa700