config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x0A0C
  6. #define DEVICE_VER 0x1001
  7. #define MANUFACTURER di0ib
  8. #define PRODUCT Luddite
  9. #define DESCRIPTION Luddite Keyboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 8
  12. #define MATRIX_COLS 8
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { D3, D2, D1, D0, D4, C6, D7, E6 }
  15. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6 }
  16. #define UNUSED_PINS
  17. /* number of backlight levels */
  18. #define BACKLIGHT_PIN B5
  19. #ifdef BACKLIGHT_PIN
  20. #define BACKLIGHT_LEVELS 4
  21. #endif
  22. /* Set 0 if debouncing isn't needed */
  23. #define DEBOUNCING_DELAY 5
  24. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  25. #define LOCKING_SUPPORT_ENABLE
  26. /* Locking resynchronize hack */
  27. #define LOCKING_RESYNC_ENABLE
  28. /* key combination for command */
  29. #define IS_COMMAND() ( \
  30. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  31. )
  32. /* ws2812 RGB LED */
  33. #define RGB_DI_PIN B4
  34. #define RGBLIGHT_ANIMATIONS
  35. #define RGBLED_NUM 8 // Number of LEDs
  36. // #define RGBLIGHT_HUE_STEP 10
  37. // #define RGBLIGHT_SAT_STEP 17
  38. // #define RGBLIGHT_VAL_STEP 17