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.

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