debounce.h 389 B

12345678910111213
  1. #pragma once
  2. // raw is the current key state
  3. // on entry cooked is the previous debounced state
  4. // on exit cooked is the current debounced state
  5. // changed is true if raw has changed since the last call
  6. void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed);
  7. bool debounce_active(void);
  8. void debounce_init(uint8_t num_rows);
  9. void debounce_free(void);