config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. Copyright 2019 Mikkel Jeppesen
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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. #include "config_common.h"
  18. #define SPLIT_HAND_PIN B4
  19. #define SOFT_SERIAL_PIN D0
  20. /* USB Device descriptor parameter */
  21. #define DEVICE_VER 0x0002
  22. #define DESCRIPTION A toolless split keyboard for the cheapish makers
  23. /* key matrix size */
  24. // Rows are doubled-up
  25. #define MATRIX_ROWS 8
  26. #define MATRIX_COLS 6
  27. // wiring of each half
  28. #define MATRIX_ROW_PINS { F5, F6, C7, F7 }
  29. #define MATRIX_COL_PINS { F1, F4, E2, B6, D7, D6}
  30. #define DIODE_DIRECTION COL2ROW
  31. /* define if matrix has ghost */
  32. //#define MATRIX_HAS_GHOST
  33. /* number of backlight levels */
  34. // #define BACKLIGHT_LEVELS 3
  35. /* Set 0 if debouncing isn't needed */
  36. #define DEBOUNCE 5
  37. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  38. #define LOCKING_SUPPORT_ENABLE
  39. /* Locking resynchronize hack */
  40. #define LOCKING_RESYNC_ENABLE
  41. /* ws2812 RGB LED */
  42. #define RGB_DI_PIN F0
  43. #define RGBLED_NUM 12 // Number of LEDs
  44. #define RGBLIGHT_ANIMATIONS
  45. /* Audio settings */
  46. #ifdef AUDIO_ENABLE
  47. #define C6_AUDIO // Define this to enable the buzzer
  48. #endif
  49. #define QMK_ESC_OUTPUT F1 // usually COL
  50. #define QMK_ESC_INPUT F5 // usually ROW
  51. #define QMK_LED D5
  52. #define QMK_SPEAKER C6
  53. /*
  54. * Feature disable options
  55. * These options are also useful to firmware size reduction.
  56. */
  57. /* disable debug print */
  58. // #define NO_DEBUG
  59. /* disable print */
  60. // #define NO_PRINT
  61. /* disable action features */
  62. //#define NO_ACTION_LAYER
  63. //#define NO_ACTION_TAPPING
  64. //#define NO_ACTION_ONESHOT
  65. //#define NO_ACTION_MACRO
  66. //#define NO_ACTION_FUNCTION