Library for the CustomExplorerRobot.

Dependents:   CustomExplorerRobot_test

Revision:
0:ad4667fc5a76
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BD6212/BD6212.h	Sat Feb 27 09:20:21 2016 +0000
@@ -0,0 +1,27 @@
+#ifndef MBED_BD6212_H
+#define MBED_BD6212_H
+
+#include "mbed.h"
+/** BD6212 control with direct PWM class
+ */
+class BD6212{
+    public:
+    
+    BD6212(PinName fwd, PinName rev);
+    
+    void speed(float speed);
+    
+    void coast(void);
+    
+    void operator= ( float value )
+    {
+        speed(value);
+    }
+    
+    protected:
+    PwmOut _fwd;
+    PwmOut _rev;
+    float bspeed;
+};
+
+#endif
\ No newline at end of file