config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 Andrew Dunai
  8. #define PRODUCT D48
  9. /* Key matrix size */
  10. #define MATRIX_ROWS 5
  11. #define MATRIX_COLS 12
  12. /* Key matrix pins */
  13. #define MATRIX_ROW_PINS { B8, B9, B1, B2, B4 }
  14. #define MATRIX_COL_PINS { A2, B0, A7, A8, A13, A14, B12, B11, B10, B15, B14, B13 }
  15. #define UNUSED_PINS
  16. /* COL2ROW or ROW2COL */
  17. #define DIODE_DIRECTION COL2ROW
  18. /* Set 0 if debouncing isn't needed */
  19. // #define DEBOUNCE 5
  20. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  21. // #define LOCKING_SUPPORT_ENABLE
  22. /* Locking resynchronize hack */
  23. // #define LOCKING_RESYNC_ENABLE
  24. /* prevent stuck modifiers */
  25. // #define PREVENT_STUCK_MODIFIERS
  26. /* RGB Underglow */
  27. #ifdef RGBLIGHT_ENABLE
  28. #define RGB_DI_PIN A15
  29. #define RGBLED_NUM 14
  30. #define RGBLIGHT_HUE_STEP 8
  31. #define RGBLIGHT_SAT_STEP 8
  32. #define RGBLIGHT_VAL_STEP 8
  33. #define RGBLIGHT_ANIMATIONS
  34. #endif
  35. /* Audio */
  36. #ifdef AUDIO_ENABLE
  37. #define STARTUP_SONG_DOOM SONG(E1M1_DOOM)
  38. #define STARTUP_SONG SONG( \
  39. Q__NOTE(_E6), \
  40. Q__NOTE(_A6), \
  41. H__NOTE(_E7), \
  42. Q__NOTE(_E6), \
  43. Q__NOTE(_E7) \
  44. )
  45. #endif
  46. /* Encoders */
  47. #define ENCODERS_PAD_A { B3, A0 }
  48. #define ENCODERS_PAD_B { A6, A1 }
  49. /* #define ENCODER_RESOLUTION 4 */
  50. /* OLED */
  51. #define OLED_FONT_H "glcdfont_d48.c"
  52. #define OLED_TIMEOUT 0
  53. // #define OLED_SCROLL_TIMEOUT 1000
  54. /* Taps (encoder tap_code) */
  55. #define TAP_CODE_DELAY 10
  56. /* I2C */
  57. //#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2
  58. //#define PAL_MODE_STM32_ALTERNATE_OPENDRAIN (PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN)
  59. /* DS1307 */
  60. #define DS1307_ADDR (0x68 << 1)