Class library for a L298 H-Bridge

Dependents:   inverted_pendulum_system

Fork of L298HBridge by Riaan Ehlers

Revision:
2:1c000b6cf863
Parent:
1:6d242bb216d6
Child:
3:dabd8b6b2bff
diff -r 6d242bb216d6 -r 1c000b6cf863 L298HBridge.cpp
--- a/L298HBridge.cpp	Thu Jan 19 12:34:48 2017 +0000
+++ b/L298HBridge.cpp	Fri Jan 20 09:10:05 2017 +0000
@@ -24,7 +24,6 @@
     _REVPin = 0;
 }
  
-void L298HBridge::Speed(int DutyPercent) {
-    //_ENPin=(float)(DutyPercent/100);
-    _ENPin = DutyPercent;
+void L298HBridge::Speed(float DutyPercent) {    
+    _ENPin = DutyPercent /100;
 }
\ No newline at end of file