config.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Base Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
  3. Modified 2017 Andrew Novak <ndrw.nvk@gmail.com>
  4. Modified 2018 Wayne Jones (WarmCatUK) <waynekjones@gmail.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  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. 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. #define VENDOR_ID 0x20A0
  19. #define PRODUCT_ID 0x422D
  20. // TODO: share these strings with usbconfig.h
  21. // Edit usbconfig.h to change these.
  22. #define MANUFACTURER kprepublic
  23. #define PRODUCT jj50
  24. #define DESCRIPTION Preonic-like clone
  25. /* matrix size */
  26. #define MATRIX_ROWS 8
  27. #define MATRIX_COLS 15
  28. #define DIODE_DIRECTION ROW2COL
  29. //#define BACKLIGHT_PIN D4
  30. #define BACKLIGHT_LEVELS 12
  31. #define RGB_DI_PIN E2
  32. #define RGBLED_NUM 12
  33. #define RGBLIGHT_ANIMATIONS
  34. #define RGBLIGHT_HUE_STEP 12
  35. #define RGBLIGHT_SAT_STEP 15
  36. #define RGBLIGHT_VAL_STEP 18
  37. #define NO_UART 1
  38. #define BOOTLOADHID_BOOTLOADER 1
  39. /* key combination for command */
  40. #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))