config.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*Copyright 2020 Thys de Wet
  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. #define VENDOR_ID 0xFEED
  16. #define PRODUCT_ID 0x7811
  17. #define DEVICE_VER 0x0001
  18. #define MANUFACTURER TKW
  19. #define PRODUCT stoutgat
  20. /* key matrix size */
  21. #define MATRIX_ROWS 5
  22. #define MATRIX_COLS 15
  23. #define TAP_CODE_DELAY 10
  24. #define MATRIX_ROW_PINS { D1, D0, A0, A1, A2 }
  25. #define MATRIX_COL_PINS { D6, D5, D7, C0, C1, C2, C3, C4, C5, C6, C7, A7, A6, A5, A4 }
  26. #define ENCODERS_PAD_A { B4, B0 }
  27. #define ENCODERS_PAD_B { B3, B1 }
  28. #define UNUSED_PINS
  29. #define DIODE_DIRECTION COL2ROW
  30. /* disable these deprecated features by default */
  31. #define NO_ACTION_MACRO
  32. #define NO_ACTION_FUNCTION