You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.2 KiB

  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xC1ED
  5. #define PRODUCT_ID 0x2390
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER Clueboard
  8. #define PRODUCT Clueboard 66% rev4
  9. #define DESCRIPTION QMK keyboard firmware for Clueboard
  10. /* Address for jumping to bootloader on STM32 chips. */
  11. /* It is chip dependent, the correct number can be looked up here:
  12. * http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
  13. */
  14. #define STM32_BOOTLOADER_ADDRESS 0x1FFFD800
  15. /* key matrix size */
  16. #define MATRIX_ROWS 10
  17. #define MATRIX_COLS 8
  18. /* ROWS: Top to bottom, COLS: Left to right
  19. */
  20. #define MATRIX_ROW_PINS { B11, A6, A3, A2, A1, B7, B6, C15, C14, C13 }
  21. #define MATRIX_COL_PINS { B10, B2, B1, B0, A7, B4, B3, B5 }
  22. #define UNUSED_PINS { B15, B14, B13, B12, B9, B8, A15, A10, A9, A8 }
  23. /* COL2ROW or ROW2COL */
  24. #define DIODE_DIRECTION COL2ROW
  25. /* Set 0 if debouncing isn't needed */
  26. #define DEBOUNCE 5
  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. /*
  32. * Feature disable options
  33. * These options are also useful to firmware size reduction.
  34. */
  35. /* disable debug print */
  36. //#define NO_DEBUG
  37. /* disable print */
  38. //#define NO_PRINT
  39. /* disable action features */
  40. //#define NO_ACTION_LAYER
  41. //#define NO_ACTION_TAPPING
  42. //#define NO_ACTION_ONESHOT
  43. //#define NO_ACTION_MACRO
  44. //#define NO_ACTION_FUNCTION
  45. /* Backlight configuration
  46. */
  47. #define BACKLIGHT_LEVELS 1
  48. /* Underlight configuration
  49. */
  50. #define RGB_DI_PIN D7
  51. #define RGBLED_NUM 18 // Number of LEDs
  52. #define RGBLIGHT_HUE_STEP 32
  53. #define RGBLIGHT_SAT_STEP 17
  54. #define RGBLIGHT_VAL_STEP 17
  55. #define RGBLIGHT_ANIMATIONS
  56. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  57. #define RGBLIGHT_EFFECT_BREATHE_MAX 200
  58. #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 666*2
  59. #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
  60. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 // How many LEDs wide to light up
  61. #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 2 // The led to start at
  62. #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 5 // How many LEDs to travel
  63. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // How many LEDs wide to light up