config.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 matrix pins */
  27. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
  28. #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B2, B5, B4, D7, D6, B3 }
  29. #define UNUSED_PINS
  30. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  31. #define LOCKING_SUPPORT_ENABLE
  32. /* Locking resynchronize hack */
  33. #define LOCKING_RESYNC_ENABLE
  34. #define RGB_DI_PIN F7
  35. #ifdef RGB_DI_PIN
  36. #define RGBLIGHT_ANIMATIONS
  37. #define RGBLED_NUM 10
  38. #define RGBLIGHT_HUE_STEP 12
  39. #define RGBLIGHT_SAT_STEP 12
  40. #define RGBLIGHT_VAL_STEP 12
  41. #endif
  42. /* For Production */
  43. #define QMK_ESC_OUTPUT F0 // usually COL
  44. #define QMK_ESC_INPUT D0 // usually ROW
  45. #endif