config.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /* key matrix size */
  10. #define MATRIX_ROWS 5
  11. #define MATRIX_COLS 14
  12. /* number of backlight levels */
  13. #define BACKLIGHT_PIN B7
  14. #ifdef BACKLIGHT_PIN
  15. #define BACKLIGHT_LEVELS 6
  16. #endif
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION ROW2COL
  19. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  20. #define DEBOUNCE 5
  21. /* Set power consumption to work with mobile devices */
  22. #define USB_MAX_POWER_CONSUMPTION 100
  23. /* key matrix pins */
  24. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
  25. #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B2, B5, B4, D7, D6, B3 }
  26. #define UNUSED_PINS
  27. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  28. #define LOCKING_SUPPORT_ENABLE
  29. /* Locking resynchronize hack */
  30. #define LOCKING_RESYNC_ENABLE
  31. #define RGB_DI_PIN F7
  32. #ifdef RGB_DI_PIN
  33. #define RGBLIGHT_ANIMATIONS
  34. #define RGBLED_NUM 10
  35. #define RGBLIGHT_HUE_STEP 12
  36. #define RGBLIGHT_SAT_STEP 12
  37. #define RGBLIGHT_VAL_STEP 12
  38. #endif
  39. /* For Production */
  40. #define QMK_ESC_OUTPUT F0 // usually COL
  41. #define QMK_ESC_INPUT D0 // usually ROW