#define Button 10
#define LED 12
int sw, c = 0;
void setup()
{
pinMode(LED, OUTPUT);
pinMode(Button, INPUT_PULLUP);
}
void loop()
{
sw = digitalRead(Button);
if (sw == 0)
{
delay(250);
c++;
digitalWrite(LED, c % 2);
Serial.println(c);
}
}