const int buttonPin = 27; // the number of the pushbutton pin located from Quentorres Data Sheet const int ledPin = 26; // the number of the LED pin located from Quentorres Data Sheet int buttonState = 0; // variable for reading the pushbutton status int LEDState=0; // variable for reading the LED status void setup() { // initialize the LED pin as an output: pinMode(ledPin, OUTPUT); // initialize the pushbutton pin as an input: pinMode(buttonPin, INPUT); } void loop() { // read the state of the pushbutton value: buttonState = digitalRead(buttonPin); if (buttonState==HIGH){ // read the state of the LED value: // read the state of the LED value: LEDState = digitalRead(ledPin); if (LEDState==HIGH){ digitalWrite(ledPin,LOW); } else { digitalWrite(ledPin,HIGH); } } }