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.h 639B

12345678910111213141516171819202122232425262728
  1. #ifndef ROW_H
  2. #define ROW_H
  3. #include <RowBase.h>
  4. #include <RowScanner_PinsArray.h>
  5. #include <Debouncer_4Samples.h>
  6. /*
  7. Configuration
  8. -------------
  9. Instantiation
  10. -------------
  11. todo - see Row_DH
  12. */
  13. class Row : public RowBase
  14. {
  15. private:
  16. RowScanner_PinsArray scanner;
  17. Debouncer_4Samples debouncer;
  18. public:
  19. //Row constructor was like Row_DH constructor
  20. Row(const uint8_t strobePin, const uint8_t readPins[], const uint8_t READ_PIN_COUNT,
  21. Key *const ptrsKeys[])
  22. : RowBase(ptrsKeys), scanner(strobePin, readPins, READ_PIN_COUNT) { }
  23. virtual void process();
  24. };
  25. #endif