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.

55 lines
1.3 KiB

  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0x594d // "YM"
  5. #define PRODUCT_ID 0x4D96 // "M" + 96
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER YMDK
  8. #define PRODUCT Melody96
  9. /* key matrix size */
  10. #define MATRIX_ROWS 12
  11. #define MATRIX_COLS 9
  12. /* key matrix pins */
  13. #define MATRIX_ROW_PINS { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 }
  14. #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
  15. #define UNUSED_PINS
  16. /* COL2ROW or ROW2COL */
  17. #define DIODE_DIRECTION ROW2COL
  18. #define LED_NUM_LOCK_PIN C6
  19. #define LED_CAPS_LOCK_PIN C7
  20. #define LED_SCROLL_LOCK_PIN B5
  21. #define LED_PIN_ON_STATE 0
  22. /* number of backlight levels */
  23. #define BACKLIGHT_PIN B6
  24. #ifdef BACKLIGHT_PIN
  25. #define BACKLIGHT_LEVELS 5
  26. #endif
  27. /* Set location for BootMagic key*/
  28. #define BOOTMAGIC_LITE_ROW 5
  29. #define BOOTMAGIC_LITE_COLUMN 0
  30. /* Set 0 if debouncing isn't needed */
  31. #define DEBOUNCE 5
  32. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  33. #define LOCKING_SUPPORT_ENABLE
  34. /* Locking resynchronize hack */
  35. #define LOCKING_RESYNC_ENABLE
  36. #define RGB_DI_PIN E2
  37. #ifdef RGB_DI_PIN
  38. #define RGBLIGHT_ANIMATIONS
  39. #define RGBLED_NUM 18
  40. #define RGBLIGHT_HUE_STEP 8
  41. #define RGBLIGHT_SAT_STEP 8
  42. #define RGBLIGHT_VAL_STEP 8
  43. #endif