int Counter = 0;
#define ButtonPin 13
void setup() {
// put your setup code here, to run once:
pinMode(ButtonPin,INPUT_PULLUP);
Serial.begin(9600);
Serial.println("DEC: BIN:");
}
void loop() {
// put your main code here, to run repeatedly:
int ButtonValue = digitalRead(ButtonPin);
if (ButtonValue == LOW){
Counter++;
Serial.print(Counter);
Serial.print(" ");
Serial.println(Counter,BIN);
delay(200);
}
}