byte led1 = 13;
byte led2 = 12;
byte led3 = 11;
byte pushbutton = 8;
unsigned long delaytime = 1000;
int storeValue;
void setup()
{
Serial.begin(9600);
pinMode(led, OUTPUT);
pinMode(pushbutton, INPUT);
}
void loop()
{
storeValue = digitalRead(pushbutton);
Serial.println(storeValue);
if(storeValue == 1)
{
digitalWrite(led , 1);
}
else{
digitalWrite(led , 0);
}
}