config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. Copyright 2019 yohei <yohewi@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. #pragma once
  15. // wiring of each half
  16. #define MATRIX_ROW_PINS { C6, D7, E6, B4 }
  17. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, D2, D1, D0, D4 }
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION ROW2COL
  20. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  21. #define LOCKING_SUPPORT_ENABLE
  22. /* Locking resynchronize hack */
  23. #define LOCKING_RESYNC_ENABLE
  24. /* ws2812 RGB LED */
  25. #define RGB_DI_PIN D3
  26. // keyboard RGB LED support
  27. // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
  28. #define RGBLED_NUM 6
  29. #define RGBLIGHT_LIMIT_VAL 200
  30. #define RGBLIGHT_VAL_STEP 17
  31. #define RGBLIGHT_HUE_STEP 10
  32. #define RGBLIGHT_SAT_STEP 17
  33. #if defined(RGBLIGHT_ENABLE)
  34. // USB_MAX_POWER_CONSUMPTION value for stonehenge30 keyboard
  35. // 120 RGBoff, OLEDoff
  36. // 120 OLED
  37. // 330 RGB 6
  38. // 300 RGB 32
  39. // 310 OLED & RGB 32
  40. #define USB_MAX_POWER_CONSUMPTION 400
  41. #else
  42. // fix iPhone and iPad power adapter issue
  43. // iOS device need lessthan 100
  44. #define USB_MAX_POWER_CONSUMPTION 100
  45. #endif
  46. /*
  47. * Feature disable options
  48. * These options are also useful to firmware size reduction.
  49. */
  50. /* disable debug print */
  51. //#define NO_DEBUG
  52. /* disable print */
  53. //#define NO_PRINT
  54. /* disable action features */
  55. //#define NO_ACTION_LAYER
  56. //#define NO_ACTION_TAPPING
  57. //#define NO_ACTION_ONESHOT