Events/2020/AVR: Difference between revisions

Jump to navigation Jump to search
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>
50

edits

Navigation menu