logo

qmk_firmware

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

bling.c (1921B)


  1. /*
  2. Copyright 2021 Pierre Chevalier <pierrechevalier83@gmail.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include "quantum.h"
  15. #ifdef RGB_MATRIX_ENABLE
  16. /*
  17. | Left || Right |
  18. | | 3 | | 0 || 0 | | 3 | |
  19. | 5 | | | || | | | 6 |
  20. | | | | || | | | |
  21. | | | | 1 || 1 | | | |
  22. | | 4 | | || | | 4 | |
  23. | 6 | | | 2 || 2 | | | 5 |
  24. */
  25. const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
  26. /* Refer to IS31 manual for these locations
  27. * driver
  28. * | R location
  29. * | | G location
  30. * | | | B location
  31. * | | | | */
  32. {0, C9_10, C8_10, C7_10}, // Left RGB 5
  33. {0, C9_12, C8_12, C7_12}, // Left RGB 3
  34. {0, C9_15, C8_15, C6_14}, // Left RGB 0
  35. {1, C1_2, C2_2, C4_3}, // Right RGB 0
  36. {1, C1_5, C2_5, C3_5}, // Right RGB 3
  37. {1, C1_8, C2_8, C3_8}, // Right RGB 6
  38. {1, C1_7, C2_7, C3_7}, // Right RGB 5
  39. {1, C1_6, C2_6, C3_6}, // Right RGB 4
  40. {1, C1_3, C2_3, C3_3}, // Right RGB 1
  41. {1, C1_4, C2_4, C3_4}, // Right RGB 2
  42. {0, C9_13, C8_13, C7_13}, // Left RGB 2
  43. {0, C9_14, C8_14, C7_14}, // Left RGB 1
  44. {0, C9_11, C8_11, C7_11}, // Left RGB 4
  45. {0, C9_9, C8_9, C7_9}, // Left RGB 6
  46. };
  47. #endif