I have a sainsmart(Ada fruit) motor shield l293d, just got it. I went on the arduino playground and installed the library. Tried the example codes and the motor works just fine. I want to hook it up to a pot, and control the motor through the motorshield. Here is the problem, after reading and rereading, cannot find the motorPin designation for motor 1 terminal on the shield. Is their one? I have done this on the UNO, and used 3 as my motorPin. On the shield, I hook it into the terminal... How can I attach to a pin? Or is there a function that replaces a pin with a terminal?
AF_DCMotor motor(1, MOTOR12_64KHZ);
const int potPin = A0;
int potVal = 0;
int mappedPotVal = 0;
potVal = analogRead(potPin);
mappedPotVal = map(potVal, 0, 1023, 0, 255);
Add in loop()