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 497B

1234567891011121314151617
  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 readState; //1 means pressed, 0 means released
  6. read_pins_t debouncedChanged; //1 means debounced changed
  7. readState = scanner.scan();
  8. debouncedChanged = debouncer.debounce(readState, debounced);
  9. pressRelease(READ_PIN_COUNT, debouncedChanged);
  10. }
  11. void Row_ShiftRegisters::begin()
  12. {
  13. scanner.begin();
  14. }