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

123456789101112131415161718192021222324252627282930
  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. public:
  19. Row( RowPort &refRowPort, const uint8_t rowPin,
  20. ColPort *const ptrsColPorts[], const uint8_t colPortCount, Key *const ptrsKeys[])
  21. : RowBase(refRowPort, rowPin, ptrsColPorts, colPortCount, ptrsKeys)
  22. {
  23. Debouncer_4Samples debouncer;
  24. }
  25. virtual void process(const bool activeHigh);
  26. };
  27. #endif