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.

58 lines
1.6 KiB

  1. /*
  2. Copyright 2021 Yaroslav Smirnov <elorenn@bk.ru>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  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. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "config_common.h"
  19. // Rows are doubled-up for splits
  20. #define MATRIX_ROWS 8
  21. #define MATRIX_COLS 6
  22. // Wiring of each half
  23. #define MATRIX_ROW_PINS { B1, B3, B2, B6 }
  24. #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 }
  25. // Reversed sort
  26. #define DIODE_DIRECTION COL2ROW
  27. /* USB Device descriptor parameter */
  28. #define PRODUCT Elrgo S
  29. #define MANUFACTURER Eloren
  30. #define VENDOR_ID 0x454C
  31. #define PRODUCT_ID 0x3436
  32. #define DEVICE_VER 0x0001
  33. /* Set 0 if debouncing isn't needed */
  34. #define DEBOUNCE 5
  35. /* serial.c configuration for split keyboard */
  36. #define SOFT_SERIAL_PIN D0
  37. /* disable debug print */
  38. // #define NO_DEBUG
  39. /* disable print */
  40. // #define NO_PRINT
  41. /* disable action features */
  42. //#define NO_ACTION_LAYER
  43. //#define NO_ACTION_TAPPING
  44. //#define NO_ACTION_ONESHOT
  45. //#define NO_ACTION_MACRO
  46. //#define NO_ACTION_FUNCTION