How do I write a program to count switch presses (one complete closing and opening of a
switch is one count), and display the count in binary on 4 LEDs. When the
count exceeds 1510 (note that a subscript 10 means that the number is decimal,
so 1510 is 15 in decimal notation) the displayed count must roll over (all LEDs
must go out and the count should begin again at zero).
Homework assignment?
StateChangeDetection example is a good one to start with.