config.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x6060
  6. #define DEVICE_VER 0x0003
  7. #define MANUFACTURER SATAN
  8. #define PRODUCT GH60
  9. #define DESCRIPTION QMK keyboard firmware for Satan GH60 with WS2812 support
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 14
  13. // ROWS: Top to bottom, COLS: Left to right
  14. #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
  15. #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3 }
  16. #define UNUSED_PINS
  17. #define BACKLIGHT_PIN B6
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION COL2ROW
  20. /* define if matrix has ghost */
  21. //#define MATRIX_HAS_GHOST
  22. /* Set 0 if debouncing isn't needed */
  23. #define DEBOUNCING_DELAY 5
  24. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  25. //#define LOCKING_SUPPORT_ENABLE
  26. /* Locking resynchronize hack */
  27. //#define LOCKING_RESYNC_ENABLE
  28. /* key combination for command
  29. #define IS_COMMAND() ( \
  30. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  31. )
  32. */
  33. /* Backlight configuration
  34. */
  35. #define BACKLIGHT_LEVELS 8
  36. /* Underlight configuration
  37. */
  38. #define RGB_DI_PIN E2
  39. #define RGBLIGHT_ANIMATIONS
  40. #define RGBLED_NUM 8 // Number of LEDs
  41. #define RGBLIGHT_HUE_STEP 10
  42. #define RGBLIGHT_SAT_STEP 17
  43. #define RGBLIGHT_VAL_STEP 17
  44. /*
  45. * Feature disable options
  46. * These options are also useful to firmware size reduction.
  47. */
  48. /* disable debug print */
  49. //#define NO_DEBUG
  50. /* disable print */
  51. //#define NO_PRINT
  52. /* disable action features */
  53. //#define NO_ACTION_LAYER
  54. //#define NO_ACTION_TAPPING
  55. #define NO_ACTION_ONESHOT
  56. #define NO_ACTION_MACRO
  57. #define NO_ACTION_FUNCTION
  58. #endif
  59. #ifndef CONFIG_USER_H
  60. #define CONFIG_USER_H
  61. #define MOUSEKEY_DELAY 0
  62. #define MOUSEKEY_INTERVAL 1
  63. #define MOUSEKEY_MAX_SPEED 4
  64. #define MOUSEKEY_TIME_TO_MAX 77
  65. #define MOUSEKEY_WHEEL_MAX_SPEED 1
  66. #define MOUSEKEY_WHEEL_TIME_TO_MAX 255
  67. // only change
  68. #undef RGB_DI_PIN
  69. #define RGB_DI_PIN B2