config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2018 Jack Humbert <jack.humb@gmail.com>
  3. * Copyright 2021 Erovia
  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. 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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #include "config_common.h"
  17. // THK has a different pin-out
  18. #undef MATRIX_ROW_PINS
  19. #undef MATRIX_COL_PINS
  20. #define MATRIX_ROW_PINS { A7, A6, A5, A4 }
  21. #define MATRIX_COL_PINS { D7, C2, C3, C4, C5, C6, C7, A3, A2, A1, A0, B0 }
  22. #define ENCODERS_PAD_A { B4, B2 }
  23. #define ENCODERS_PAD_B { B3, B1 }
  24. #define TAPPING_TOGGLE 3
  25. #define DIP_SWITCH_PINS { D0, D1, D4, D6 }
  26. // THK uses D5 for audio
  27. #undef AUDIO_PIN
  28. #define AUDIO_PIN D5
  29. // VUSB D- port
  30. #define USB_CFG_DMINUS_BIT 3