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.

45 lines
1.3 KiB

  1. /* Copyright 2023 Cipulot
  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. #define MATRIX_ROWS 5
  18. #define MATRIX_COLS 15
  19. /* Custom matrix pins and port select array */
  20. #define MATRIX_ROW_PINS \
  21. { A7, B0, A4, A5, A6 }
  22. #define MATRIX_COL_CHANNELS \
  23. { 0, 3, 1, 2, 5, 7, 6, 4 }
  24. #define MUX_SEL_PINS \
  25. { B4, B5, B6 }
  26. /* Hardware peripherals pins */
  27. #define APLEX_EN_PIN_0 B7
  28. #define APLEX_EN_PIN_1 B3
  29. #define DISCHARGE_PIN A2
  30. #define ANALOG_PORT A1
  31. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  32. #define LOCKING_SUPPORT_ENABLE
  33. /* Locking resynchronize hack */
  34. #define LOCKING_RESYNC_ENABLE
  35. #define DEFAULT_ACTUATION_LEVEL 550
  36. #define DEFAULT_RELEASE_LEVEL 500
  37. #define DISCHARGE_TIME 10