Skip to content

Instantly share code, notes, and snippets.

#include <Servo.h>
Servo cup;
Servo cart;
int potpin = 0;
int val;
int inPinR = 4;
int inPinL = 3;
int ButtonR = 0;
int ButtonL = 0;
void setup()
// This code has yet to be tested
// There most likely will need to be some more adjustments made
// when our group meets again on Saturday (11/30/12) so that the
// Machine works as intended. As of now it compiles and should run.
#include <Servo.h>
int potPin = A0; // PotPin is set to A0
int potVal = 0;
int RightButton = 0;
int LeftButton = 0;// Declares LeftButton as an int and assigns it the value 0
int ledPin = 12;
int inPin = 7;
int Button = 0;
int motorPin = 9;
int motorPin6 = 6;
int motorValue;
int motorValue6;