123456789101112131415161718192021222324252627 |
- #ifndef CONFIG_KEYBRD_H
- #define CONFIG_KEYBRD_H
- #include <inttypes.h>
-
- /* size of read_pins_t depends on the maximum number of pins scanned by RowScanner.
- By default, read_pins_t is set to the largest type.
- If your 8-bit AVR (Teensy 2) is running low on memory, using a smaller type saves SRAM.
- Using smaller types on a 32-bit uC (Teensy LC) would accomplish nothing.
- */
-
- /* Use a read_pins_t size that covers all read pins of all RowScanner objects i.e.
- For Scanner_uC, Scanner_uC::readPinCount
- For Scanner_ShiftRegs74HC165, Scanner_ShiftRegs74HC165::readPinCount
- For Scanner_Port, cover the last 1 bit in Scanner_Port::strobePin
- */
- //typedef uint8_t read_pins_t;
- //typedef uint16_t read_pins_t;
- typedef uint32_t read_pins_t;
-
- /* SAMPLE_COUNT_MACRO is used in Debouncer_Samples.h
- SAMPLE_COUNT_MACRO = 4 is very reliable for a keyboard.
- Split keyboards with a long connecting wire or in environment with
- strong electromagnetic interference (EMI) may need a larger SAMPLE_COUNT_MACRO for reliability.
- */
- #define SAMPLE_COUNT_MACRO 4 //number of consecutive equal bits needed to change a debounced bit
-
- #endif
|