int sw,c=0;
void setup() {
pinMode(5, INPUT_PULLUP);
Serial.begin(9600);
Serial.println("Please push the button");
}
void loop() {
sw =digitalRead(5);
if(sw == 0)
{
delay(2500);
c++;
Serial.println(c);
}
}
int sw,c=0;
void setup() {
pinMode(5, INPUT_PULLUP);
Serial.begin(9600);
Serial.println("Please push the button");
}
void loop() {
sw =digitalRead(5);
if(sw == 0)
{
delay(2500);
c++;
Serial.println(c);
}
}