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.

106 lines
3.3 KiB

  1. /*
  2. * ----------------------------------------------------------------------------
  3. * "THE BEER-WARE LICENSE" (Revision 42):
  4. * <https://github.com/Legonut> wrote this file. As long as you retain this
  5. * notice you can do whatever you want with this stuff. If we meet some day, and
  6. * you think this stuff is worth it, you can buy me a beer in return. David Rauseo
  7. * ----------------------------------------------------------------------------
  8. */
  9. #pragma once
  10. #include "config_common.h"
  11. /* USB Device descriptor parameter */
  12. #define VENDOR_ID 0x3535
  13. #define PRODUCT_ID 0x3505
  14. #define MANUFACTURER RGBKB
  15. #define PRODUCT Mün
  16. #define USB_POLLING_INTERVAL_MS 1
  17. /* Matrix Configuration - Rows are doubled up */
  18. #define MATRIX_ROWS 14
  19. // B1, A2 reserved for encoder / touch encoder support
  20. #define MATRIX_ROW_PINS { A1, A3, B3, A13, B15, B1, A2 }
  21. #define MATRIX_COLS 7
  22. #define MATRIX_COL_PINS { A0, B11, B0, B10, B12, B2, A8 }
  23. #define MATRIX_IO_DELAY 5
  24. #define BUSY_WAIT
  25. #define BUSY_WAIT_INSTRUCTIONS 35 // Increase if two rows are pressed at the same time.
  26. #define GPIO_INPUT_PIN_DELAY 10
  27. /* Touchbar adjustments */
  28. #define TOUCH_DEADZONE 50 // width of a "button", wider inputs will be interpreted as a swipe
  29. #define TOUCH_TERM 350 // time of a "button" touch, longer inputs will be a swipe
  30. #define TOUCH_RESOLUTION 25 // sensitivity of swipes, lower=faster
  31. /* Encoder Configuration */
  32. #define ENCODERS_PAD_A { B8, B9 }
  33. #define ENCODERS_PAD_B { A14, A15 }
  34. #define TOUCH_SEGMENTS 3
  35. /* COL2ROW or ROW2COL */
  36. #define DIODE_DIRECTION COL2ROW
  37. /* CRC Configuration */
  38. #define CRC8_OPTIMIZE_SPEED
  39. #define CRC8_USE_TABLE
  40. /* Split Keyboard Configuration */
  41. #define EE_HANDS
  42. #define SPLIT_USB_DETECT
  43. // also handles the SERIAL_USART_TX_PIN define
  44. #define SOFT_SERIAL_PIN A9
  45. #define SERIAL_USART_TX_PAL_MODE 7
  46. #define SERIAL_USART_TIMEOUT 5
  47. #define SERIAL_USART_DRIVER SD1
  48. //#define SERIAL_USART_FULL_DUPLEX - Waiting on reunification pr
  49. #if SERIAL_USART_FULL_DUPLEX
  50. #define SERIAL_USART_RX_PIN A10
  51. #define SERIAL_USART_RX_PAL_MODE 7
  52. // Mun connects TX to TX and RX to RX as we were planning on i2c split, so we need pin swap for full duplex
  53. #define SERIAL_USART_PIN_SWAP
  54. #define SERIAL_USART_SPEED (2 * 1024 * 1024)
  55. #else
  56. #define SERIAL_USART_SPEED (1 * 1024 * 1024)
  57. #endif
  58. /* Split Transport Features */
  59. #define SPLIT_TRANSPORT_MIRROR
  60. #define SPLIT_LAYER_STATE_ENABLE
  61. #define SPLIT_LED_STATE_ENABLE
  62. #define SPLIT_TRANSACTION_IDS_KB TOUCH_ENCODER_SYNC, RGB_MENU_SYNC
  63. /* RGB LED Configuration */
  64. #define RGB_DI_PIN B5
  65. #define RGBLED_NUM 98
  66. #define RGBLED_SPLIT { 49, 49 }
  67. #define RGBLIGHT_ANIMATIONS
  68. #define DRIVER_LED_TOTAL RGBLED_NUM
  69. #define RGB_MATRIX_SPLIT RGBLED_SPLIT
  70. #define RGB_MATRIX_CENTER { 128, 34 }
  71. #define RGB_MATRIX_LED_FLUSH_LIMIT 33
  72. #define RGB_MATRIX_LED_PROCESS_LIMIT 10
  73. #define RGB_MATRIX_KEYPRESSES
  74. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  75. #define RGB_DISABLE_WHEN_USB_SUSPENDED
  76. #if RGB_UNLIMITED_POWER
  77. #define RGBLIGHT_LIMIT_VAL 255
  78. #else
  79. #define RGBLIGHT_LIMIT_VAL 127
  80. #endif
  81. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
  82. #define WS2812_PWM_DRIVER PWMD3
  83. #define WS2812_PWM_CHANNEL 2
  84. #define WS2812_PWM_PAL_MODE 2
  85. #define WS2812_DMA_STREAM STM32_DMA1_STREAM3
  86. #define WS2812_DMA_CHANNEL 3
  87. #define TOUCH_UPDATE_INTERVAL 33
  88. #define OLED_UPDATE_INTERVAL 33
  89. #define TAP_CODE_DELAY 5