config.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0x7983
  5. #define PRODUCT_ID 0x0512
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER Keycapsss
  8. #define PRODUCT O4L:5x12
  9. /* key matrix size */
  10. #define MATRIX_ROWS 5
  11. #define MATRIX_COLS 12
  12. /*
  13. * Keyboard Matrix Assignments
  14. *
  15. * Change this to how you wired your keyboard
  16. * COLS: AVR pins used for columns, left to right
  17. * ROWS: AVR pins used for rows, top to bottom
  18. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  19. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  20. *
  21. */
  22. #define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 }
  23. #define MATRIX_COL_PINS { B5, B4, E6, D7, C6, D4, D0, D1, D2, F6, F5, F4 }
  24. #define UNUSED_PINS
  25. /* COL2ROW, ROW2COL */
  26. #define DIODE_DIRECTION COL2ROW
  27. //#define BACKLIGHT_PIN B7
  28. //#define BACKLIGHT_LEVELS 3
  29. //#define BACKLIGHT_BREATHING
  30. #define RGB_DI_PIN D3
  31. #ifdef RGB_DI_PIN
  32. # define RGBLED_NUM 12
  33. # define RGBLIGHT_HUE_STEP 4
  34. # define RGBLIGHT_SAT_STEP 4
  35. # define RGBLIGHT_VAL_STEP 4
  36. //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  37. //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  38. /*== all animations enable ==*/
  39. # define RGBLIGHT_ANIMATIONS
  40. /*== or choose animations ==*/
  41. //# define RGBLIGHT_EFFECT_BREATHING
  42. //# define RGBLIGHT_EFFECT_RAINBOW_MOOD
  43. //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  44. //# define RGBLIGHT_EFFECT_SNAKE
  45. //# define RGBLIGHT_EFFECT_KNIGHT
  46. //# define RGBLIGHT_EFFECT_CHRISTMAS
  47. //# define RGBLIGHT_EFFECT_STATIC_GRADIENT
  48. //# define RGBLIGHT_EFFECT_RGB_TEST
  49. //# define RGBLIGHT_EFFECT_ALTERNATING
  50. /*== customize breathing effect ==*/
  51. /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
  52. //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
  53. /*==== use exp() and sin() ====*/
  54. //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
  55. //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  56. #endif
  57. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  58. #define DEBOUNCE 5
  59. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  60. //#define MATRIX_HAS_GHOST
  61. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  62. #define LOCKING_SUPPORT_ENABLE
  63. /* Locking resynchronize hack */
  64. #define LOCKING_RESYNC_ENABLE
  65. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  66. * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
  67. */
  68. //#define GRAVE_ESC_CTRL_OVERRIDE
  69. /*
  70. * Force NKRO
  71. *
  72. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  73. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  74. * makefile for this to work.)
  75. *
  76. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  77. * until the next keyboard reset.
  78. *
  79. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  80. * fully operational during normal computer usage.
  81. *
  82. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  83. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  84. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  85. * power-up.
  86. *
  87. */
  88. //#define FORCE_NKRO
  89. /*
  90. * Feature disable options
  91. * These options are also useful to firmware size reduction.
  92. */
  93. /* disable debug print */
  94. //#define NO_DEBUG
  95. /* disable print */
  96. //#define NO_PRINT
  97. /* disable action features */
  98. //#define NO_ACTION_LAYER
  99. //#define NO_ACTION_TAPPING
  100. //#define NO_ACTION_ONESHOT
  101. /* disable these deprecated features by default */
  102. #define NO_ACTION_MACRO
  103. #define NO_ACTION_FUNCTION
  104. /* Bootmagic Lite key configuration */
  105. //#define BOOTMAGIC_LITE_ROW 0
  106. //#define BOOTMAGIC_LITE_COLUMN 0