don't forget to debounce the buttons, the code will do exactly what it is expected to do, but the hardware may not.
Example here: http://arduino.cc/en/Tutorial/Debounce
don't forget to debounce the buttons, the code will do exactly what it is expected to do, but the hardware may not.
Example here: http://arduino.cc/en/Tutorial/Debounce