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.

90 lines
2.5 KiB

  1. /*
  2. Copyright 2021 floookay
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include "config_common.h"
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0xF100
  18. #define PRODUCT_ID 0x91CE
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER floookay
  21. #define PRODUCT pluckey
  22. /* key matrix size */
  23. // Rows are doubled-up
  24. #define MATRIX_ROWS 10
  25. #define MATRIX_COLS 7
  26. /*
  27. * Keyboard Matrix Assignments
  28. *
  29. * COLS: AVR pins used for columns, left to right
  30. * ROWS: AVR pins used for rows, top to bottom
  31. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  32. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  33. *
  34. */
  35. #define MATRIX_ROW_PINS { B4, F5, F6, B6, B5 }
  36. #define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6, F7 }
  37. #define UNUSED_PINS { F4, B1 }
  38. #define DIODE_DIRECTION COL2ROW
  39. /* encoder support */
  40. #define ENCODERS_PAD_A { B3 }
  41. #define ENCODERS_PAD_B { B2 }
  42. #define ENCODER_RESOLUTION 2
  43. #define ENCODERS_PAD_A_RIGHT { B2 }
  44. #define ENCODERS_PAD_B_RIGHT { B3 }
  45. #define ENCODER_RESOLUTION_RIGHT 2
  46. /* communication between sides */
  47. #define USE_SERIAL
  48. #define SOFT_SERIAL_PIN D2
  49. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  50. #define DEBOUNCE 5
  51. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  52. #define LOCKING_SUPPORT_ENABLE
  53. /* Locking resynchronize hack */
  54. #define LOCKING_RESYNC_ENABLE
  55. /*
  56. * Feature disable options
  57. * These options are also useful to firmware size reduction.
  58. */
  59. /* disable debug print */
  60. //#define NO_DEBUG
  61. /* disable print */
  62. //#define NO_PRINT
  63. /* disable action features */
  64. //#define NO_ACTION_LAYER
  65. //#define NO_ACTION_TAPPING
  66. //#define NO_ACTION_ONESHOT
  67. /* disable these deprecated features by default */
  68. #define NO_ACTION_MACRO
  69. #define NO_ACTION_FUNCTION
  70. /* Bootmagic Lite key configuration */
  71. //#define BOOTMAGIC_LITE_ROW 0
  72. //#define BOOTMAGIC_LITE_COLUMN 0