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.

50 lines
1.2 KiB

  1. /**
  2. * config.h
  3. *
  4. */
  5. #pragma once
  6. /* USB Device descriptor parameter */
  7. #define VENDOR_ID 0x4D58 // MX
  8. #define PRODUCT_ID 0x0065 // noah 65
  9. #define DEVICE_VER 0x0001
  10. #define MANUFACTURER matrix
  11. #define PRODUCT NOAH
  12. /* key matrix size */
  13. #define MATRIX_ROWS 5
  14. #define MATRIX_COLS 15
  15. #define MATRIX_ROW_PINS { B0, A1, C14, C13, A0}
  16. #define MATRIX_COL_PINS { C15, B10, B7, B6, B5, B4, A15, A10, A9, A8, B15, B14, B13, B12, B2}
  17. #define UNUSED_PINS
  18. #define DIODE_DIRECTION COL2ROW
  19. #define DEBOUNCE 5
  20. // i2c setting
  21. #define USE_I2CV1
  22. #define I2C1_SCL 8
  23. #define I2C1_SDA 9
  24. #define I2C1_CLOCK_SPEED 400000
  25. #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2
  26. #define PAL_MODE_STM32_ALTERNATE_OPENDRAIN (PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN)
  27. // rgb matrix setting
  28. #define DRIVER_ADDR_1 0b1110100
  29. #define DRIVER_ADDR_2 0b1110110
  30. #define DRIVER_COUNT 2
  31. #define DRIVER_1_LED_TOTAL 36
  32. #define DRIVER_2_LED_TOTAL 36
  33. #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  34. /* indicator rgb */
  35. #define RGBLED_NUM 7
  36. #define RGB_DI_PIN B1
  37. #define RGBLIGHT_ANIMATIONS
  38. // tapping setting
  39. //#define TAPPING_TERM 200
  40. //#define RETRO_TAPPING
  41. //#define PERMISSIVE_HOLD