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 knaruo
  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 0x6B6E
  20. #define PRODUCT_ID 0x0000
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER knaruo
  23. #define PRODUCT pisces
  24. #define USE_SERIAL
  25. /* serial.c configuration for split keyboard */
  26. #define SOFT_SERIAL_PIN D2
  27. /* Select hand configuration */
  28. #define SPLIT_HAND_MATRIX_GRID B0,B7
  29. #define MATRIX_MASKED
  30. #define SPLIT_USB_DETECT
  31. /* key matrix size */
  32. // Rows are doubled-up
  33. #define MATRIX_ROWS (3*2)
  34. #define MATRIX_COLS 7
  35. /*
  36. * Keyboard Matrix Assignments
  37. *
  38. * Change this to how you wired your keyboard
  39. * COLS: AVR pins used for columns, left to right
  40. * ROWS: AVR pins used for rows, top to bottom
  41. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  42. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  43. *
  44. */
  45. #define MATRIX_ROW_PINS { C4, B0, C7 }
  46. #define MATRIX_COL_PINS { B1, B2, B3, B4, B5, B6, B7 }
  47. #define UNUSED_PINS
  48. /* COL2ROW, ROW2COL */
  49. #define DIODE_DIRECTION COL2ROW
  50. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  51. #define DEBOUNCE 5
  52. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  53. #define LOCKING_SUPPORT_ENABLE
  54. /* Locking resynchronize hack */
  55. #define LOCKING_RESYNC_ENABLE
  56. /* disable these deprecated features by default */
  57. #define NO_ACTION_MACRO
  58. #define NO_ACTION_FUNCTION