Create a motor object, to control a motor using L293DNE and FDRM-KL46z.
Dependencies: mbed
Diff: Motor.cpp
- Revision:
- 1:4040dba1ef4c
- Parent:
- 0:c542014a089d
- Child:
- 2:538f0e257365
--- a/Motor.cpp Fri Aug 19 01:51:07 2016 +0000 +++ b/Motor.cpp Fri Aug 19 02:10:52 2016 +0000 @@ -6,7 +6,7 @@ _speed.period(0.03f); // 4 second period _speed.write(0.20f); } - /* Input 1 or 2. + /* Input 1 or 2 or LEFT and RIGHT * 1 : Postive VCC Negtaive GND, 2 : Postive GND Negtaive VCC. */ void Motor::Direction(int move) {