Matthew Gasper
/
Synergy
Combination of Stepper Motors and Encoders
Diff: motor.h
- Revision:
- 0:67b964961693
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/motor.h Sun Mar 07 20:13:02 2021 +0000 @@ -0,0 +1,11 @@ +#include <mbed.h> + +class Motor{ + public: + Motor( PinName _pul, PinName _dir, PinName _ena) : + pul(_pul), dir(_dir), ena(_ena){} + + DigitalOut pul; + DigitalOut dir; + DigitalOut ena; +}; \ No newline at end of file