logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (2154B)


  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. #define BUSY_WAIT
  11. #define BUSY_WAIT_INSTRUCTIONS 35 // Increase if two rows are pressed at the same time.
  12. #define GPIO_INPUT_PIN_DELAY 10
  13. /* Touchbar adjustments */
  14. #define TOUCH_DEADZONE 50 // width of a "button", wider inputs will be interpreted as a swipe
  15. #define TOUCH_TERM 350 // time of a "button" touch, longer inputs will be a swipe
  16. #define TOUCH_RESOLUTION 25 // sensitivity of swipes, lower=faster
  17. #define TOUCH_SEGMENTS 3
  18. /* CRC Configuration */
  19. #define CRC8_OPTIMIZE_SPEED
  20. #define CRC8_USE_TABLE
  21. /* Split Keyboard Configuration */
  22. #define SPLIT_USB_DETECT
  23. #define SERIAL_USART_TX_PAL_MODE 7
  24. #define SERIAL_USART_TIMEOUT 5
  25. #define SERIAL_USART_DRIVER SD1
  26. //#define SERIAL_USART_FULL_DUPLEX - Waiting on reunification pr
  27. #if SERIAL_USART_FULL_DUPLEX
  28. #define SERIAL_USART_RX_PIN A10
  29. #define SERIAL_USART_RX_PAL_MODE 7
  30. // Mun connects TX to TX and RX to RX as we were planning on i2c split, so we need pin swap for full duplex
  31. #define SERIAL_USART_PIN_SWAP
  32. #define SERIAL_USART_SPEED (2 * 1024 * 1024)
  33. #else
  34. #define SERIAL_USART_SPEED (1 * 1024 * 1024)
  35. #endif
  36. /* Split Transport Features */
  37. #define SPLIT_TRANSACTION_IDS_KB TOUCH_ENCODER_SYNC, RGB_MENU_SYNC
  38. #define WS2812_PWM_DRIVER PWMD3
  39. #define WS2812_PWM_CHANNEL 2
  40. #define WS2812_PWM_PAL_MODE 2
  41. #define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM3
  42. #define WS2812_PWM_DMA_CHANNEL 3
  43. #define TOUCH_UPDATE_INTERVAL 33
  44. #define OLED_UPDATE_INTERVAL 33
  45. #define OLED_FONT_H "keyboards/rgbkb/common/glcdfont.c"
  46. /* Audio Configuration */
  47. #define AUDIO_PIN A4
  48. #define AUDIO_PIN_ALT A5
  49. #define AUDIO_PIN_ALT_AS_NEGATIVE
  50. #define AUDIO_CLICKY
  51. #define AUDIO_DAC_SAMPLE_WAVEFORM_SQUARE
  52. #define AUDIO_DAC_OFF_VALUE 0