Class library for a L298 H-Bridge
Dependents: inverted_pendulum_system
Fork of L298HBridge by
L298HBridge.cpp
- Committer:
- RiaanEhlers
- Date:
- 2017-01-19
- Revision:
- 0:39561fe6e4ff
- Child:
- 1:6d242bb216d6
File content as of revision 0:39561fe6e4ff:
#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) { }