diff options
| author | Ryan <fauxpark@gmail.com> | 2021-02-15 11:55:13 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-15 11:55:13 +1100 |
| commit | 9ee12820197f38f6618b78f92481f3ffd2d8b7e5 (patch) | |
| tree | d3a35c71242cbfff2868ce85d5348ccb8a68a489 /keyboards | |
| parent | 6f44c2ec31a6aeacd9e90060a9670be03be372fe (diff) | |
| download | qmk_firmware-9ee12820197f38f6618b78f92481f3ffd2d8b7e5.tar.gz qmk_firmware-9ee12820197f38f6618b78f92481f3ffd2d8b7e5.zip | |
LED Matrix: rename `LED_DRIVER_LED_COUNT` to `DRIVER_LED_TOTAL` (#11858)
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/clueboard/66_hotswap/gen1/config.h | 2 | ||||
| -rw-r--r-- | keyboards/clueboard/66_hotswap/gen1/gen1.c | 2 | ||||
| -rwxr-xr-x | keyboards/fallacy/config.h | 2 | ||||
| -rwxr-xr-x | keyboards/fallacy/indicators.c | 4 | ||||
| -rw-r--r-- | keyboards/terrazzo/config.h | 2 | ||||
| -rw-r--r-- | keyboards/terrazzo/terrazzo.c | 8 |
6 files changed, 10 insertions, 10 deletions
diff --git a/keyboards/clueboard/66_hotswap/gen1/config.h b/keyboards/clueboard/66_hotswap/gen1/config.h index eb53dd255..c90689e56 100644 --- a/keyboards/clueboard/66_hotswap/gen1/config.h +++ b/keyboards/clueboard/66_hotswap/gen1/config.h | |||
| @@ -132,4 +132,4 @@ | |||
| 132 | #define I2C1_SDA 9 | 132 | #define I2C1_SDA 9 |
| 133 | 133 | ||
| 134 | #define LED_DRIVER_COUNT 1 | 134 | #define LED_DRIVER_COUNT 1 |
| 135 | #define LED_DRIVER_LED_COUNT 71 | 135 | #define DRIVER_LED_TOTAL 71 |
diff --git a/keyboards/clueboard/66_hotswap/gen1/gen1.c b/keyboards/clueboard/66_hotswap/gen1/gen1.c index 4bee38dc4..dd399317c 100644 --- a/keyboards/clueboard/66_hotswap/gen1/gen1.c +++ b/keyboards/clueboard/66_hotswap/gen1/gen1.c | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | #ifdef LED_MATRIX_ENABLE | 18 | #ifdef LED_MATRIX_ENABLE |
| 19 | #include "is31fl3731-simple.h" | 19 | #include "is31fl3731-simple.h" |
| 20 | 20 | ||
| 21 | const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { | 21 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { |
| 22 | /* Refer to IS31 manual for these locations | 22 | /* Refer to IS31 manual for these locations |
| 23 | * driver | 23 | * driver |
| 24 | * | LED address | 24 | * | LED address |
diff --git a/keyboards/fallacy/config.h b/keyboards/fallacy/config.h index 559b6292b..379d25d9d 100755 --- a/keyboards/fallacy/config.h +++ b/keyboards/fallacy/config.h | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | */ | 45 | */ |
| 46 | #define LED_DRIVER_ADDR_1 0b1110100 | 46 | #define LED_DRIVER_ADDR_1 0b1110100 |
| 47 | #define LED_DRIVER_COUNT 1 | 47 | #define LED_DRIVER_COUNT 1 |
| 48 | #define LED_DRIVER_LED_COUNT 3 | 48 | #define DRIVER_LED_TOTAL 3 |
| 49 | 49 | ||
| 50 | /* Set 0 if debouncing isn't needed | 50 | /* Set 0 if debouncing isn't needed |
| 51 | */ | 51 | */ |
diff --git a/keyboards/fallacy/indicators.c b/keyboards/fallacy/indicators.c index deda752fa..6c80f3167 100755 --- a/keyboards/fallacy/indicators.c +++ b/keyboards/fallacy/indicators.c | |||
| @@ -25,7 +25,7 @@ void init_fallacy_leds(void) { | |||
| 25 | i2c_init(); | 25 | i2c_init(); |
| 26 | IS31FL3731_init(LED_DRIVER_ADDR_1); | 26 | IS31FL3731_init(LED_DRIVER_ADDR_1); |
| 27 | 27 | ||
| 28 | for (int i = 0; i < LED_DRIVER_LED_COUNT; i++) { | 28 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { |
| 29 | IS31FL3731_set_led_control_register(i, true); | 29 | IS31FL3731_set_led_control_register(i, true); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| @@ -54,7 +54,7 @@ void set_fallacy_led(int index, bool state) { | |||
| 54 | 54 | ||
| 55 | /* define LED matrix | 55 | /* define LED matrix |
| 56 | */ | 56 | */ |
| 57 | const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { | 57 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { |
| 58 | {0, C1_1}, | 58 | {0, C1_1}, |
| 59 | {0, C2_1}, | 59 | {0, C2_1}, |
| 60 | {0, C3_1}, | 60 | {0, C3_1}, |
diff --git a/keyboards/terrazzo/config.h b/keyboards/terrazzo/config.h index 4b1dac706..e13a1e0db 100644 --- a/keyboards/terrazzo/config.h +++ b/keyboards/terrazzo/config.h | |||
| @@ -85,7 +85,7 @@ so there is only one configuration. */ | |||
| 85 | 85 | ||
| 86 | #define LED_DRIVER_ADDR_1 0x74 | 86 | #define LED_DRIVER_ADDR_1 0x74 |
| 87 | #define LED_DRIVER_COUNT 1 | 87 | #define LED_DRIVER_COUNT 1 |
| 88 | #define LED_DRIVER_LED_COUNT 105 | 88 | #define DRIVER_LED_TOTAL 105 |
| 89 | #define LED_MATRIX_ROWS 15 | 89 | #define LED_MATRIX_ROWS 15 |
| 90 | #define LED_MATRIX_COLS 7 | 90 | #define LED_MATRIX_COLS 7 |
| 91 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 | 91 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 |
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c index e8a4e03fc..f079ded4d 100644 --- a/keyboards/terrazzo/terrazzo.c +++ b/keyboards/terrazzo/terrazzo.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #include "print.h" | 22 | #include "print.h" |
| 23 | #include "quantum.h" | 23 | #include "quantum.h" |
| 24 | 24 | ||
| 25 | const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { | 25 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { |
| 26 | /* Refer to IS31 manual for these locations | 26 | /* Refer to IS31 manual for these locations |
| 27 | * https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf | 27 | * https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf |
| 28 | */ | 28 | */ |
| @@ -58,7 +58,7 @@ uint8_t terrazzo_effect = 1; | |||
| 58 | 58 | ||
| 59 | void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { | 59 | void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value) { |
| 60 | uint8_t target = y * LED_MATRIX_COLS + x; | 60 | uint8_t target = y * LED_MATRIX_COLS + x; |
| 61 | if (target < LED_DRIVER_LED_COUNT && target >= 0) { | 61 | if (target < DRIVER_LED_TOTAL && target >= 0) { |
| 62 | led_matrix_set_index_value(y * LED_MATRIX_COLS + x, value); | 62 | led_matrix_set_index_value(y * LED_MATRIX_COLS + x, value); |
| 63 | } | 63 | } |
| 64 | } | 64 | } |
| @@ -85,10 +85,10 @@ void terrazzo_scroll_pixel(bool clockwise) { | |||
| 85 | terrazzo_led_index = terrazzo_led_index - 1; | 85 | terrazzo_led_index = terrazzo_led_index - 1; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | if (terrazzo_led_index >= LED_DRIVER_LED_COUNT) { | 88 | if (terrazzo_led_index >= DRIVER_LED_TOTAL) { |
| 89 | terrazzo_led_index = 0; | 89 | terrazzo_led_index = 0; |
| 90 | } else if (terrazzo_led_index <= 0 ) { | 90 | } else if (terrazzo_led_index <= 0 ) { |
| 91 | terrazzo_led_index = LED_DRIVER_LED_COUNT - 1; | 91 | terrazzo_led_index = DRIVER_LED_TOTAL - 1; |
| 92 | } | 92 | } |
| 93 | } | 93 | } |
| 94 | 94 | ||
