Im reading Brian Evan's programming notebook ???
int x = 13; //declares variable x as the integer 13 .... OK I think I understand ??
int inputVariable = 0; // declares variable assigns value on 0 ...OK..
inputVariable = analogRead(2); // set variable to value of analog pin 2 ....Ok...
int led = 13; //connect LED to pin 13 ?????
?? //why does this not just declare a variable called led and assign it the value of 13 as was on page 9.
int pin = 7; // connect pushbutton to pin 7 ????
int value = 0; //variable to store data....... this actually is a variable not a pin number ??
If I declare say int pin1=6; does it mean a variable assigned the value of 6 .... or does it mean pin1 uses the pin number6.
or int switchA=8; is it value 8 or pin 8.