R-S flip flow for bouncing switches
By using the two interrupt lines of the Arduino UNO, this code provide perfect R-S-flip flop functionality for bouncing switches.
This is more to test the quality of the switches. On the serial port the program reports each second how many set or reset pulses have been detected. Practically it might not be very useful, except someone needs a R-S-function and has got badly bouncing switches and less time in the code to react properly.