config.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. #pragma once
  17. /* Select hand configuration */
  18. // #define MASTER_LEFT
  19. // #define MASTER_RIGHT
  20. #define EE_HANDS
  21. #undef USE_I2C
  22. #undef SSD1306OLED
  23. #define USE_SERIAL_PD2
  24. // #define TAPPING_FORCE_HOLD
  25. // #define TAPPING_TERM 100
  26. #ifdef RGBLIGHT_ENABLE
  27. # undef RGBLED_NUM
  28. # define RGBLED_NUM 27
  29. # define RGBLIGHT_HUE_STEP 8
  30. # define RGBLIGHT_SAT_STEP 8
  31. # define RGBLIGHT_VAL_STEP 5
  32. # define RGBLIGHT_LIMIT_VAL 150
  33. #endif
  34. #ifdef RGB_MATRIX_ENABLE
  35. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  36. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  37. // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  38. # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
  39. // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  40. // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
  41. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
  42. # define RGB_MATRIX_HUE_STEP 8
  43. # define RGB_MATRIX_SAT_STEP 8
  44. # define RGB_MATRIX_VAL_STEP 5
  45. # define RGB_MATRIX_SPD_STEP 10
  46. #endif
  47. #ifdef AUDIO_ENABLE
  48. # define B6_AUDIO
  49. // #define NO_MUSIC_MODE
  50. #endif
  51. #undef PRODUCT
  52. #define PRODUCT Drashna Hacked Corne Keyboard
  53. #define OLED_FONT_H "keyboards/crkbd/keymaps/drashna/glcdfont.c"
  54. // #define OLED_FONT_WIDTH 5
  55. // #define OLED_FONT_HEIGHT 7
  56. #define OLED_DISABLE_TIMEOUT
  57. #define TAPPING_TERM_PER_KEY