keybrd library is an open source library for creating custom-keyboard firmware.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

config_keybrd.h 1.1KB

123456789101112131415161718192021222324252627
  1. #ifndef CONFIG_KEYBRD_H
  2. #define CONFIG_KEYBRD_H
  3. #include <inttypes.h>
  4. /* size of read_pins_t depends on the maximum number of pins scanned by RowScanner.
  5. By default, read_pins_t is set to the largest type.
  6. If your 8-bit AVR (Teensy 2) is running low on memory, using a smaller type saves SRAM.
  7. Using smaller types on a 32-bit uC (Teensy LC) would accomplish nothing.
  8. */
  9. /* Use a read_pins_t size that covers all read pins of all Scanner objects i.e.
  10. For Scanner_uC: read_pins_t bits >= Scanner_uC::readPinCount
  11. For Scanner_ShiftRegsPISO: read_pins_t bits >= Scanner_ShiftRegsPISO::byte_count * 8
  12. (For Scanner_IOE: I/O expanders are assumed to have 8 bits per port or less)
  13. */
  14. //typedef uint8_t read_pins_t;
  15. //typedef uint16_t read_pins_t;
  16. typedef uint32_t read_pins_t;
  17. /* SAMPLE_COUNT_MACRO is used in Debouncer_Samples.h
  18. SAMPLE_COUNT_MACRO = 4 is very reliable for a keyboard.
  19. Split keyboards with a long connecting wire or in environment with
  20. strong electromagnetic interference (EMI) may need a larger SAMPLE_COUNT_MACRO for reliability.
  21. */
  22. #define SAMPLE_COUNT_MACRO 4 //number of consecutive equal bits needed to change a debounced bit
  23. #endif