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.

67 lines
2.0 KiB

  1. /*
  2. Copyright 2020 rate
  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. /*
  16. * Keyboard Matrix Assignments
  17. *
  18. * Change this to how you wired your keyboard
  19. * COLS: AVR pins used for columns, left to right
  20. * ROWS: AVR pins used for rows, top to bottom
  21. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  22. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  23. *
  24. */
  25. #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 }
  26. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D3}
  27. #define UNUSED_PINS
  28. #define USE_I2C
  29. /* COL2ROW, ROW2COL */
  30. #define DIODE_DIRECTION COL2ROW
  31. /* ws2812 RGB LED */
  32. #define RGB_DI_PIN D2
  33. #define RGBLIGHT_SPLIT
  34. #define RGBLED_SPLIT { 1, 1 }
  35. #define RGBLED_NUM 2
  36. #define RGBLIGHT_LAYERS
  37. #define RGBLIGHT_HUE_STEP 10
  38. #define RGBLIGHT_SAT_STEP 17
  39. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  40. #define USB_MAX_POWER_CONSUMPTION 400
  41. #else
  42. #define USB_MAX_POWER_CONSUMPTION 100
  43. #endif
  44. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  45. #define DEBOUNCE 5
  46. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  47. #define LOCKING_SUPPORT_ENABLE
  48. /* Locking resynchronize hack */
  49. #define LOCKING_RESYNC_ENABLE
  50. /* nKey Rollover */
  51. #define FORCE_NKRO
  52. /* disable these deprecated features by default */
  53. #define NO_ACTION_MACRO
  54. #define NO_ACTION_FUNCTION