Change DRIVER_LED_COUNT to {LED,RGB}_MATRIX_LED_COUNT (#18399)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
// IS31FL3731 driver
|
||||
#define DRIVER_COUNT 2
|
||||
#define DRIVER_LED_TOTAL 64
|
||||
#define RGB_MATRIX_LED_COUNT 64
|
||||
|
||||
// COL2ROW or ROW2COL
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#define DRIVER_1_LED_TOTAL 32
|
||||
#define DRIVER_2_LED_TOTAL 32
|
||||
#define ISSI_DRIVER_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
|
||||
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + WS2812_LED_TOTAL)
|
||||
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL + WS2812_LED_TOTAL)
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
LED_TYPE rgb_matrix_ws2812_array[WS2812_LED_TOTAL];
|
||||
|
||||
const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
// The pin connected to the data pin of the LEDs
|
||||
#define RGB_DI_PIN F1
|
||||
// The number of LEDs connected
|
||||
#define DRIVER_LED_TOTAL 32
|
||||
#define RGB_MATRIX_LED_COUNT 32
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
|
||||
|
||||
@@ -58,8 +58,8 @@
|
||||
|
||||
#define DRIVER_COUNT 1
|
||||
#define DRIVER_1_LED_TOTAL 117
|
||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||
#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL
|
||||
#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
|
||||
#define ISSI_DRIVER_TOTAL RGB_MATRIX_LED_COUNT
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
|
||||
@@ -22,7 +22,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#include "i2c_master.h"
|
||||
#include "drivers/led/issi/is31fl3741.h"
|
||||
const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
|
||||
#define DRIVER_COUNT 1
|
||||
#define DRIVER_1_LED_TOTAL 117
|
||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||
#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL
|
||||
#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
|
||||
#define ISSI_DRIVER_TOTAL RGB_MATRIX_LED_COUNT
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
|
||||
@@ -22,7 +22,7 @@ void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#include "i2c_master.h"
|
||||
#include "drivers/led/issi/is31fl3741.h"
|
||||
const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
/* RGB Matrix */
|
||||
#define RGB_DI_PIN A9
|
||||
#define RGBLED_NUM 28
|
||||
#define DRIVER_LED_TOTAL 28
|
||||
#define RGB_MATRIX_LED_COUNT 28
|
||||
#define NOP_FUDGE 0.4
|
||||
|
||||
// RGB PWM
|
||||
|
||||
Reference in New Issue
Block a user