shared

Dependencies:   mbed-rtos mbed

Fork of Boboobooo by kao yi

Revision:
1:82bc25a7b68b
diff -r 68c173249c01 -r 82bc25a7b68b motor_api.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/motor_api.h	Tue Jun 03 15:53:55 2014 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+
+
+class BX_motor{
+    
+    public:
+    
+       BX_motor(char type);
+       
+    
+    
+       void rotate(float level);
+       
+       
+       
+    private:
+    
+      float Level;
+       
+      char Type;
+      
+      PwmOut* forward_A;
+      PwmOut* backward_A;
+
+      PwmOut* forward_B;
+      PwmOut* backward_B;
+
+
+      DigitalOut* engine_enable;
+
+    
+    
+    };
\ No newline at end of file