config.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Copyright 2021 Charly Delay <charly@codesink.dev> (@0xcharly)
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  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. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. /* RGB Matrix. */
  19. #ifdef RGB_MATRIX_ENABLE
  20. // Limit maximum brightness to keep power consumption reasonable, and avoid
  21. // disconnects.
  22. # undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
  23. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 64
  24. // Rainbow swirl as startup mode.
  25. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  26. # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
  27. // Slow swirl at startup.
  28. # define RGB_MATRIX_STARTUP_SPD 32
  29. // Startup values.
  30. # define RGB_MATRIX_STARTUP_HUE 0
  31. # define RGB_MATRIX_STARTUP_SAT 255
  32. # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
  33. # define RGB_MATRIX_STARTUP_HSV RGB_MATRIX_STARTUP_HUE, RGB_MATRIX_STARTUP_SAT, RGB_MATRIX_STARTUP_VAL
  34. #endif // RGB_MATRIX_ENABLE