Class library for a L298 H-Bridge to be used for motor control.

Revision:
2:1c000b6cf863
Parent:
1:6d242bb216d6
--- 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