config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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. #ifndef CONFIG_USER_H
  17. #define CONFIG_USER_H
  18. #include "../../config.h"
  19. /* Use I2C or Serial */
  20. #define USE_I2C
  21. #define USE_SERIAL
  22. //#define USE_MATRIX_I2C
  23. /* Select hand configuration */
  24. #define MASTER_LEFT
  25. // #define MASTER_RIGHT
  26. // #define EE_HANDS
  27. //#define SSD1306OLED
  28. /* Select rows configuration */
  29. // Rows are 4 or 5
  30. #define HELIX_ROWS 5
  31. /* key matrix size */
  32. // Rows are doubled-up
  33. #if HELIX_ROWS == 4
  34. #define MATRIX_ROWS 8
  35. #define MATRIX_COLS 7
  36. #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
  37. #elif HELIX_ROWS == 5
  38. #define MATRIX_ROWS 10
  39. #define MATRIX_COLS 7
  40. #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
  41. #else
  42. #error "expected HELIX_ROWS 4 or 5"
  43. #endif
  44. #define USE_SERIAL_PD2
  45. #define PREVENT_STUCK_MODIFIERS
  46. #define TAPPING_FORCE_HOLD
  47. #define TAPPING_TERM 100
  48. #undef RGBLED_NUM
  49. #define RGBLIGHT_ANIMATIONS
  50. #define RGBLED_NUM 6
  51. #define RGBLIGHT_LIMIT_VAL 255
  52. #define RGBLIGHT_HUE_STEP 10
  53. #define RGBLIGHT_SAT_STEP 17
  54. #define RGBLIGHT_VAL_STEP 17
  55. #endif