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.

88 lines
2.3 KiB

  1. /**
  2. * config.h
  3. *
  4. */
  5. #pragma once
  6. #include "config_common.h"
  7. /* USB Device descriptor parameter */
  8. #define VENDOR_ID 0x60BE
  9. #define PRODUCT_ID 0x00BE
  10. #define DEVICE_VER 0x0001
  11. #define MANUFACTURER astro
  12. #define PRODUCT Dumplings
  13. #define DESCRIPTION 60% rgb keyboard with ble extension
  14. #define LANDING_PAGE yulei.github.io/qmk_webusb_tool/60_wkl.json
  15. /* key matrix size */
  16. #define MATRIX_ROWS 5
  17. #define MATRIX_COLS 14
  18. #define UNUSED_PINS
  19. #define DIODE_DIRECTION COL2ROW
  20. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  21. #define DEBOUNCE 5
  22. /*
  23. * Feature disable options
  24. * These options are also useful to firmware size reduction.
  25. */
  26. /* disable debug print */
  27. //#define NO_DEBUG
  28. /* disable print */
  29. //#define NO_PRINT
  30. /* disable action features */
  31. //#define NO_ACTION_LAYER
  32. //#define NO_ACTION_TAPPING
  33. //#define NO_ACTION_ONESHOT
  34. //#define NO_ACTION_MACRO
  35. //#define NO_ACTION_FUNCTION
  36. //rgb light setting
  37. #define RGBLED_NUM 18
  38. #define RGB_DI_PIN D7
  39. #define RGBLIGHT_ANIMATIONS
  40. #define RGBLIGHT_HUE_STEP 8
  41. #define RGBLIGHT_SAT_STEP 8
  42. #define RGBLIGHT_VAL_STEP 8
  43. //rgb matrix setting
  44. #define DRIVER_ADDR_1 0b1110100
  45. #define DRIVER_ADDR_2 0b1110111
  46. #define DRIVER_COUNT 2
  47. #define DRIVER_1_LED_TOTAL 36
  48. #define DRIVER_2_LED_TOTAL 36
  49. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL
  50. // tapping setting
  51. //#define TAPPING_TERM 200
  52. //#define RETRO_TAPPING
  53. //#define PERMISSIVE_HOLD
  54. #if defined(WEBUSB_ENABLE) || defined(RAW_ENABLE)
  55. #define WEBUSB_KEYCOUNT 61
  56. #define WEBUSB_LAYERCOUNT 2
  57. //VIA
  58. #define DYNAMIC_KEYMAP_LAYER_COUNT 2
  59. // EEPROM usage
  60. // TODO: refactor with new user EEPROM code (coming soon)
  61. #define EEPROM_MAGIC 0x451F
  62. #define EEPROM_MAGIC_ADDR 34
  63. // Bump this every time we change what we store
  64. // This will automatically reset the EEPROM with defaults
  65. // and avoid loading invalid data from the EEPROM
  66. #define EEPROM_VERSION 0x08
  67. #define EEPROM_VERSION_ADDR 36
  68. // Dynamic keymap starts after EEPROM version
  69. #define DYNAMIC_KEYMAP_EEPROM_ADDR 37
  70. // Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
  71. #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 637
  72. #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 391 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
  73. #define DYNAMIC_KEYMAP_MACRO_COUNT 16
  74. #endif