keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Row_ShiftRegisters.cpp 587B

123456789101112131415161718
  1. #include "Row_ShiftRegisters.h"
  2. void Row_ShiftRegisters::process()
  3. {
  4. //these variables are all bitwise, one bit per key
  5. read_pins_t rowState; //1 means pressed, 0 means released
  6. read_pins_mask_t rowEnd; //1 bit marks positioned after last key of row
  7. read_pins_t debouncedChanged; //1 means debounced changed
  8. rowState = scanner.scan(rowEnd);
  9. debouncedChanged = debouncer.debounce(rowState, debounced);
  10. pressRelease(rowEnd, debouncedChanged);
  11. }
  12. void Row_ShiftRegisters::begin()
  13. {
  14. scanner.begin();
  15. }