Class library for a L298 H-Bridge

Dependents:   inverted_pendulum_system

Fork of L298HBridge by Riaan Ehlers

Revision:
0:39561fe6e4ff
Child:
1:6d242bb216d6
diff -r 000000000000 -r 39561fe6e4ff L298HBridge.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/L298HBridge.cpp	Thu Jan 19 11:33:01 2017 +0000
@@ -0,0 +1,25 @@
+#include "L298HBridge.h"
+#include "mbed.h"
+ 
+ 
+L298HBridge::L298HBridge(PinName ENPin, PinName FWDPin, PinName REVPin) : _ENPin(ENPin), _FWDPin(FWDPin), _REVPin(REVPin) {
+    _ENPin = 0;     //PWM = 0%
+    _FWDPin = 0;
+    _REVPin = 0;
+}
+ 
+void L298HBridge::Fwd() {
+
+}
+
+void L298HBridge::Rev() {
+
+}
+
+void L298HBridge::Stop() {
+
+}
+ 
+void L298HBridge::Speed(int DutyPercent) {
+
+}
\ No newline at end of file