Bi-directional DC motor control requires a motor control shield. In most cases you can find a library for your motor control shield and that library will come with examples.
Bi-directional DC motor control requires a motor control shield. In most cases you can find a library for your motor control shield and that library will come with examples.