// Inspiration from the "Simple.ino" example from 
// the EnableInterrupt library.

#include <EnableInterrupt.h>

const int buttonPin = 7;
volatile unsigned long interruptCount;

void interruptFunction() 
{
  interruptCount++;
}

void setup() 
{
  Serial.begin(115200);
  Serial.println("Does the button really bounce ?");
  pinMode(buttonPin, INPUT_PULLUP);
  enableInterrupt(buttonPin, interruptFunction, CHANGE);
}

void loop() 
{
  Serial.print("Pin was interrupted: ");
  Serial.print(interruptCount, DEC);
  Serial.println(" times so far.");
  delay(1000);
}

nano:12
nano:11
nano:10
nano:9
nano:8
nano:7
nano:6
nano:5
nano:4
nano:3
nano:2
nano:GND.2
nano:RESET.2
nano:0
nano:1
nano:13
nano:3.3V
nano:AREF
nano:A0
nano:A1
nano:A2
nano:A3
nano:A4
nano:A5
nano:A6
nano:A7
nano:5V
nano:RESET
nano:GND.1
nano:VIN
nano:12.2
nano:5V.2
nano:13.2
nano:11.2
nano:RESET.3
nano:GND.3
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
Yes, the button really bounces