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.

53 lines
1.5 KiB

  1. /* Copyright 2020 Sergi Meseguer <zigotica@gmail.com>
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. #include "config_common.h"
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0x7A74
  17. #define PRODUCT_ID 0x0001
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER zigotica
  20. #define PRODUCT z12
  21. #define ENCODERS_PAD_A { B4, B2 }
  22. #define ENCODERS_PAD_B { B5, B6 }
  23. #define ENCODER_DIRECTION_FLIP
  24. /* key matrix size */
  25. #define MATRIX_ROWS 4
  26. #define MATRIX_COLS 4
  27. /*Keyboard Matrix Assignments */
  28. #define DIRECT_PINS { \
  29. { NO_PIN, E6, C6, NO_PIN }, \
  30. { D2, D7, D4, D3 }, \
  31. { F7, B1, B3, NO_PIN }, \
  32. { F6, F5, F4, NO_PIN } \
  33. }
  34. #define UNUSED_PINS
  35. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  36. #define DEBOUNCE 5
  37. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  38. #define LOCKING_SUPPORT_ENABLE
  39. /* Locking resynchronize hack */
  40. #define LOCKING_RESYNC_ENABLE