logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

rgb_matrix_kb.inc (771B)


  1. RGB_MATRIX_EFFECT(trans)
  2. #ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
  3. static bool trans(effect_params_t* params) {
  4. RGB_MATRIX_USE_LIMITS(led_min, led_max);
  5. for (int i = 0; i < 8; i++) {
  6. rgb_matrix_set_color(i, 0x00, 0x00, 0xFF);
  7. }
  8. for (int i = 8; i < 15; i++) {
  9. rgb_matrix_set_color(i, 0xFF, 0x00, 0x92);
  10. }
  11. for (int i = 15; i < 28; i++) {
  12. rgb_matrix_set_color(i, 0xFF, 0xFF, 0xFF);
  13. }
  14. for (int i = 28; i < 33; i++) {
  15. rgb_matrix_set_color(i, 0xFF, 0x00, 0x92);
  16. }
  17. for (int i = 33; i < 38; i++) {
  18. rgb_matrix_set_color(i, 0x00, 0x00, 0xFF);
  19. }
  20. for (int i = 38; i < 44; i++) {
  21. rgb_matrix_set_color(i, 0x00, 0x00, 0xFF);
  22. }
  23. return rgb_matrix_check_finished_leds(led_max);
  24. }
  25. #endif