Motor Controls

Hi

I am working on a project to which I need to drive 7 motors for my robot. I am using the bot boarduino and 4 Sabertooth 2x5 RCs to drive the motors. All I want to do is if a button is pressed on the ps2 controller then a motor will turn clockwise or counterclockwise and another button with do the opposite. I have successfully connected my PS2 controller (however it does say it wont enter pressure mode) but I need some help with writing the code to output to the motor controller. I was hoping for some help if possible. I am currently using Bill Porters library.

Thanks alot


Take a look at this tutorial:
arduino.cc/en/Tutorial/SwitchCase
In your situation, the case variables can actually be the button names.