config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 0x0001
  7. #define MANUFACTURER Flehrad
  8. #define PRODUCT Snagpad
  9. #define DESCRIPTION A Pro Micro-Powered 5x4 macropad/numpad
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 4
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
  15. #define MATRIX_COL_PINS { F4, F5, F6, F7 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION COL2ROW
  19. /* number of backlight levels */
  20. #ifdef BACKLIGHT_PIN
  21. #define BACKLIGHT_LEVELS 3
  22. #endif
  23. /* Set 0 if debouncing isn't needed */
  24. #define DEBOUNCING_DELAY 5
  25. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  26. #define LOCKING_SUPPORT_ENABLE
  27. /* Locking resynchronize hack */
  28. #define LOCKING_RESYNC_ENABLE
  29. /* key combination for command */
  30. #define IS_COMMAND() ( \
  31. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  32. )
  33. /* prevent stuck modifiers */
  34. //#define STRICT_LAYER_RELEASE
  35. #ifdef RGB_DI_PIN
  36. #define RGBLIGHT_ANIMATIONS
  37. #define RGBLED_NUM 0
  38. #define RGBLIGHT_HUE_STEP 8
  39. #define RGBLIGHT_SAT_STEP 8
  40. #define RGBLIGHT_VAL_STEP 8
  41. #endif