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.

Debouncer_Not.h 638B

123456789101112131415161718192021
  1. #ifndef DEBOUNCER_NOT_H
  2. #define DEBOUNCER_NOT_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include "config_keybrd.h"
  6. #include "DebouncerInterface.h"
  7. /* Debouncer_Not does not debounce.
  8. debounce() returns raw signal, no debouncing is performed.
  9. A keyboard does not need a debouncing if one of the following is true:
  10. * keypad has hardware debouncers
  11. * poling I2C makes scan rate slower than debounce time
  12. * optic switches are used (because they don't bounce)
  13. */
  14. class Debouncer_Not : public DebouncerInterface
  15. {
  16. public:
  17. virtual read_pins_t debounce(const read_pins_t rawSignal, read_pins_t& debounced);
  18. };
  19. #endif