config.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 magic key command */
  26. #define IS_COMMAND() ( \
  27. get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
  28. )
  29. #ifdef RGBLIGHT_ENABLE
  30. #define RGB_DI_PIN D3
  31. #define RGBLED_NUM 16 // Number of LEDs
  32. #define RGBLIGHT_HUE_STEP 12
  33. #define RGBLIGHT_SAT_STEP 12
  34. #define RGBLIGHT_VAL_STEP 12
  35. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  36. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  37. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  38. #endif // RGBLIGHT_ENABLE
  39. #ifdef AUDIO_ENABLE
  40. #define C6_AUDIO
  41. #ifdef RGBLIGHT_ENABLE
  42. #define NO_MUSIC_MODE
  43. #endif
  44. #endif //AUDIO_ENABLE
  45. #undef PRODUCT
  46. #ifdef KEYBOARD_orthodox_rev1
  47. #define PRODUCT Drashna Hacked Orthodox Rev.1
  48. #elif KEYBOARD_orthodox_rev3
  49. #define PRODUCT Drashna Hacked Orthodox Rev.3
  50. #endif
  51. #define QMK_ESC_OUTPUT D7 // usually COL
  52. #ifdef KEYBOARD_orthodox_rev1
  53. #define QMK_ESC_INPUT D4 // usually ROW
  54. #else
  55. #define QMK_ESC_INPUT D2 // usually ROW
  56. #endif
  57. #define QMK_LED B0
  58. #define QMK_SPEAKER C6
  59. #define SHFT_LED1 5
  60. #define SHFT_LED2 10
  61. #define CTRL_LED1 6
  62. #define CTRL_LED2 9
  63. #define GUI_LED1 8
  64. #define ALT_LED1 7