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

12345678910111213141516171819202122232425262728293031
  1. #ifndef ROW_H
  2. #define ROW_H
  3. #include <RowBase.h>
  4. #include <RowScanner_BitManipulation.h>
  5. #include <Debouncer_4Samples.h>
  6. /*
  7. Configuration
  8. -------------
  9. define and initilize DELAY_MICROSECONDS in sketch.
  10. const unsigned int RowBase::DELAY_MICROSECONDS = 0;
  11. Instantiation
  12. -------------
  13. todo - see Row_DH
  14. */
  15. class Row : public RowBase
  16. {
  17. private:
  18. RowScanner_BitManipulation scanner;
  19. Debouncer_4Samples debouncer;
  20. public:
  21. Row( RowPort &refRowPort, const uint8_t rowPin,
  22. ColPort *const ptrsColPorts[], const uint8_t colPortCount, Key *const ptrsKeys[])
  23. : RowBase(ptrsKeys)
  24. , RowScanner_BitManipulation scanner(refRowPort, rowPin, ptrsColPorts, colPortCount)
  25. { }
  26. virtual void process(const bool activeHigh);
  27. };
  28. #endif