Added parameter to switch debounce() to trigger on the rising edge, instead of just the falling edge (see docs)
debounce()