config.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* Copyright 2020 MudkipMao
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xA13B // Hexidecimal A13B will be Jacky's vendor ID
  20. #define PRODUCT_ID 0x0008 // 8 for S7++
  21. #define DEVICE_VER 0x0002
  22. #define MANUFACTURER Jacky
  23. #define PRODUCT Jacky S7 Elephant Rev 2
  24. /* Don't remove this without also removing LTO_ENABLE=yes in rules.mk */
  25. #define NO_ACTION_MACRO
  26. #define NO_ACTION_FUNCTION
  27. /* key matrix size */
  28. #define MATRIX_ROWS 5
  29. #define MATRIX_COLS 16
  30. /*
  31. * Keyboard Matrix Assignments
  32. *
  33. * Change this to how you wired your keyboard
  34. * COLS: AVR pins used for columns, left to right
  35. * ROWS: AVR pins used for rows, top to bottom
  36. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  37. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  38. *
  39. *
  40. * 0 1 2 3 4 5 6 7 8 9 A B C D E F */
  41. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
  42. #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, F7, F6, F5, F4, F1, F0, E6 }
  43. /* Setting the matrix value of top left key for bootmagic lite */
  44. #define BOOTMAGIC_LITE_ROW 0
  45. #define BOOTMAGIC_LITE_COLUMN 15
  46. #define DIODE_DIRECTION ROW2COL
  47. #define BACKLIGHT_PIN B6
  48. // #define BACKLIGHT_BREATHING
  49. #define BACKLIGHT_LEVELS 15
  50. #define RGB_DI_PIN E2
  51. #ifdef RGB_DI_PIN
  52. #define RGBLIGHT_ANIMATIONS
  53. #define RGBLED_NUM 2
  54. #define RGBLIGHT_HUE_STEP 8
  55. #define RGBLIGHT_SAT_STEP 8
  56. #define RGBLIGHT_VAL_STEP 8
  57. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  58. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  59. #endif // RGB_DI_PIN
  60. /* Set 0 if debouncing isn't needed */
  61. #define DEBOUNCE 5
  62. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  63. #define LOCKING_SUPPORT_ENABLE
  64. /* Locking resynchronize hack */
  65. #define LOCKING_RESYNC_ENABLE