I'm just trying to modify one of the programs (pushbottons) on the Arduino experimenter's board. I keep getting this error:
"error: expected unqualified-id before numemc constant"
I've checked it over, but just don't see it.
Here is the program -
int ledPin = 13
int inputPin2 = 2 // the number of the pushbutton pin
int inputPin3 = 3 // the number of the LED pin
// variables will change:
void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(inputPin2, INPUT);
pinMode (inputPin3, INPUT);
}
void loop(){
// read the state of the pushbutton value:
//buttonState = digitalRead(buttonPin2);
if (digitalRead(inputPin2) == LOW) {
digitalWrite(ledPin, LOW);
} else if (digitalRead(inputPin3) == LOW) {
digitalWrite(ledPin, HIGH);
}