#define redpin 9 //defing "redpin" as being controlled by analog pin 9
#define bringt 50 //Define voltage on analog pin 9 as 50/255????
int waitT=750; //Define delay time
int x =3; //Declare new int varialbe with starting value =3
int y=7; //Declare new int variable with starting value =7
int z; //Declare new int variable z
void setup() {
// put your setup code here, to run once:
Serial.begin (9600); //define communication rate 9600 baud
pinMode(redpin, OUTPUT); //define "redpin" on analog 9 as an output pin
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(redpin, bringt); //apply voltage to pin 9 defined
Serial.print (x); //print the value stored as the intefer "X"
Serial.print ("+"); //pring exactly what is contained in the quotes
Serial.print (y); //print the value stored as the integer "y"
Serial.print ("="); //print exactly what is contained in the quotes
z = x +y; //assign a value to z. z will be equeal to x+y
Serial.println (z); //print the value of z and move to a new line
delay (waitT); //wait 750 milliseconds before proceeding with the loop
x= x+2; //update value of x as a the old value of x x+2
y=y+2; //update the value of y as the old value +2
//end of loop program returns to the first loop instruction
}