config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef CONFIG_USER_H
  2. #define CONFIG_USER_H
  3. #if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
  4. #define RGB_DI_PIN D3
  5. #define RGBLED_NUM 16 // Number of LEDs
  6. #define RGBLIGHT_ANIMATIONS
  7. #define RGBLIGHT_HUE_STEP 12
  8. #define RGBLIGHT_SAT_STEP 12
  9. #define RGBLIGHT_VAL_STEP 12
  10. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  11. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
  12. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  13. #endif // RGBLIGHT_ENABLE
  14. #ifdef RGB_MATRIX_ENABLE
  15. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
  16. // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened)
  17. // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  18. #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
  19. // #define RGB_MATRIX_SKIP_FRAMES 1 // number of frames to skip when displaying animations (0 is full effect) if not defined defaults to 1
  20. // #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
  21. // #define EECONFIG_RGB_MATRIX (uint32_t *)16
  22. #endif
  23. #if defined(KEYBOARD_lets_split_rev2)
  24. #define USE_SERIAL
  25. #undef USE_I2C
  26. #define EE_HANDS
  27. #endif
  28. #if defined(KEYBOARD_planck_rev5)
  29. #ifdef RGBLIGHT_ENABLE
  30. #define NO_MUSIC_MODE
  31. #endif // RGBLIGHT_ENABLE
  32. #endif // KEYBOARD_planck_rev5
  33. /*
  34. * MIDI options
  35. */
  36. /* Prevent use of disabled MIDI features in the keymap */
  37. //#define MIDI_ENABLE_STRICT 1
  38. /* enable basic MIDI features:
  39. - MIDI notes can be sent when in Music mode is on
  40. */
  41. #define MIDI_BASIC
  42. /* enable advanced MIDI features:
  43. - MIDI notes can be added to the keymap
  44. - Octave shift and transpose
  45. - Virtual sustain, portamento, and modulation wheel
  46. - etc.
  47. */
  48. //#define MIDI_ADVANCED
  49. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  50. //#define MIDI_TONE_KEYCODE_OCTAVES 2
  51. #endif