Writing sketches
This section shows you how to write sketches to control the motors with the TB6612FND Arduino library. You can download the library via the following link:
https://github.com/sparkfun/SparkFun_TB6612FNG_Arduino_Library/archive/master.zip
You can also get the latest version of the library from the GitHub repository:
https://github.com/sparkfun/SparkFun_TB6612FNG_Arduino_Library
After downloading the library, extract and copy the unzipped folder to the libraries
folder of your Arduino sketchbook.