config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. This is the c configuration file for the keymap
  3. Copyright 2012 Jun Wako <wakojun@gmail.com>
  4. Copyright 2015 Jack Humbert
  5. Copyright 2017 Art Ortenburger
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef CONFIG_USER_H
  18. #define CONFIG_USER_H
  19. #include QMK_KEYBOARD_CONFIG_H
  20. /* Use I2C or Serial, not both */
  21. #define USE_SERIAL
  22. #undef USE_I2C
  23. /* Select hand configuration */
  24. // #define MASTER_LEFT
  25. // #define MASTER_RIGHT
  26. #define EE_HANDS
  27. /* key combination for command */
  28. #ifdef IS_COMMAND
  29. #undef IS_COMMAND
  30. #endif
  31. #define IS_COMMAND() ( \
  32. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
  33. )
  34. #ifdef RGBLIGHT_ENABLE
  35. #define RGB_DI_PIN D3
  36. #define RGBLED_NUM 16 // Number of LEDs
  37. #define RGBLIGHT_ANIMATIONS
  38. #define RGBLIGHT_HUE_STEP 12
  39. #define RGBLIGHT_SAT_STEP 12
  40. #define RGBLIGHT_VAL_STEP 12
  41. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  42. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  43. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  44. #endif // RGBLIGHT_ENABLE
  45. #ifdef AUDIO_ENABLE
  46. #define C6_AUDIO
  47. #ifdef RGBLIGHT_ENABLE
  48. #define NO_MUSIC_MODE
  49. #endif //RGBLIGHT_ENABLE
  50. #endif //AUDIO_ENABLE
  51. #undef PRODUCT
  52. #ifdef KEYBOARD_orthodox_rev1
  53. #define PRODUCT Drashna Hacked Orthodox Rev.1
  54. #elif KEYBOARD_orthodox_rev3
  55. #define PRODUCT Drashna Hacked Orthodox Rev.3
  56. #endif
  57. #define QMK_ESC_OUTPUT D7 // usually COL
  58. #define QMK_ESC_INPUT D4 // usually ROW
  59. #define QMK_LED B0
  60. #define QMK_SPEAKER C6
  61. #define SHFT_LED1 5
  62. #define SHFT_LED2 10
  63. #define CTRL_LED1 6
  64. #define CTRL_LED2 9
  65. #define GUI_LED1 7
  66. #define GUI_LED2 8
  67. #endif