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.

69 lines
2.1 KiB

  1. /**
  2. * Copyright 2021 Charly Delay <charly@codesink.dev> (@0xcharly)
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #if defined(KEYBOARD_bastardkb_charybdis_4x6_blackpill)
  19. # undef MATRIX_COL_PINS
  20. # define MATRIX_COL_PINS \
  21. { B0, B1, B12, B3, B4, B5 }
  22. # define USB_VBUS_PIN B10
  23. # define DEBUG_LED_PIN C13
  24. # define AUDIO_PIN B7
  25. # define AUDIO_PWM_DRIVER PWMD4
  26. # define AUDIO_PWM_CHANNEL 2
  27. # define AUDIO_PWM_PAL_MODE 2
  28. # define AUDIO_INIT_DELAY
  29. # define AUDIO_ENABLE_TONE_MULTIPLEXING
  30. # define AUDIO_TONE_MULTIPLEXING_RATE_DEFAULT 10
  31. # define SERIAL_USART_SPEED (1 * 1024 * 1024)
  32. # undef POINTING_DEVICE_CS_PIN
  33. # define POINTING_DEVICE_CS_PIN A15 // b14
  34. # define PMW33XX_LIFTOFF_DISTANCE 0b1111
  35. # define RGB_MATRIX_LED_FLUSH_LIMIT 33
  36. # define RGB_MATRIX_LED_PROCESS_LIMIT 29
  37. #endif
  38. #undef ROTATIONAL_TRANSFORM_ANGLE
  39. #define ROTATIONAL_TRANSFORM_ANGLE 25
  40. #define POINTING_DEVICE_ROTATION_270
  41. /* RGB Matrix. */
  42. #undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
  43. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
  44. #define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200
  45. #define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 400
  46. #define CHARYBDIS_MINIMUM_SNIPING_DPI 200
  47. #define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 100
  48. #define CHARYBDIS_CONFIG_SYNC
  49. #define BOOTMAGIC_LITE_ROW 0
  50. #define BOOTMAGIC_LITE_COLUMN 0
  51. #define BOOTMAGIC_LITE_ROW_RIGHT 5
  52. #define BOOTMAGIC_LITE_COLUMN_RIGHT 0
  53. #define BOOTMAGIC_LITE_EEPROM_ROW 1
  54. #define BOOTMAGIC_LITE_EEPROM_COLUMN 0
  55. #define BOOTMAGIC_LITE_EEPROM_ROW_RIGHT 1
  56. #define BOOTMAGIC_LITE_EEPROM_COLUMN_RIGHT 0
  57. #define DEBOUNCE 15