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.

62 lines
1.7 KiB

  1. /* Copyright 2021 Danny Nguyen <danny@keeb.io>
  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. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0x5154 // "QT"
  17. #define PRODUCT_ID 0x0010
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER Quantrik
  20. #define PRODUCT SX60
  21. /* key matrix size */
  22. #define MATRIX_ROWS 5
  23. #define MATRIX_COLS 16
  24. #define ATMEGA_COLS 8
  25. /* key matrix pins */
  26. #define MATRIX_ROW_PINS { B1, B2, B3, C6, B6 }
  27. #define MATRIX_COL_PINS { F6, B5, B4, D7, D6, D5, D3, D2 }
  28. // MCP23018 pinout:
  29. // Rows: B4, B3, B2, B1, B0
  30. // Cols: A0, A1, A2, A3, A4, A5, A6, A7
  31. #define UNUSED_PINS
  32. /* COL2ROW or ROW2COL */
  33. #define DIODE_DIRECTION COL2ROW
  34. /* indicator LEDs */
  35. #define LED_NUM_LOCK_PIN F5
  36. #define LED_CAPS_LOCK_PIN F4
  37. #define LED_SCROLL_LOCK_PIN F1
  38. /* number of backlight levels */
  39. #define BACKLIGHT_PIN B7
  40. #ifdef BACKLIGHT_PIN
  41. #define BACKLIGHT_LEVELS 3
  42. #endif
  43. /* Set 0 if debouncing isn't needed */
  44. #define DEBOUNCE 5
  45. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  46. #define LOCKING_SUPPORT_ENABLE
  47. /* Locking resynchronize hack */
  48. #define LOCKING_RESYNC_ENABLE