adds interrupt test code for the Arduino