sn7544
Diff: motor.h
- Revision:
- 9:b1c5a0cf4a9b
- Parent:
- 7:42c478f9a1fe
diff -r 4fa7fadc583d -r b1c5a0cf4a9b motor.h --- a/motor.h Thu Jul 11 13:29:17 2019 +0000 +++ b/motor.h Wed Jul 17 13:01:43 2019 +0000 @@ -10,7 +10,7 @@ { public: - MotorCtl(PinName Pwm, PinName Dir, PinName tachoA, PinName tachoB); + MotorCtl(PinName Pwm, BusOut &Dir, PinName tachoA, PinName tachoB); ~MotorCtl(); @@ -41,7 +41,7 @@ private: PwmOut _pwm; - DigitalOut _Dir; + BusOut _Dir; DigitalInOut _tachoA; DigitalInOut _tachoB; Ticker _tick;