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. #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_ANIMATIONS
  36. #define RGBLIGHT_HUE_STEP 12
  37. #define RGBLIGHT_SAT_STEP 12
  38. #define RGBLIGHT_VAL_STEP 12
  39. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  40. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  41. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  42. #endif // RGBLIGHT_ENABLE
  43. #ifdef AUDIO_ENABLE
  44. #define C6_AUDIO
  45. #ifdef RGBLIGHT_ENABLE
  46. #define NO_MUSIC_MODE
  47. #endif
  48. #endif //AUDIO_ENABLE
  49. #undef PRODUCT
  50. #ifdef KEYBOARD_orthodox_rev1
  51. #define PRODUCT Drashna Hacked Orthodox Rev.1
  52. #elif KEYBOARD_orthodox_rev3
  53. #define PRODUCT Drashna Hacked Orthodox Rev.3
  54. #endif
  55. #define QMK_ESC_OUTPUT D7 // usually COL
  56. #ifdef KEYBOARD_orthodox_rev1
  57. #define QMK_ESC_INPUT D4 // usually ROW
  58. #else
  59. #define QMK_ESC_INPUT D2 // usually ROW
  60. #endif
  61. #define QMK_LED B0
  62. #define QMK_SPEAKER C6
  63. #define SHFT_LED1 5
  64. #define SHFT_LED2 10
  65. #define CTRL_LED1 6
  66. #define CTRL_LED2 9
  67. #define GUI_LED1 8
  68. #define ALT_LED1 7