A sampled button for a digital input
Takes a sample on each sample() call compares the last three samples
ClickEventHandler is called on each state change
PressEventHandler is called after each pressedTriggerInterval if the
state is "down"
added keywords for syntax highlighting
Example for usage of the sampled button.
a button, three leds and a ldr on a attiny85