50
edits
Chet Manly (talk | contribs) |
Chet Manly (talk | contribs) |
||
| Line 202: | Line 202: | ||
// Debounce the button. See comments in 'AccelCalib.ino'. | // Debounce the button. See comments in 'AccelCalib.ino'. | ||
static volatile uint16_t btnHistory = 0xFFFF; | static volatile uint16_t btnHistory = 0xFFFF; | ||
btnHistory = (btnHistory << 1) | bitRead(PIND, PIND2); | |||
</pre> | </pre> | ||
edits