config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. Copyright 2020 coarse <coarsekeys@gmail.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0x434B // CK for Coarse Keys
  17. #define PRODUCT_ID 0x1401 // '20 - 001
  18. #define DEVICE_VER 0x0001 // Revision prototype
  19. #define MANUFACTURER Coarse
  20. #define PRODUCT Cordillera
  21. /* key matrix size */
  22. #define MATRIX_ROWS 5
  23. #define MATRIX_COLS 16
  24. #define MATRIX_ROW_PINS { A13, B9, F1, A10, A9 }
  25. #define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 }
  26. #define DIODE_DIRECTION COL2ROW
  27. #define LED_NUM_LOCK_PIN B0
  28. #define LED_CAPS_LOCK_PIN A1
  29. #define LED_SCROLL_LOCK_PIN A0
  30. #define LED_PIN_ON_STATE 0
  31. #define BACKLIGHT_PIN A8
  32. #define BACKLIGHT_PWM_DRIVER PWMD1
  33. #define BACKLIGHT_PWM_CHANNEL 1
  34. #define BACKLIGHT_PAL_MODE 1
  35. #define BACKLIGHT_LEVELS 6
  36. #define BACKLIGHT_BREATHING
  37. #define BREATHING_PERIOD 6
  38. /* define if matrix has ghost */
  39. //#define MATRIX_HAS_GHOST
  40. /* Set 0 if debouncing isn't needed */
  41. #define DEBOUNCE 5
  42. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  43. #define LOCKING_SUPPORT_ENABLE
  44. /* Locking resynchronize hack */
  45. #define LOCKING_RESYNC_ENABLE
  46. /*
  47. * Feature disable options
  48. * These options are also useful to firmware size reduction.
  49. */
  50. /* disable debug print */
  51. //#define NO_DEBUG
  52. /* disable print */
  53. //#define NO_PRINT
  54. /* disable action features */
  55. //#define NO_ACTION_LAYER
  56. //#define NO_ACTION_TAPPING
  57. //#define NO_ACTION_ONESHOT
  58. //#define NO_ACTION_MACRO
  59. //#define NO_ACTION_FUNCTION