Here's a simple example program "manually" controlling a DC motor using a SparkFun Dual TB6612FNG motor controller. There is a SparkFun library available, but for simple projects you can simply use analogWrite and digitalWrite to get the job done.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.