config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. /* Use I2C or Serial, not both */
  18. // #define USE_SERIAL
  19. #define USE_I2C
  20. /* Select hand configuration */
  21. // #define MASTER_LEFT
  22. // #define MASTER_RIGHT
  23. #define EE_HANDS
  24. #ifdef RGBLIGHT_ENABLE
  25. # undef RGBLED_NUM
  26. # define RGBLED_NUM 18 // Number of LEDs
  27. # undef RGBLED_SPLIT
  28. # define RGBLED_SPLIT \
  29. { 9, 9 }
  30. # define RGBLIGHT_HUE_STEP 8
  31. # define RGBLIGHT_SAT_STEP 8
  32. # define RGBLIGHT_VAL_STEP 8
  33. # define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  34. # define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  35. # define RGBLIGHT_LIMIT_VAL 225
  36. #endif // RGBLIGHT_ENABLE
  37. #ifdef AUDIO_ENABLE
  38. # define AUDIO_PIN C6
  39. # ifdef RGBLIGHT_ENABLE
  40. # ifndef __arm__
  41. # define NO_MUSIC_MODE
  42. # endif
  43. # endif // RGBLIGHT_ENABLE
  44. #endif // AUDIO_ENABLE
  45. #if defined(KEYBOARD_keebio_iris_rev1) || defined(KEYBOARD_keebio_iris_rev2)
  46. # define QMK_ESC_OUTPUT F6 // usually COL
  47. # define QMK_ESC_INPUT D7 // usually ROW
  48. # define QMK_LED B0
  49. # define QMK_SPEAKER C6
  50. #endif
  51. #undef PRODUCT
  52. #if defined(KEYBOARD_keebio_iris_rev2)
  53. # define PRODUCT Drashna Hacked Iris Rev 2
  54. #elif defined(KEYBOARD_keebio_iris_rev3)
  55. # define PRODUCT Drashna Hacked Iris Rev 3
  56. #elif defined(KEYBOARD_keebio_iris_rev4)
  57. # define PRODUCT Drashna Hacked Iris Rev 4
  58. #endif
  59. #define SHFT_LED1 6
  60. #define SHFT_LED2 11
  61. #define CTRL_LED1 7
  62. #define CTRL_LED2 10
  63. #define ALT_LED1 8
  64. #define GUI_LED1 9
  65. #define BOOTMAGIC_LITE_ROW 4
  66. #define BOOTMAGIC_LITE_COLUMN 3