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