hello

Dependencies:   mbed-rtos mbed

Fork of BX-car by kao yi

Revision:
1:82bc25a7b68b
Child:
10:9f0ce6ba7663
--- /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