config.h 2.0 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. #pragma once
  18. /* Use I2C or Serial, not both */
  19. #define USE_SERIAL
  20. #undef USE_I2C
  21. /* Select hand configuration */
  22. // #define MASTER_LEFT
  23. // #define MASTER_RIGHT
  24. #define EE_HANDS
  25. /* key combination for command */
  26. #ifdef IS_COMMAND
  27. #undef IS_COMMAND
  28. #endif
  29. #define IS_COMMAND() ( \
  30. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
  31. )
  32. #ifdef RGBLIGHT_ENABLE
  33. #define RGB_DI_PIN D3
  34. #define RGBLED_NUM 16 // Number of LEDs
  35. #define RGBLIGHT_HUE_STEP 12
  36. #define RGBLIGHT_SAT_STEP 12
  37. #define RGBLIGHT_VAL_STEP 12
  38. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  39. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  40. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  41. #endif // RGBLIGHT_ENABLE
  42. #ifdef AUDIO_ENABLE
  43. #define C6_AUDIO
  44. #ifdef RGBLIGHT_ENABLE
  45. #define NO_MUSIC_MODE
  46. #endif
  47. #endif //AUDIO_ENABLE
  48. #undef PRODUCT
  49. #ifdef KEYBOARD_orthodox_rev1
  50. #define PRODUCT Drashna Hacked Orthodox Rev.1
  51. #elif KEYBOARD_orthodox_rev3
  52. #define PRODUCT Drashna Hacked Orthodox Rev.3
  53. #endif
  54. #define QMK_ESC_OUTPUT D7 // usually COL
  55. #ifdef KEYBOARD_orthodox_rev1
  56. #define QMK_ESC_INPUT D4 // usually ROW
  57. #else
  58. #define QMK_ESC_INPUT D2 // usually ROW
  59. #endif
  60. #define QMK_LED B0
  61. #define QMK_SPEAKER C6
  62. #define SHFT_LED1 5
  63. #define SHFT_LED2 10
  64. #define CTRL_LED1 6
  65. #define CTRL_LED2 9
  66. #define GUI_LED1 8
  67. #define ALT_LED1 7