PORTB maps to Arduino digital pins 8 to 13 The two high bits (6 & 7) map to the crystal pins and are not usable DDRB - The Port B Data Direction Register - read/write PORTB - The Port B Data Register ...
A professional-grade, debounce-handled button-controlled LED system built on Arduino Uno. Demonstrates core embedded firmware concepts including modular code architecture, non-blocking timing, edge ...
There is an example of a programme that differentiates between long and short push-button pushes on the Arduino.cc website, but I was not taken it. However their was an example I did like the look of, ...