config.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef STAPELBERG_CONFIG_H
  2. #define STAPELBERG_CONFIG_H
  3. #include "../config.h"
  4. /* USB Device descriptor parameter */
  5. #define PRODUCT_ID 0x6060
  6. #define DEVICE_VER 0x0002
  7. /* key matrix size */
  8. #define MATRIX_ROWS 15
  9. #define MATRIX_COLS 7
  10. /*
  11. * Keyboard Matrix Assignments
  12. *
  13. * Change this to how you wired your keyboard
  14. * COLS: AVR pins used for columns, left to right
  15. * ROWS: AVR pins used for rows, top to bottom
  16. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  17. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  18. *
  19. */
  20. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5, D6, D7, C0, C1, C2, C3, C4, C5, C6 }
  21. #define MATRIX_COL_PINS { B0, B1, B2, B3, B4, B5, B6 }
  22. #define UNUSED_PINS
  23. /* COL2ROW or ROW2COL */
  24. #define DIODE_DIRECTION COL2ROW
  25. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  26. #define DEBOUNCING_DELAY 5
  27. /* don't know if this should be defined at the board or top level. Assuming board
  28. #define MOUSEKEY_DELAY 100
  29. #define MOUSEKEY_INTERVAL 20
  30. #define MOUSEKEY_MAX_SPEED 3
  31. #define MOUSEKEY_TIME_TO_MAX 10
  32. */
  33. #define IGNORE_MOD_TAP_INTERRUPT
  34. /* key combination for magic key command */
  35. #define IS_COMMAND() ( \
  36. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  37. )
  38. #endif