Mark Harris
/
SIEMENS_DLFEEDER_LOOP
Loop based controller for dual lane siemens siplace feeder.
Diff: HBridge.h
- Revision:
- 0:617334d8e3bb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HBridge.h Thu Feb 02 19:18:12 2017 +0000 @@ -0,0 +1,20 @@ +#ifndef HBRIDGE_H_ +#define HBRIDGE_H_ + +#include "mbed.h" + +class HBridge +{ + public: + HBridge(PinName i1, PinName i2); + void Coast(); + void Brake(); + void Forward(); + void Reverse(); + + private: + DigitalOut IN1; + DigitalOut IN2; +}; + +#endif \ No newline at end of file