void setup() {
// put your setup code here, to run once:
pinMode(26, OUTPUT); //Stablish pin 26 as output
pinMode(27, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int status=digitalRead(27); // Read Button and save value on a int variable
if( status==HIGH)
{
digitalWrite(26,HIGH);
}
else{
digitalWrite(26, LOW); //Turn off LED on pin 26
}
}