config.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #define USE_SERIAL
  15. #define TAPPING_TERM 150
  16. #ifdef SUBPROJECT_rev1
  17. #include "../../rev1/config.h"
  18. #define COMPACT_KEYMAP( \
  19. k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \
  20. k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \
  21. k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \
  22. k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \
  23. ) \
  24. { \
  25. { KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05 }, \
  26. { KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15 }, \
  27. { KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25 }, \
  28. { KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35 }, \
  29. { KC_##k40, KC_##k41, KC_##k42, KC_##k43, KC_##k44, KC_##k45 }, \
  30. { KC_##k50, KC_##k51, KC_##k52, KC_##k53, KC_##k54, KC_##k55 }, \
  31. { KC_##k60, KC_##k61, KC_##k62, KC_##k63, KC_##k64, KC_##k65 }, \
  32. { KC_##k70, KC_##k71, KC_##k72, KC_##k73, KC_##k74, KC_##k75 } \
  33. }
  34. #endif
  35. #ifdef SUBPROJECT_rev2
  36. #include "../../rev2/config.h"
  37. #define COMPACT_KEYMAP( \
  38. k00, k01, k02, k03, k04, k05, k45, k44, k43, k42, k41, k40, \
  39. k10, k11, k12, k13, k14, k15, k55, k54, k53, k52, k51, k50, \
  40. k20, k21, k22, k23, k24, k25, k65, k64, k63, k62, k61, k60, \
  41. k30, k31, k32, k33, k34, k35, k75, k74, k73, k72, k71, k70 \
  42. ) \
  43. { \
  44. { KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05 }, \
  45. { KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15 }, \
  46. { KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25 }, \
  47. { KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35 }, \
  48. { KC_##k40, KC_##k41, KC_##k42, KC_##k43, KC_##k44, KC_##k45 }, \
  49. { KC_##k50, KC_##k51, KC_##k52, KC_##k53, KC_##k54, KC_##k55 }, \
  50. { KC_##k60, KC_##k61, KC_##k62, KC_##k63, KC_##k64, KC_##k65 }, \
  51. { KC_##k70, KC_##k71, KC_##k72, KC_##k73, KC_##k74, KC_##k75 } \
  52. }
  53. #endif
  54. #ifdef SUBPROJECT_rev2fliphalf
  55. #include "../../rev2fliphalf/config.h"
  56. #endif
  57. #undef RGBLED_NUM
  58. #define RGBLIGHT_ANIMATIONS
  59. #define RGBLED_NUM 8
  60. #define RGBLIGHT_HUE_STEP 8
  61. #define RGBLIGHT_SAT_STEP 8
  62. #define RGBLIGHT_VAL_STEP 8