logo

qmk_firmware

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

config.h (1673B)


  1. // Copyright 2024 splitkb.com (support@splitkb.com)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. // Make it easier to enter the bootloader
  5. #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
  6. #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U
  7. // I2C0, onboard SSD1306 socket and I2C to Myriad module
  8. #define I2C_DRIVER I2CD0
  9. #define I2C1_SDA_PIN GP0
  10. #define I2C1_SCL_PIN GP1
  11. // We need to slow down the I2C clock because the default of 400.000
  12. // fails to communicate with Zetta ZD24C02A EEPROM on a Myriad card.
  13. #define I2C1_CLOCK_SPEED 100000
  14. // SPI1, both for onboard matrix data and SPI to Myriad module
  15. #define SPI_DRIVER SPID1
  16. #define SPI_SCK_PIN GP10
  17. #define SPI_MOSI_PIN GP11
  18. #define SPI_MISO_PIN GP12
  19. // UART1, communication between the two halves
  20. #define SERIAL_USART_FULL_DUPLEX
  21. #define SERIAL_USART_DRIVER SIOD1
  22. #define SERIAL_USART_TX_PIN GP20
  23. #define SERIAL_USART_RX_PIN GP21
  24. // Potential onboard speaker, not populated by default
  25. #define AUDIO_PIN GP23
  26. // Transmitting pointing device status to the master side
  27. #define SPLIT_POINTING_ENABLE
  28. #define POINTING_DEVICE_COMBINED
  29. // VBUS detection
  30. #define USB_VBUS_PIN GP25
  31. // Define matrix size
  32. #define MATRIX_COLS 8
  33. #define MATRIX_ROWS 12
  34. // Encoders
  35. // 3 onboard, 1 for Myriad
  36. #define NUM_ENCODERS_LEFT 4
  37. #define NUM_ENCODERS_RIGHT 4
  38. #define ENCODER_RESOLUTION 2
  39. // OLED display
  40. #define OLED_DISPLAY_128X64
  41. // If someone has only one OLED display
  42. // and that display was on the slave side.
  43. // It wouldn't work at all. This fixes that
  44. // including some code in rev1.c but makes
  45. // it so the timeout's are not synced
  46. // between halves.
  47. #undef SPLIT_OLED_ENABLE
  48. #define OLED_TIMEOUT 0