config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 DPB
  20. #define PRODUCT Ferris sweep
  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. { E6, F7, F6, F5, F4 }, \
  37. { B1, B3, B2, B6, D3 }, \
  38. { D1, D0, D4, C6, D7 }, \
  39. { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
  40. }
  41. #define DIRECT_PINS_RIGHT { \
  42. { F4, F5, F6, F7, E6 }, \
  43. { D3,B6,B2,B3,B1 }, \
  44. { D7,C6,D4,D0,D1}, \
  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 D2
  58. #define EE_HANDS