LED Matrix: rename LED_DRIVER_LED_COUNT
to DRIVER_LED_TOTAL
(#11858)
This commit is contained in:
parent
6f44c2ec31
commit
9ee1282019
14 changed files with 24 additions and 25 deletions
|
@ -186,7 +186,7 @@ void IS31FL3731_init(uint8_t addr) {
|
|||
}
|
||||
|
||||
void IS31FL3731_set_value(int index, uint8_t value) {
|
||||
if (index >= 0 && index < LED_DRIVER_LED_COUNT) {
|
||||
if (index >= 0 && index < DRIVER_LED_TOTAL) {
|
||||
is31_led led = g_is31_leds[index];
|
||||
|
||||
// Subtract 0x24 to get the second index of g_pwm_buffer
|
||||
|
@ -196,7 +196,7 @@ void IS31FL3731_set_value(int index, uint8_t value) {
|
|||
}
|
||||
|
||||
void IS31FL3731_set_value_all(uint8_t value) {
|
||||
for (int i = 0; i < LED_DRIVER_LED_COUNT; i++) {
|
||||
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
|
||||
IS31FL3731_set_value(i, value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ typedef struct is31_led {
|
|||
uint8_t v;
|
||||
} __attribute__((packed)) is31_led;
|
||||
|
||||
extern const is31_led g_is31_leds[LED_DRIVER_LED_COUNT];
|
||||
extern const is31_led g_is31_leds[DRIVER_LED_TOTAL];
|
||||
|
||||
void IS31FL3731_init(uint8_t addr);
|
||||
void IS31FL3731_write_register(uint8_t addr, uint8_t reg, uint8_t data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue