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.7 KiB

  1. /*
  2. Copyright (c) 2022 David Kuehling <dvdkhlng TA posteo TOD de>
  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 0xFEED
  18. #define PRODUCT_ID 0x4451
  19. #define DEVICE_VER 0x0001
  20. #define PRODUCT DQz11N1G Controller Replacement
  21. /* Matrix size */
  22. #define MATRIX_ROWS 7
  23. #define MATRIX_COLS 19
  24. /* Pin-out */
  25. #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6, B4 }
  26. /* The pin connecting to the SN74HC165 SH/~LD in */
  27. #define ROW_SHIFT_PIN B6
  28. /* Column read via SPI (shift register) */
  29. /* #define MATRIX_COL_PINS { } */
  30. #define UNUSED_PINS
  31. #define LED_CAPS_LOCK_PIN F7 /* A0 */
  32. #define LED_NUM_LOCK_PIN F5 /*A2 */
  33. #define LED_SCROLL_LOCK_PIN F4 /*A3 */
  34. #define LED_FUN_LOCK_PIN F6 /* A1 (handled in layer_state_set_user()) */
  35. /* audio config */
  36. #define AUDIO_PIN B5
  37. #define AUDIO_CLICKY
  38. #define AUDIO_INIT_DELAY
  39. #define AUDIO_CLICKY_FREQ_RANDOMNESS 0.0f
  40. #define NO_MUSIC_MODE
  41. /* diodes go row->col, though this is hard-coded in matrix.c and we drive the
  42. * matrix differently: we have pull-down on the columns and drive the selected
  43. * row high */
  44. /* #define DIODE_DIRECTION ROW2COL */