Tero's Arduino Blog

Using Arduino with Ada

Reading button status via interrupt

The normal way to read the button is to read the input pin status in a loop and handle debouncing at the same time.

However, if you want to sleep most of the time, polling is not an option. Instead, you can use interrupts, like pin change interrupt (PCINTxx).

So …

[more]

Page 1 / 1


Copyright © 2012, 2013 Tero Koskinen - Theme Skeleton; Blogging engine Pelican; Powered by Python