A simple class which can be used to control a motor through a HBridge (such as the L293).

Dependents:   SimplePIDBot

Revision:
0:a3bcb7eab9d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HBridgeMotor.h	Tue Sep 20 12:54:36 2011 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+class HBridgeMotor {
+public:
+    HBridgeMotor(PinName fin, PinName rin);
+    void set(float power);
+    float read();
+    
+private:
+    float power;
+    PwmOut fwd, rev;
+};
\ No newline at end of file