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.

70 lines
2.1 KiB

  1. /* Copyright 2021 Joah Nelson (Jels)
  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 paramater */
  19. #define VENDOR_ID 0x006a // Jels (J)
  20. #define PRODUCT_ID 0x0088 // Jels 88
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Jels
  23. #define PRODUCT Jels88
  24. /* Define Matrix size */
  25. #define MATRIX_ROWS 12
  26. #define MATRIX_COLS 9
  27. /*Define Matrix Pins */
  28. #define MATRIX_ROW_PINS \
  29. { B3, B2, D1, D0, E6, B0, F0, F1, B5, B4, D7, D6 }
  30. #define MATRIX_COL_PINS \
  31. { C7, C6, F7, F6, F5, F4, B1, D2, D3 }
  32. /* ws2812b RGB LEDs */
  33. #define RGB_DI_PIN B6
  34. #ifdef RGBLIGHT_ENABLE
  35. #define RGBLED_NUM 20 // Number of LEDs
  36. #define RGBLIGHT_SLEEP
  37. #define RGBLIGHT_EFFECT_BREATHING
  38. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  39. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  40. #define RGBLIGHT_EFFECT_SNAKE
  41. #define RGBLIGHT_EFFECT_KNIGHT
  42. #define RGBLIGHT_EFFECT_CHRISTMAS
  43. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  44. #define RGBLIGHT_EFFECT_RGB_TEST
  45. #define RGBLIGHT_EFFECT_ALTERNATING
  46. #define RGBLIGHT_EFFECT_TWINKLE
  47. #define RGBLIGHT_DEFAULT_VAL 0 // start off
  48. #define RGBLIGHT_LIMIT_VAL 225 // keep PCB under 500mA
  49. #endif
  50. /* COL2ROW or ROW2COL */
  51. #define DIODE_DIRECTION COL2ROW
  52. /* Set 0 if debouncing isn't needed */
  53. #define DEBOUNCE 5
  54. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  55. #define LOCKING_SUPPORT_ENABLE
  56. /* Locking resynchronize hack */
  57. #define LOCKING_RESYNC_ENABLE
  58. #define BOOTMAGIC_LITE_ROW 1
  59. #define BOOTMAGIC_LITE_COLUMN 0