config.h 1.4 KB

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