config.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #define PRODUCT_ID 0xDEF2
  3. #define DEVICE_VER 0x0001
  4. #ifdef RGBLIGHT_ENABLE
  5. #define RGB_DI_PIN E2
  6. #define RGBLED_NUM 13
  7. #define RGBLIGHT_HUE_STEP 8
  8. #define RGBLIGHT_SAT_STEP 8
  9. #define RGBLIGHT_VAL_STEP 8
  10. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  11. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  12. /*== all animations enable ==*/
  13. #define RGBLIGHT_ANIMATIONS
  14. // /*== or choose animations ==*/
  15. // #define RGBLIGHT_EFFECT_BREATHING
  16. // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  17. // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  18. // #define RGBLIGHT_EFFECT_SNAKE
  19. // #define RGBLIGHT_EFFECT_KNIGHT
  20. // #define RGBLIGHT_EFFECT_CHRISTMAS
  21. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  22. // #define RGBLIGHT_EFFECT_RGB_TEST
  23. // #define RGBLIGHT_EFFECT_ALTERNATING
  24. #endif
  25. //rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0
  26. // set to 0 for write, 1 for read (as per I2C protocol)
  27. // The address will vary depending on your wiring:
  28. // 0b1110100 AD <-> GND
  29. // 0b1110111 AD <-> VCC
  30. // 0b1110101 AD <-> SCL
  31. // 0b1110110 AD <-> SDA
  32. #define DRIVER_ADDR_1 0b1110110
  33. #define DRIVER_ADDR_2 0b1110100
  34. #define DRIVER_COUNT 1
  35. #define DRIVER_1_LED_TOTAL 25
  36. #define DRIVER_2_LED_TOTAL 0
  37. #define DRIVER_LED_TOTAL 25
  38. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  39. #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  40. #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  41. // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  42. #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)
  43. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
  44. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set