So i’ve made this library that simplifies the use of using the L293D motor driver chip. My whole library works, so I’ve decided to make some example sketches (I don’t really know about distributing it) and I made this ‘GettingStarted’ sketch that when you go to the serial monitor and type in ‘Forward’, ‘Backward’, or ‘Stop’, the motor attached to the L293D will move accordingly, and so far the forward and stop commands work, but the backward command doesn’t work, instead it moves forward. And I’ve tested before and I know the function for the motor to go backward works, I’ve double checked my code, but I can’t seem to find the problem. Could someone help me out here?
The library is attached with the getting started sketch in the ‘examples’ folder.
MotorController.zip (3 KB)