keybrd library is an open source library for creating custom-keyboard firmware.
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.
123456789101112131415161718192021222324 |
- #ifndef ROW_H
- #define ROW_H
-
- #include <Arduino.h>
- #include <inttypes.h>
- #include <config_keybrd.h>
- #include <Key.h>
-
- /* Row is an abstract base class.
- */
- class Row
- {
- private:
- Key *const *const ptrsKeys; //array of Key pointers
- virtual void keyWasPressed();
- protected:
- read_pins_t debounced; //bitwise state of keys after debouncing
- // 1 means pressed, 0 means released
- void send(const uint8_t readPinCount, const read_pins_t debouncedChanged);
- public:
- Row(Key* const ptrsKeys[]) : ptrsKeys(ptrsKeys), debounced(0) { }
- virtual void process()=0;
- };
- #endif
|