Motor-H-Bridge L293d library

Hello Arduino developers!

I created a little library for H Bridge L293d.

Github url here

// Go Forward
    motorLeft.goForward(255); // 0-255 value. Value of PWM.         Motor max speed = 255
    motorRight.goForward(255); 
    delay(1000); // wait 1sec


    // Go Backward
    motorLeft.goBackward(255); // 0-255 value. Value of PWM.        Motor max speed = 255
    motorRight.goBackward(255); 
    delay(1000); // wait 1sec


    // Spin
    motorLeft.goBackward(255); // 0-255 value. Value of PWM.        Motor max speed = 255
    motorRight.goForward(255); 
    delay(1000); // wait 1sec

    // Stop (or use motorstop function)
    motorLeft.stop();
    motorRight.stop();
    delay(1000); // wait 1sec

I hope we can write cleaner code with it.

:slightly_smiling_face:
Tom

That ancient inefficient L293D chip should be burried along with 555 timer and the 741 opamp.
Leo..

But the library will work with many H-bridges, its not exactly a rare interface.