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.

55 lines
1.8 KiB

  1. /*
  2. Copyright 2021 James Sa <james.sa.2013@gmail.com>
  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. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xFEED
  17. #define PRODUCT_ID 0x0805
  18. #define MANUFACTURER JSA
  19. #define PRODUCT Angel
  20. /* USB Version in Binary-coded decimal: 0xJJMN where
  21. * JJ is the major number, M is minor, N is sub minor. */
  22. #define DEVICE_VER 0x0100 // Version 1.00: hand-wire
  23. /* key matrix size */
  24. #define MATRIX_ROWS 4
  25. #define MATRIX_COLS 13
  26. /*
  27. * Keyboard Matrix Assignments
  28. * COLS: AVR pins used for columns, left to right
  29. * ROWS: AVR pins used for rows, top to bottom
  30. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  31. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  32. */
  33. #define MATRIX_ROW_PINS { B6, B2, B5, B4 }
  34. #define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B3, B1, F7, F6, F5 }
  35. #define UNUSED_PINS
  36. #define DIODE_DIRECTION COL2ROW
  37. // https://docs.qmk.fm/using-qmk/software-features/tap_hold
  38. #define TAPPING_TERM 200
  39. #define IGNORE_MOD_TAP_INTERRUPT
  40. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  41. #define DEBOUNCE 5
  42. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  43. #define MATRIX_HAS_GHOST