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.

83 lines
2.4 KiB

  1. /* Copyright 2018-2020 ENDO Katsuhiro <ka2hiro@curlybracket.co.jp> David Philip Barr <@davidphilipbarr> Pierre Chevalier <pierrechevalier83@gmail.com>
  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 0xC2AB
  17. #define PRODUCT_ID 0x3939
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER tapioki
  20. #define PRODUCT Architeuthis dux
  21. /* key matrix size */
  22. #define MATRIX_ROWS 8
  23. #define MATRIX_COLS 5
  24. /*
  25. * Keyboard Matrix Assignments
  26. *
  27. * Change this to how you wired your keyboard
  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. * NO_DIODE = switches are directly connected to AVR pins
  33. *
  34. */
  35. #define DIRECT_PINS { \
  36. { C6, D2, F7, B2, F4 }, \
  37. { D7, D0, F6, B3, F5 }, \
  38. { E6, D4, D3, B1, B6 }, \
  39. { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
  40. }
  41. #define DIRECT_PINS_RIGHT { \
  42. { F4, B2, F7, D2, C6 }, \
  43. { F5, B3, F6, D0, D7 }, \
  44. { B6, B1, D3, D4, E6 }, \
  45. { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
  46. }
  47. #define UNUSED_PINS
  48. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  49. #define DEBOUNCE 5
  50. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  51. #define LOCKING_SUPPORT_ENABLE
  52. /* Locking resynchronize hack */
  53. #define LOCKING_RESYNC_ENABLE
  54. /* Serial settings */
  55. #define USE_SERIAL
  56. /* serial.c configuration for split keyboard */
  57. #define SOFT_SERIAL_PIN D1
  58. #define EE_HANDS
  59. /* Top left key on left half */
  60. #define BOOTMAGIC_LITE_ROW 0
  61. #define BOOTMAGIC_LITE_COLUMN 0
  62. /* Top right key on right half */
  63. #define BOOTMAGIC_LITE_ROW_RIGHT 4
  64. #define BOOTMAGIC_LITE_COLUMN_RIGHT 4