Dependencies:   YMotor mbed

Revision:
3:43a3d01e6bff
Parent:
0:c828fcf29c55
--- a/main.cpp	Thu Nov 12 08:03:51 2015 +0000
+++ b/main.cpp	Fri Nov 13 08:19:21 2015 +0000
@@ -1,12 +1,8 @@
-#include "mbed.h"
 #include "YMotorDriver.h"
 
-int main() {
-    YMotorDriver m;
-    
-    while( true ) {
-        m.update();
+int main(){
+    while( true ){
+        YMotorDriver::getInstance()->update();
     }
-    
     return 0;
 }
\ No newline at end of file