config.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x6060
  7. #define DEVICE_VER 0x0001
  8. #define MANUFACTURER Tokyo Keyboard
  9. #define PRODUCT tokyo60
  10. #define DESCRIPTION q.m.k. keyboard firmware for tokyo60
  11. /* key matrix size */
  12. #define MATRIX_ROWS 5
  13. #define MATRIX_COLS 14
  14. /* number of backlight levels */
  15. #define BACKLIGHT_PIN B7
  16. #ifdef BACKLIGHT_PIN
  17. #define BACKLIGHT_LEVELS 6
  18. //#define BACKLIGHT_ON_STATE 1
  19. #endif
  20. /* COL2ROW or ROW2COL */
  21. #define DIODE_DIRECTION ROW2COL
  22. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  23. #define DEBOUNCING_DELAY 5
  24. /* Set power consumption to work with mobile devices */
  25. #define USB_MAX_POWER_CONSUMPTION 100
  26. /* key combination for command */
  27. #define IS_COMMAND() ( \
  28. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  29. )
  30. /* key matrix pins */
  31. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
  32. #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B2, B5, B4, D7, D6, B3 }
  33. #define UNUSED_PINS
  34. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  35. #define LOCKING_SUPPORT_ENABLE
  36. /* Locking resynchronize hack */
  37. #define LOCKING_RESYNC_ENABLE
  38. #define RGB_DI_PIN F7
  39. #ifdef RGB_DI_PIN
  40. #define RGBLIGHT_ANIMATIONS
  41. #define RGBLED_NUM 10
  42. #define RGBLIGHT_HUE_STEP 12
  43. #define RGBLIGHT_SAT_STEP 12
  44. #define RGBLIGHT_VAL_STEP 12
  45. #endif
  46. /* For Production */
  47. #define QMK_ESC_OUTPUT F0 // usually COL
  48. #define QMK_ESC_INPUT D0 // usually ROW
  49. #endif