1
0
Fork 0

WT RGB cleanups (#22379)

This commit is contained in:
Ryan 2023-11-08 00:58:59 +11:00 committed by GitHub
parent 1b303e0453
commit be66e5f2b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 1973 additions and 843 deletions

View file

@ -17,7 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "portico.h"
#ifdef RGB_MATRIX_ENABLE
#ifdef RGB_BACKLIGHT_PORTICO
# include "drivers/led/issi/is31fl3731.h"
#endif
#if defined(RGB_MATRIX_ENABLE) || defined(RGB_BACKLIGHT_PORTICO)
const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
{ 0, C2_1, C3_1, C4_1 },
@ -92,7 +96,9 @@ const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
{ 1, C9_16, C7_15, C6_15 },
{ 1, C8_16, C7_16, C6_16 }
};
#endif
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = {
{
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 },

View file

@ -18,7 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "portico75.h"
#ifdef RGB_MATRIX_ENABLE
#ifdef RGB_BACKLIGHT_PORTICO75
# include "drivers/led/issi/is31fl3741.h"
#endif
#if defined(RGB_MATRIX_ENABLE) || defined(RGB_BACKLIGHT_PORTICO75)
const is31fl3741_led_t PROGMEM g_is31fl3741_leds[IS31FL3741_LED_COUNT] = {
{0, CS18_SW1, CS17_SW1, CS16_SW1},
@ -134,8 +138,10 @@ const is31fl3741_led_t PROGMEM g_is31fl3741_leds[IS31FL3741_LED_COUNT] = {
{0, CS33_SW5, CS32_SW5, CS31_SW5},
{0, CS33_SW6, CS32_SW6, CS31_SW6},
{0, CS33_SW7, CS32_SW7, CS31_SW7},
};
#endif
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14},
{ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29},