config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2022 Chris Hoage (@chrishoage)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. // Auto mouse layer makes use of the Cirque touchdown indicator which requires
  5. // the touch sensor to be on the master side
  6. #define MASTER_RIGHT
  7. // Sync later, led, and mod state for use on OLED on slave side
  8. #define SPLIT_LAYER_STATE_ENABLE
  9. #define SPLIT_LED_STATE_ENABLE
  10. #define SPLIT_MODS_ENABLE
  11. // Transport dpi and enc mode for display on oled
  12. #define SPLIT_TRANSACTION_IDS_KB RPC_ID_KB_CONFIG_SYNC
  13. #ifdef POINTING_DEVICE_ENABLE
  14. # define POINTING_DEVICE_AUTO_MOUSE_ENABLE
  15. // Absolute mode allows for z/touchdown triggering of auto mouse layer with out
  16. // moving finger
  17. # define CIRQUE_PINNACLE_POSITION_MODE CIRQUE_PINNACLE_ABSOLUTE_MODE
  18. # define POINTING_DEVICE_GESTURES_CURSOR_GLIDE_ENABLE
  19. #endif // POINTING_DEVICE_ENABLE
  20. #define I2C_DRIVER I2CD0
  21. #define I2C1_SDA_PIN GP16
  22. #define I2C1_SCL_PIN GP17
  23. #ifdef OLED_ENABLE
  24. # define OLED_DISPLAY_128X64
  25. # define OLED_FONT_H "./lib/glcdfont.c"
  26. #endif // OLED_ENABLE
  27. #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
  28. #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP17
  29. #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U