config.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #pragma once
  2. #if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
  3. # define RGB_DI_PIN B3
  4. # define RGBLED_NUM 13 // Number of LEDs
  5. # define RGBLIGHT_ANIMATIONS
  6. # define RGBLIGHT_HUE_STEP 12
  7. # define RGBLIGHT_SAT_STEP 12
  8. # define RGBLIGHT_VAL_STEP 12
  9. # define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  10. # define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  11. # ifdef RGB_MATRIX_ENABLE
  12. # define RGBLIGHT_DISABLE_KEYCODES
  13. # endif
  14. #endif // RGBLIGHT_ENABLE
  15. #ifdef RGB_MATRIX_ENABLE
  16. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
  17. // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened)
  18. // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  19. // #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
  20. # define RGB_DISABLE_WHEN_USB_SUSPENDED true// turn off effects when suspended
  21. # ifndef KEYBOARD_planck_ez
  22. # define EECONFIG_RGB_MATRIX (uint32_t *)15
  23. # endif
  24. #endif
  25. #if defined(KEYBOARD_lets_split_rev2)
  26. # define USE_SERIAL
  27. # undef USE_I2C
  28. # define EE_HANDS
  29. #endif
  30. #if !defined(KEYBOARD_planck_light)
  31. # ifdef RGBLIGHT_ENABLE
  32. # define NO_MUSIC_MODE
  33. # endif // RGBLIGHT_ENABLE
  34. #endif // KEYBOARD_planck_light
  35. #if defined(KEYBOARD_planck)
  36. # undef PRODUCT
  37. # if defined(KEYBOARD_planck_light)
  38. # define PRODUCT Drashna Hacked RGB Beacon (Planck Light)
  39. # elif defined(KEYBOARD_planck_rev6)
  40. # define PRODUCT Drashna Hacked Planck Rev6
  41. # elif defined(KEYBOARD_planck_EZ)
  42. # define PRODUCT Drashna Hacked Planck EZ
  43. # endif
  44. #endif
  45. /*
  46. * MIDI options
  47. */
  48. /* Prevent use of disabled MIDI features in the keymap */
  49. //#define MIDI_ENABLE_STRICT 1
  50. /* enable basic MIDI features:
  51. - MIDI notes can be sent when in Music mode is on
  52. */
  53. // #define MIDI_BASIC
  54. /* enable advanced MIDI features:
  55. - MIDI notes can be added to the keymap
  56. - Octave shift and transpose
  57. - Virtual sustain, portamento, and modulation wheel
  58. - etc.
  59. */
  60. //#define MIDI_ADVANCED
  61. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  62. //#define MIDI_TONE_KEYCODE_OCTAVES 2