config.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #pragma once
  2. #include "config_common.h"
  3. #define KEYBOARD_PCB_REV 11
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x0666
  7. #define DEVICE_VER 0x1337
  8. #define MANUFACTURER Henrik O. Sørensen
  9. #define PRODUCT Omnikey(-ish) Keyboard
  10. #define DESCRIPTION Replacement PCB for Omnikey keyboards
  11. /* key matrix size */
  12. #define MATRIX_ROWS 6
  13. #define MATRIX_COLS 23
  14. /* key matrix pins */
  15. #if KEYBOARD_PCB_REV == 10
  16. #define MATRIX_ROW_PINS { D2, D3, D4, D5, D6, D7 }
  17. #else
  18. #define MATRIX_ROW_PINS { D2, D3, D4, D5, E6, D7 }
  19. #endif
  20. #define MATRIX_COL_PINS { F0, F1, F2, F3, F4, F5, F6, F7, C7, C6, C5, C4, C3, C2, C1, C0, B0, B1, B2, B3, B4, B5, B6 }
  21. #define NUMLOCKLEDPIN E0
  22. #define CAPSLOCKLEDPIN E1
  23. #define SCROLLLOCKLEDPIN B7
  24. /* COL2ROW or ROW2COL */
  25. #define DIODE_DIRECTION ROW2COL
  26. /* number of backlight levels */
  27. #ifdef BACKLIGHT_PIN
  28. #define BACKLIGHT_LEVELS 0
  29. #endif
  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. /* force n-key rollover*/
  37. #define FORCE_NKRO
  38. #ifdef RGB_DI_PIN
  39. #define RGBLIGHT_ANIMATIONS
  40. #define RGBLED_NUM 0
  41. #define RGBLIGHT_HUE_STEP 8
  42. #define RGBLIGHT_SAT_STEP 8
  43. #define RGBLIGHT_VAL_STEP 8
  44. #endif
  45. #define DYNAMIC_MACRO_COUNT 12
  46. #define DYNAMIC_MACRO_SIZE 48
  47. #define DYNAMIC_MACRO_EEPROM_STORAGE
  48. #define DYNAMIC_MACRO_EEPROM_MAGIC_ADDR (uint16_t*)32
  49. #define DYNAMIC_MACRO_EEPROM_BLOCK0_ADDR (uint8_t*)34