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.

1234567891011121314151617181920212223242526
  1. #ifndef ROW_IOE_H
  2. #define ROW_IOE_H
  3. #include <Row.h>
  4. #include <Scanner_Port.h>
  5. #include <Debouncer_Samples.h>
  6. class PortWrite;
  7. class PortRead;
  8. /* Row_IOE is a row connected to an Input/Output Expander.
  9. Configuration and Instantiation instructions are in keybrd/src/Row_IOE.h
  10. */
  11. class Row_IOE : public Row
  12. {
  13. private:
  14. Scanner_Port scanner;
  15. Debouncer_Samples debouncer;
  16. const uint8_t readPinCount; //number of read pins
  17. public:
  18. Row_IOE(PortWrite& refPortWrite, const uint8_t strobePin,
  19. PortRead& refPortRead, const uint8_t readPinCount, Key *const ptrsKeys[])
  20. : Row(ptrsKeys), scanner(refPortWrite, strobePin, refPortRead),
  21. readPinCount(readPinCount) { }
  22. void process();
  23. };
  24. #endif