config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #define 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. #undef IS_COMMAND
  27. #define IS_COMMAND() ( \
  28. get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
  29. )
  30. #ifdef RGBLIGHT_ENABLE
  31. #define RGB_DI_PIN D3
  32. #define RGBLED_NUM 16 // Number of LEDs
  33. #define RGBLED_SPLIT { 8, 8 }
  34. #define RGBLIGHT_HUE_STEP 12
  35. #define RGBLIGHT_SAT_STEP 12
  36. #define RGBLIGHT_VAL_STEP 12
  37. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  38. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  39. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  40. #endif // RGBLIGHT_ENABLE
  41. #ifdef AUDIO_ENABLE
  42. #define C6_AUDIO
  43. #ifdef RGBLIGHT_ENABLE
  44. #define NO_MUSIC_MODE
  45. #endif
  46. #endif //AUDIO_ENABLE
  47. #undef PRODUCT
  48. #ifdef KEYBOARD_orthodox_rev1
  49. #define PRODUCT Drashna Hacked Orthodox Rev.1
  50. #elif KEYBOARD_orthodox_rev3
  51. #define PRODUCT Drashna Hacked Orthodox Rev.3
  52. #endif
  53. #define QMK_ESC_OUTPUT D7 // usually COL
  54. #ifdef KEYBOARD_orthodox_rev1
  55. #define QMK_ESC_INPUT D4 // usually ROW
  56. #else
  57. #define QMK_ESC_INPUT D2 // usually ROW
  58. #endif
  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 8
  66. #define ALT_LED1 7