diff options
51 files changed, 198 insertions, 265 deletions
diff --git a/keyboards/dztech/dz60rgb/v1/config.h b/keyboards/dztech/dz60rgb/v1/config.h index f6ee7c4e2..b4b23a621 100644 --- a/keyboards/dztech/dz60rgb/v1/config.h +++ b/keyboards/dztech/dz60rgb/v1/config.h | |||
@@ -46,8 +46,6 @@ | |||
46 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 46 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
47 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 47 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
48 | # define DRIVER_ADDR_1 0b1010000 | 48 | # define DRIVER_ADDR_1 0b1010000 |
49 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 49 | # define DRIVER_COUNT 1 |
50 | # define DRIVER_COUNT 2 | 50 | # define DRIVER_LED_TOTAL 63 |
51 | # define DRIVER_1_LED_TOTAL 63 | ||
52 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
53 | #endif | 51 | #endif |
diff --git a/keyboards/dztech/dz60rgb/v2/config.h b/keyboards/dztech/dz60rgb/v2/config.h index 6108e9903..338575ee9 100644 --- a/keyboards/dztech/dz60rgb/v2/config.h +++ b/keyboards/dztech/dz60rgb/v2/config.h | |||
@@ -56,8 +56,6 @@ | |||
56 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 56 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
57 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 57 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
58 | # define DRIVER_ADDR_1 0b1010000 | 58 | # define DRIVER_ADDR_1 0b1010000 |
59 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 59 | # define DRIVER_COUNT 1 |
60 | # define DRIVER_COUNT 2 | 60 | # define DRIVER_LED_TOTAL 63 |
61 | # define DRIVER_1_LED_TOTAL 63 | ||
62 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
63 | #endif | 61 | #endif |
diff --git a/keyboards/dztech/dz60rgb/v2_1/config.h b/keyboards/dztech/dz60rgb/v2_1/config.h index 06d504e39..e6c08eab4 100644 --- a/keyboards/dztech/dz60rgb/v2_1/config.h +++ b/keyboards/dztech/dz60rgb/v2_1/config.h | |||
@@ -72,8 +72,6 @@ | |||
72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
74 | # define DRIVER_ADDR_1 0b1010000 | 74 | # define DRIVER_ADDR_1 0b1010000 |
75 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 75 | # define DRIVER_COUNT 1 |
76 | # define DRIVER_COUNT 2 | 76 | # define DRIVER_LED_TOTAL 63 |
77 | # define DRIVER_1_LED_TOTAL 63 | ||
78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
79 | #endif | 77 | #endif |
diff --git a/keyboards/dztech/dz60rgb_ansi/v1/config.h b/keyboards/dztech/dz60rgb_ansi/v1/config.h index dc2a6f4bc..7341c1c02 100644 --- a/keyboards/dztech/dz60rgb_ansi/v1/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v1/config.h | |||
@@ -46,8 +46,6 @@ | |||
46 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 46 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
47 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 47 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
48 | # define DRIVER_ADDR_1 0b1010000 | 48 | # define DRIVER_ADDR_1 0b1010000 |
49 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 49 | # define DRIVER_COUNT 1 |
50 | # define DRIVER_COUNT 2 | 50 | # define DRIVER_LED_TOTAL 61 |
51 | # define DRIVER_1_LED_TOTAL 61 | ||
52 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
53 | #endif | 51 | #endif |
diff --git a/keyboards/dztech/dz60rgb_ansi/v2/config.h b/keyboards/dztech/dz60rgb_ansi/v2/config.h index 6c1e00682..7e6842d8d 100644 --- a/keyboards/dztech/dz60rgb_ansi/v2/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v2/config.h | |||
@@ -56,8 +56,6 @@ | |||
56 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 56 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
57 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 57 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
58 | # define DRIVER_ADDR_1 0b1010000 | 58 | # define DRIVER_ADDR_1 0b1010000 |
59 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 59 | # define DRIVER_COUNT 1 |
60 | # define DRIVER_COUNT 2 | 60 | # define DRIVER_LED_TOTAL 61 |
61 | # define DRIVER_1_LED_TOTAL 61 | ||
62 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
63 | #endif | 61 | #endif |
diff --git a/keyboards/dztech/dz60rgb_wkl/v1/config.h b/keyboards/dztech/dz60rgb_wkl/v1/config.h index 12317c2d3..c242401f6 100644 --- a/keyboards/dztech/dz60rgb_wkl/v1/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v1/config.h | |||
@@ -46,8 +46,6 @@ | |||
46 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 46 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
47 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 47 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
48 | # define DRIVER_ADDR_1 0b1010000 | 48 | # define DRIVER_ADDR_1 0b1010000 |
49 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 49 | # define DRIVER_COUNT 1 |
50 | # define DRIVER_COUNT 2 | 50 | # define DRIVER_LED_TOTAL 62 |
51 | # define DRIVER_1_LED_TOTAL 62 | ||
52 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
53 | #endif | 51 | #endif |
diff --git a/keyboards/dztech/dz60rgb_wkl/v2/config.h b/keyboards/dztech/dz60rgb_wkl/v2/config.h index 945b591ce..45ccf6c9f 100644 --- a/keyboards/dztech/dz60rgb_wkl/v2/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v2/config.h | |||
@@ -56,8 +56,6 @@ | |||
56 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 56 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
57 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 57 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
58 | # define DRIVER_ADDR_1 0b1010000 | 58 | # define DRIVER_ADDR_1 0b1010000 |
59 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 59 | # define DRIVER_COUNT 1 |
60 | # define DRIVER_COUNT 2 | 60 | # define DRIVER_LED_TOTAL 62 |
61 | # define DRIVER_1_LED_TOTAL 62 | ||
62 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
63 | #endif | 61 | #endif |
diff --git a/keyboards/dztech/dz60rgb_wkl/v2_1/config.h b/keyboards/dztech/dz60rgb_wkl/v2_1/config.h index 76b0b6ea5..0e5bb8f67 100644 --- a/keyboards/dztech/dz60rgb_wkl/v2_1/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v2_1/config.h | |||
@@ -72,8 +72,6 @@ | |||
72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
74 | # define DRIVER_ADDR_1 0b1010000 | 74 | # define DRIVER_ADDR_1 0b1010000 |
75 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 75 | # define DRIVER_COUNT 1 |
76 | # define DRIVER_COUNT 2 | 76 | # define DRIVER_LED_TOTAL 62 |
77 | # define DRIVER_1_LED_TOTAL 62 | ||
78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
79 | #endif | 77 | #endif |
diff --git a/keyboards/dztech/dz65rgb/v3/config.h b/keyboards/dztech/dz65rgb/v3/config.h index dbf2f5b3c..053b06fae 100755 --- a/keyboards/dztech/dz65rgb/v3/config.h +++ b/keyboards/dztech/dz65rgb/v3/config.h | |||
@@ -49,9 +49,7 @@ | |||
49 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 49 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
50 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 50 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
51 | # define DRIVER_ADDR_1 0b0110000 | 51 | # define DRIVER_ADDR_1 0b0110000 |
52 | # define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
53 | # define DRIVER_COUNT 1 | 52 | # define DRIVER_COUNT 1 |
54 | # define DRIVER_1_LED_TOTAL 68 | 53 | # define DRIVER_LED_TOTAL 68 |
55 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
56 | # define DRIVER_INDICATOR_LED_TOTAL 0 | 54 | # define DRIVER_INDICATOR_LED_TOTAL 0 |
57 | #endif | 55 | #endif |
diff --git a/keyboards/evyd13/atom47/rev5/config.h b/keyboards/evyd13/atom47/rev5/config.h index f1f8eacfa..07252537a 100644 --- a/keyboards/evyd13/atom47/rev5/config.h +++ b/keyboards/evyd13/atom47/rev5/config.h | |||
@@ -157,8 +157,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
157 | // ADDR2 represents A3:A2 of the 7-bit address. | 157 | // ADDR2 represents A3:A2 of the 7-bit address. |
158 | // The result is: 0b101(ADDR2)(ADDR1) | 158 | // The result is: 0b101(ADDR2)(ADDR1) |
159 | #define DRIVER_ADDR_1 0b1010000 | 159 | #define DRIVER_ADDR_1 0b1010000 |
160 | #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | ||
161 | 160 | ||
162 | #define DRIVER_COUNT 2 | 161 | #define DRIVER_COUNT 1 |
163 | #define DRIVER_1_LED_TOTAL 64 | 162 | #define DRIVER_LED_TOTAL 64 |
164 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL \ No newline at end of file | ||
diff --git a/keyboards/exclusive/e6_rgb/config.h b/keyboards/exclusive/e6_rgb/config.h index b1b8b1bed..fd221f176 100644 --- a/keyboards/exclusive/e6_rgb/config.h +++ b/keyboards/exclusive/e6_rgb/config.h | |||
@@ -31,8 +31,6 @@ | |||
31 | #define RGBLIGHT_VAL_STEP 8 | 31 | #define RGBLIGHT_VAL_STEP 8 |
32 | 32 | ||
33 | #define DRIVER_ADDR_1 0b1010000 | 33 | #define DRIVER_ADDR_1 0b1010000 |
34 | #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | ||
35 | 34 | ||
36 | #define DRIVER_COUNT 2 | 35 | #define DRIVER_COUNT 1 |
37 | #define DRIVER_1_LED_TOTAL 63 | 36 | #define DRIVER_LED_TOTAL 63 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
diff --git a/keyboards/kbdfans/bella/rgb/config.h b/keyboards/kbdfans/bella/rgb/config.h index 07594a34a..7d93ecb8d 100644 --- a/keyboards/kbdfans/bella/rgb/config.h +++ b/keyboards/kbdfans/bella/rgb/config.h | |||
@@ -48,10 +48,8 @@ | |||
48 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 48 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
49 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 49 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
50 | #define DRIVER_ADDR_1 0b0110000 | 50 | #define DRIVER_ADDR_1 0b0110000 |
51 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
52 | #define DRIVER_COUNT 1 | 51 | #define DRIVER_COUNT 1 |
53 | #define DRIVER_1_LED_TOTAL 108 | 52 | #define DRIVER_LED_TOTAL 108 |
54 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
55 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 53 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
56 | #endif | 54 | #endif |
57 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 | 55 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 |
diff --git a/keyboards/kbdfans/bella/rgb_iso/config.h b/keyboards/kbdfans/bella/rgb_iso/config.h index 4fda99867..9d931cbe8 100644 --- a/keyboards/kbdfans/bella/rgb_iso/config.h +++ b/keyboards/kbdfans/bella/rgb_iso/config.h | |||
@@ -48,10 +48,8 @@ | |||
48 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 48 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
49 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 49 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
50 | #define DRIVER_ADDR_1 0b0110000 | 50 | #define DRIVER_ADDR_1 0b0110000 |
51 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
52 | #define DRIVER_COUNT 1 | 51 | #define DRIVER_COUNT 1 |
53 | #define DRIVER_1_LED_TOTAL 109 | 52 | #define DRIVER_LED_TOTAL 109 |
54 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
55 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 53 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
56 | #endif | 54 | #endif |
57 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 | 55 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 |
diff --git a/keyboards/kbdfans/boop65/rgb/config.h b/keyboards/kbdfans/boop65/rgb/config.h index 71db0f8b5..ba9c627c1 100644 --- a/keyboards/kbdfans/boop65/rgb/config.h +++ b/keyboards/kbdfans/boop65/rgb/config.h | |||
@@ -54,8 +54,7 @@ | |||
54 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 54 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
55 | # define DRIVER_ADDR_1 0b0110000 | 55 | # define DRIVER_ADDR_1 0b0110000 |
56 | # define DRIVER_COUNT 1 | 56 | # define DRIVER_COUNT 1 |
57 | # define DRIVER_1_LED_TOTAL 83 | 57 | # define DRIVER_LED_TOTAL 83 |
58 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
59 | # define DRIVER_INDICATOR_LED_TOTAL 0 | 58 | # define DRIVER_INDICATOR_LED_TOTAL 0 |
60 | #endif | 59 | #endif |
61 | 60 | ||
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h index 1ee83cdc9..7111bd5fa 100755 --- a/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h +++ b/keyboards/kbdfans/kbd67/mkiirgb/v3/config.h | |||
@@ -67,9 +67,7 @@ | |||
67 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 67 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
68 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 68 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
69 | #define DRIVER_ADDR_1 0b0110000 | 69 | #define DRIVER_ADDR_1 0b0110000 |
70 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
71 | #define DRIVER_COUNT 1 | 70 | #define DRIVER_COUNT 1 |
72 | #define DRIVER_1_LED_TOTAL 67 | 71 | #define DRIVER_LED_TOTAL 67 |
73 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
74 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 72 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
75 | #endif | 73 | #endif |
diff --git a/keyboards/kbdfans/kbdmini/config.h b/keyboards/kbdfans/kbdmini/config.h index fc65f4341..beb0637ad 100644 --- a/keyboards/kbdfans/kbdmini/config.h +++ b/keyboards/kbdfans/kbdmini/config.h | |||
@@ -54,10 +54,8 @@ | |||
54 | #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 54 | #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
55 | #define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 55 | #define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
56 | #define DRIVER_ADDR_1 0b1010000 | 56 | #define DRIVER_ADDR_1 0b1010000 |
57 | #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 57 | #define DRIVER_COUNT 1 |
58 | #define DRIVER_COUNT 2 | 58 | #define DRIVER_LED_TOTAL 52 |
59 | #define DRIVER_1_LED_TOTAL 52 | ||
60 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
61 | #endif | 59 | #endif |
62 | 60 | ||
63 | /* disable these deprecated features by default */ | 61 | /* disable these deprecated features by default */ |
diff --git a/keyboards/latin60rgb/config.h b/keyboards/latin60rgb/config.h index 97b481291..5a4b639ab 100644 --- a/keyboards/latin60rgb/config.h +++ b/keyboards/latin60rgb/config.h | |||
@@ -72,8 +72,6 @@ | |||
72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
74 | # define DRIVER_ADDR_1 0b1010000 | 74 | # define DRIVER_ADDR_1 0b1010000 |
75 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 75 | # define DRIVER_COUNT 1 |
76 | # define DRIVER_COUNT 2 | 76 | # define DRIVER_LED_TOTAL 60 |
77 | # define DRIVER_1_LED_TOTAL 60 | ||
78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
79 | #endif | 77 | #endif |
diff --git a/keyboards/latin6rgb/config.h b/keyboards/latin6rgb/config.h index 174c23c30..fa9abbea6 100644 --- a/keyboards/latin6rgb/config.h +++ b/keyboards/latin6rgb/config.h | |||
@@ -84,14 +84,9 @@ | |||
84 | // 0b1110101 AD <-> SCL | 84 | // 0b1110101 AD <-> SCL |
85 | // 0b1110110 AD <-> SDA | 85 | // 0b1110110 AD <-> SDA |
86 | #define DRIVER_ADDR_1 0b1110100 | 86 | #define DRIVER_ADDR_1 0b1110100 |
87 | //#define DRIVER_ADDR_2 0b1110110 | ||
88 | 87 | ||
89 | #define DRIVER_COUNT 1 | 88 | #define DRIVER_COUNT 1 |
90 | #define DRIVER_1_LED_TOTAL 6 | 89 | #define DRIVER_LED_TOTAL 6 |
91 | //#define DRIVER_1_LED_TOTAL 25 | ||
92 | //#define DRIVER_2_LED_TOTAL 24 | ||
93 | //#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | ||
94 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
95 | #endif | 90 | #endif |
96 | //#define RGB_DI_PIN B7 | 91 | //#define RGB_DI_PIN B7 |
97 | //#ifdef RGB_DI_PIN | 92 | //#ifdef RGB_DI_PIN |
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev3/config.h b/keyboards/mechlovin/adelais/rgb_led/rev3/config.h index f55d386f7..5b3a8e825 100644 --- a/keyboards/mechlovin/adelais/rgb_led/rev3/config.h +++ b/keyboards/mechlovin/adelais/rgb_led/rev3/config.h | |||
@@ -50,10 +50,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
50 | // 0b1110101 AD <-> SCL | 50 | // 0b1110101 AD <-> SCL |
51 | // 0b1110110 AD <-> SDA | 51 | // 0b1110110 AD <-> SDA |
52 | #define DRIVER_ADDR_1 0b0110010 | 52 | #define DRIVER_ADDR_1 0b0110010 |
53 | #define DRIVER_ADDR_2 0b0110010 | ||
54 | #define DRIVER_COUNT 1 | 53 | #define DRIVER_COUNT 1 |
55 | #define DRIVER_1_LED_TOTAL 66 | 54 | #define DRIVER_LED_TOTAL 66 |
56 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
57 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 55 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
58 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 56 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
59 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 57 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
diff --git a/keyboards/mechlovin/delphine/rgb_led/config.h b/keyboards/mechlovin/delphine/rgb_led/config.h index 9a653d759..edb476ecb 100644 --- a/keyboards/mechlovin/delphine/rgb_led/config.h +++ b/keyboards/mechlovin/delphine/rgb_led/config.h | |||
@@ -33,10 +33,7 @@ | |||
33 | // 0b1110101 AD <-> SCL | 33 | // 0b1110101 AD <-> SCL |
34 | // 0b1110110 AD <-> SDA | 34 | // 0b1110110 AD <-> SDA |
35 | #define DRIVER_ADDR_1 0b1110110 | 35 | #define DRIVER_ADDR_1 0b1110110 |
36 | #define DRIVER_ADDR_2 0b1110100 | ||
37 | #define DRIVER_COUNT 1 | 36 | #define DRIVER_COUNT 1 |
38 | #define DRIVER_1_LED_TOTAL 25 | ||
39 | #define DRIVER_2_LED_TOTAL 0 | ||
40 | #define DRIVER_LED_TOTAL 25 | 37 | #define DRIVER_LED_TOTAL 25 |
41 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 38 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
42 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 39 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
diff --git a/keyboards/mechlovin/infinity87/rgb_rev1/config.h b/keyboards/mechlovin/infinity87/rgb_rev1/config.h index 76c6e0db7..8cef83f89 100644 --- a/keyboards/mechlovin/infinity87/rgb_rev1/config.h +++ b/keyboards/mechlovin/infinity87/rgb_rev1/config.h | |||
@@ -44,8 +44,6 @@ | |||
44 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 44 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
45 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 45 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
46 | #define DRIVER_ADDR_1 0b0110010 | 46 | #define DRIVER_ADDR_1 0b0110010 |
47 | #define DRIVER_ADDR_2 0b0110010 // this is here for compliancy reasons. | ||
48 | #define DRIVER_COUNT 1 | 47 | #define DRIVER_COUNT 1 |
49 | #define DRIVER_1_LED_TOTAL 91 | 48 | #define DRIVER_LED_TOTAL 91 |
50 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
51 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 49 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mach80/rev1/config.h b/keyboards/melgeek/mach80/rev1/config.h index e3ae4de76..868832d80 100755 --- a/keyboards/melgeek/mach80/rev1/config.h +++ b/keyboards/melgeek/mach80/rev1/config.h | |||
@@ -34,8 +34,7 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION ROW2COL | 35 | #define DIODE_DIRECTION ROW2COL |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 97 | 37 | #define DRIVER_LED_TOTAL 97 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 3 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 3 |
40 | 39 | ||
41 | 40 | ||
diff --git a/keyboards/melgeek/mj61/config.h b/keyboards/melgeek/mj61/config.h index 6ba19dd75..313c4473b 100644 --- a/keyboards/melgeek/mj61/config.h +++ b/keyboards/melgeek/mj61/config.h | |||
@@ -47,5 +47,4 @@ | |||
47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
49 | #define DRIVER_ADDR_1 0b0110000 | 49 | #define DRIVER_ADDR_1 0b0110000 |
50 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
51 | #define DRIVER_COUNT 1 | 50 | #define DRIVER_COUNT 1 |
diff --git a/keyboards/melgeek/mj61/rev1/config.h b/keyboards/melgeek/mj61/rev1/config.h index 9586a6930..9d73a4fe9 100644 --- a/keyboards/melgeek/mj61/rev1/config.h +++ b/keyboards/melgeek/mj61/rev1/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 63 | 37 | #define DRIVER_LED_TOTAL 63 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj61/rev2/config.h b/keyboards/melgeek/mj61/rev2/config.h index e6c6e9610..616426df6 100644 --- a/keyboards/melgeek/mj61/rev2/config.h +++ b/keyboards/melgeek/mj61/rev2/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 71 | 37 | #define DRIVER_LED_TOTAL 71 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj63/config.h b/keyboards/melgeek/mj63/config.h index 46d3b0fb7..0292fa646 100644 --- a/keyboards/melgeek/mj63/config.h +++ b/keyboards/melgeek/mj63/config.h | |||
@@ -47,5 +47,4 @@ | |||
47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
49 | #define DRIVER_ADDR_1 0b0110000 | 49 | #define DRIVER_ADDR_1 0b0110000 |
50 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
51 | #define DRIVER_COUNT 1 | 50 | #define DRIVER_COUNT 1 |
diff --git a/keyboards/melgeek/mj63/rev1/config.h b/keyboards/melgeek/mj63/rev1/config.h index 1f6914f66..75f7da43a 100644 --- a/keyboards/melgeek/mj63/rev1/config.h +++ b/keyboards/melgeek/mj63/rev1/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 65 | 37 | #define DRIVER_LED_TOTAL 65 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj63/rev2/config.h b/keyboards/melgeek/mj63/rev2/config.h index e6c6e9610..616426df6 100644 --- a/keyboards/melgeek/mj63/rev2/config.h +++ b/keyboards/melgeek/mj63/rev2/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 71 | 37 | #define DRIVER_LED_TOTAL 71 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj64/config.h b/keyboards/melgeek/mj64/config.h index 920d34acd..c3741bc06 100644 --- a/keyboards/melgeek/mj64/config.h +++ b/keyboards/melgeek/mj64/config.h | |||
@@ -47,5 +47,4 @@ | |||
47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
49 | #define DRIVER_ADDR_1 0b0110000 | 49 | #define DRIVER_ADDR_1 0b0110000 |
50 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
51 | #define DRIVER_COUNT 1 | 50 | #define DRIVER_COUNT 1 |
diff --git a/keyboards/melgeek/mj64/rev1/config.h b/keyboards/melgeek/mj64/rev1/config.h index fb45ef358..db846cb01 100644 --- a/keyboards/melgeek/mj64/rev1/config.h +++ b/keyboards/melgeek/mj64/rev1/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 64 | 37 | #define DRIVER_LED_TOTAL 64 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj64/rev2/config.h b/keyboards/melgeek/mj64/rev2/config.h index 8af6833b2..fbe170f18 100644 --- a/keyboards/melgeek/mj64/rev2/config.h +++ b/keyboards/melgeek/mj64/rev2/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 66 | 37 | #define DRIVER_LED_TOTAL 66 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj64/rev3/config.h b/keyboards/melgeek/mj64/rev3/config.h index 26909d559..dfde77f24 100644 --- a/keyboards/melgeek/mj64/rev3/config.h +++ b/keyboards/melgeek/mj64/rev3/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 72 | 37 | #define DRIVER_LED_TOTAL 72 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mj65/config.h b/keyboards/melgeek/mj65/config.h index 399c243ac..bf8ca7c2c 100644 --- a/keyboards/melgeek/mj65/config.h +++ b/keyboards/melgeek/mj65/config.h | |||
@@ -47,5 +47,4 @@ | |||
47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
49 | #define DRIVER_ADDR_1 0b0110000 | 49 | #define DRIVER_ADDR_1 0b0110000 |
50 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
51 | #define DRIVER_COUNT 1 | 50 | #define DRIVER_COUNT 1 |
diff --git a/keyboards/melgeek/mj65/rev3/config.h b/keyboards/melgeek/mj65/rev3/config.h index 7955f4be9..d9a8c5a81 100644 --- a/keyboards/melgeek/mj65/rev3/config.h +++ b/keyboards/melgeek/mj65/rev3/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 76 | 37 | #define DRIVER_LED_TOTAL 76 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
diff --git a/keyboards/melgeek/mojo68/config.h b/keyboards/melgeek/mojo68/config.h index c4c1dbb0b..923c15b06 100755 --- a/keyboards/melgeek/mojo68/config.h +++ b/keyboards/melgeek/mojo68/config.h | |||
@@ -47,5 +47,4 @@ | |||
47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 47 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
49 | #define DRIVER_ADDR_1 0b0110000 | 49 | #define DRIVER_ADDR_1 0b0110000 |
50 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
51 | #define DRIVER_COUNT 1 | 50 | #define DRIVER_COUNT 1 |
diff --git a/keyboards/melgeek/mojo68/rev1/config.h b/keyboards/melgeek/mojo68/rev1/config.h index aed2a45c3..74a7e3dc2 100755 --- a/keyboards/melgeek/mojo68/rev1/config.h +++ b/keyboards/melgeek/mojo68/rev1/config.h | |||
@@ -34,6 +34,5 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 68 | 37 | #define DRIVER_LED_TOTAL 68 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 3 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 3 |
diff --git a/keyboards/melgeek/mojo75/config.h b/keyboards/melgeek/mojo75/config.h index d5bb4b454..34f64e844 100644 --- a/keyboards/melgeek/mojo75/config.h +++ b/keyboards/melgeek/mojo75/config.h | |||
@@ -48,5 +48,4 @@ | |||
48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 48 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
49 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 49 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
50 | #define DRIVER_ADDR_1 0b0110000 | 50 | #define DRIVER_ADDR_1 0b0110000 |
51 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
52 | #define DRIVER_COUNT 1 | 51 | #define DRIVER_COUNT 1 |
diff --git a/keyboards/melgeek/mojo75/rev1/config.h b/keyboards/melgeek/mojo75/rev1/config.h index c841c96fd..eaac850b6 100644 --- a/keyboards/melgeek/mojo75/rev1/config.h +++ b/keyboards/melgeek/mojo75/rev1/config.h | |||
@@ -34,7 +34,6 @@ | |||
34 | /* COL2ROW, ROW2COL*/ | 34 | /* COL2ROW, ROW2COL*/ |
35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
36 | 36 | ||
37 | #define DRIVER_1_LED_TOTAL 92 | 37 | #define DRIVER_LED_TOTAL 92 |
38 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
39 | #define DRIVER_INDICATOR_LED_TOTAL 0 | 38 | #define DRIVER_INDICATOR_LED_TOTAL 0 |
40 | 39 | ||
diff --git a/keyboards/melgeek/z70ultra/config.h b/keyboards/melgeek/z70ultra/config.h index e4530e2ea..d01d0222c 100644 --- a/keyboards/melgeek/z70ultra/config.h +++ b/keyboards/melgeek/z70ultra/config.h | |||
@@ -46,8 +46,6 @@ | |||
46 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | 46 | //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR |
47 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 47 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
48 | #define DRIVER_ADDR_1 0b0110000 | 48 | #define DRIVER_ADDR_1 0b0110000 |
49 | #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons. | ||
50 | #define DRIVER_COUNT 1 | 49 | #define DRIVER_COUNT 1 |
51 | #define DRIVER_1_LED_TOTAL 69 | 50 | #define DRIVER_LED_TOTAL 69 |
52 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
53 | #define DRIVER_INDICATOR_LED_TOTAL 6 | 51 | #define DRIVER_INDICATOR_LED_TOTAL 6 |
diff --git a/keyboards/miller/gm862/config.h b/keyboards/miller/gm862/config.h index e6e1b4c1d..7c4bfacd4 100644 --- a/keyboards/miller/gm862/config.h +++ b/keyboards/miller/gm862/config.h | |||
@@ -55,8 +55,6 @@ | |||
55 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 55 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
56 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 56 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
57 | # define DRIVER_ADDR_1 0b1010000 | 57 | # define DRIVER_ADDR_1 0b1010000 |
58 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | 58 | # define DRIVER_COUNT 1 |
59 | # define DRIVER_COUNT 2 | 59 | # define DRIVER_LED_TOTAL 62 |
60 | # define DRIVER_1_LED_TOTAL 62 | ||
61 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
62 | #endif | 60 | #endif |
diff --git a/keyboards/mt64rgb/config.h b/keyboards/mt64rgb/config.h index 8574d7236..810285d1e 100644 --- a/keyboards/mt64rgb/config.h +++ b/keyboards/mt64rgb/config.h | |||
@@ -54,11 +54,9 @@ | |||
54 | #define RGB_MATRIX_LED_PROCESS_LIMIT 20 | 54 | #define RGB_MATRIX_LED_PROCESS_LIMIT 20 |
55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
56 | #define DRIVER_ADDR_1 0b1010000 | 56 | #define DRIVER_ADDR_1 0b1010000 |
57 | #define DRIVER_ADDR_2 0b1010000 | ||
58 | 57 | ||
59 | #define DRIVER_COUNT 2 | 58 | #define DRIVER_COUNT 1 |
60 | #define DRIVER_1_LED_TOTAL 64 | 59 | #define DRIVER_LED_TOTAL 64 |
61 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
62 | 60 | ||
63 | 61 | ||
64 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | 62 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE |
diff --git a/keyboards/neson_design/n6/config.h b/keyboards/neson_design/n6/config.h index d3b49becb..4a9d3c56c 100644 --- a/keyboards/neson_design/n6/config.h +++ b/keyboards/neson_design/n6/config.h | |||
@@ -59,9 +59,8 @@ | |||
59 | #define RGBLIGHT_SAT_STEP 8 | 59 | #define RGBLIGHT_SAT_STEP 8 |
60 | #define RGBLIGHT_VAL_STEP 8 | 60 | #define RGBLIGHT_VAL_STEP 8 |
61 | 61 | ||
62 | #define DRIVER_1_LED_TOTAL 32 | ||
63 | #define DRIVER_ADDR_1 0b1110100 | 62 | #define DRIVER_ADDR_1 0b1110100 |
64 | #define DRIVER_COUNT 1 | 63 | #define DRIVER_COUNT 1 |
65 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) | 64 | #define DRIVER_LED_TOTAL 32 |
66 | 65 | ||
67 | #define CAPS_PIN F5 | 66 | #define CAPS_PIN F5 |
diff --git a/keyboards/opendeck/32/rev1/config.h b/keyboards/opendeck/32/rev1/config.h index 8b25ab256..9c7d4ddd9 100644 --- a/keyboards/opendeck/32/rev1/config.h +++ b/keyboards/opendeck/32/rev1/config.h | |||
@@ -36,8 +36,7 @@ | |||
36 | // RGB matrix | 36 | // RGB matrix |
37 | #define DRIVER_ADDR_1 0b1110100 | 37 | #define DRIVER_ADDR_1 0b1110100 |
38 | #define DRIVER_COUNT 1 | 38 | #define DRIVER_COUNT 1 |
39 | #define DRIVER_1_LED_TOTAL (4 * 8 * 3) | 39 | #define DRIVER_LED_TOTAL (4 * 8 * 3) |
40 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) | ||
41 | #define RGB_DISABLE_WHEN_USB_SUSPENDED | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
42 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL | 41 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL |
43 | #define RGB_MATRIX_DISABLE_KEYCODES | 42 | #define RGB_MATRIX_DISABLE_KEYCODES |
diff --git a/keyboards/owlab/voice65/hotswap/config.h b/keyboards/owlab/voice65/hotswap/config.h index fc894bd3c..7a389264d 100644 --- a/keyboards/owlab/voice65/hotswap/config.h +++ b/keyboards/owlab/voice65/hotswap/config.h | |||
@@ -77,10 +77,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
77 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 77 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
78 | # define RGB_MATRIX_STARTUP_VAL 128 | 78 | # define RGB_MATRIX_STARTUP_VAL 128 |
79 | # define DRIVER_ADDR_1 0b0110000 | 79 | # define DRIVER_ADDR_1 0b0110000 |
80 | # define DRIVER_ADDR_2 0b0110000 | 80 | # define DRIVER_COUNT 1 |
81 | # define DRIVER_COUNT 2 | 81 | # define DRIVER_LED_TOTAL 67 |
82 | # define DRIVER_1_LED_TOTAL 67 | ||
83 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
84 | #endif | 82 | #endif |
85 | 83 | ||
86 | /* Encoder */ | 84 | /* Encoder */ |
diff --git a/keyboards/owlab/voice65/soldered/config.h b/keyboards/owlab/voice65/soldered/config.h index e0e53a5d5..9e5dc7bb1 100644 --- a/keyboards/owlab/voice65/soldered/config.h +++ b/keyboards/owlab/voice65/soldered/config.h | |||
@@ -76,10 +76,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
76 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 76 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
77 | # define RGB_MATRIX_STARTUP_VAL 128 | 77 | # define RGB_MATRIX_STARTUP_VAL 128 |
78 | # define DRIVER_ADDR_1 0b0110000 | 78 | # define DRIVER_ADDR_1 0b0110000 |
79 | # define DRIVER_ADDR_2 0b0110000 | 79 | # define DRIVER_COUNT 1 |
80 | # define DRIVER_COUNT 2 | 80 | # define DRIVER_LED_TOTAL 71 |
81 | # define DRIVER_1_LED_TOTAL 71 | ||
82 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
83 | #endif | 81 | #endif |
84 | 82 | ||
85 | /* Encoder */ | 83 | /* Encoder */ |
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h index 4d1f1e92f..504ab812e 100644 --- a/keyboards/planck/ez/config.h +++ b/keyboards/planck/ez/config.h | |||
@@ -120,11 +120,9 @@ | |||
120 | //#define WS2812_EXTERNAL_PULLUP | 120 | //#define WS2812_EXTERNAL_PULLUP |
121 | 121 | ||
122 | #define DRIVER_ADDR_1 0b1010000 | 122 | #define DRIVER_ADDR_1 0b1010000 |
123 | #define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | ||
124 | 123 | ||
125 | #define DRIVER_COUNT 1 | 124 | #define DRIVER_COUNT 1 |
126 | #define DRIVER_1_LED_TOTAL 47 | 125 | #define DRIVER_LED_TOTAL 47 |
127 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
128 | 126 | ||
129 | #define RGB_MATRIX_KEYPRESSES | 127 | #define RGB_MATRIX_KEYPRESSES |
130 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 128 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
diff --git a/keyboards/smallkeyboard/config.h b/keyboards/smallkeyboard/config.h index 689d53d54..24c81258c 100644 --- a/keyboards/smallkeyboard/config.h +++ b/keyboards/smallkeyboard/config.h | |||
@@ -84,14 +84,9 @@ | |||
84 | // 0b1110101 AD <-> SCL | 84 | // 0b1110101 AD <-> SCL |
85 | // 0b1110110 AD <-> SDA | 85 | // 0b1110110 AD <-> SDA |
86 | #define DRIVER_ADDR_1 0b1110100 | 86 | #define DRIVER_ADDR_1 0b1110100 |
87 | //#define DRIVER_ADDR_2 0b1110110 | ||
88 | 87 | ||
89 | #define DRIVER_COUNT 1 | 88 | #define DRIVER_COUNT 1 |
90 | #define DRIVER_1_LED_TOTAL 6 | 89 | #define DRIVER_LED_TOTAL 6 |
91 | //#define DRIVER_1_LED_TOTAL 25 | ||
92 | //#define DRIVER_2_LED_TOTAL 24 | ||
93 | //#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | ||
94 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
95 | #endif | 90 | #endif |
96 | //#define RGB_DI_PIN B7 | 91 | //#define RGB_DI_PIN B7 |
97 | //#ifdef RGB_DI_PIN | 92 | //#ifdef RGB_DI_PIN |
diff --git a/keyboards/xbows/numpad/config.h b/keyboards/xbows/numpad/config.h index d3ef6ed9d..4617ce36a 100644 --- a/keyboards/xbows/numpad/config.h +++ b/keyboards/xbows/numpad/config.h | |||
@@ -46,6 +46,5 @@ | |||
46 | 46 | ||
47 | # define DRIVER_ADDR_1 0b1110111 | 47 | # define DRIVER_ADDR_1 0b1110111 |
48 | # define DRIVER_COUNT 1 | 48 | # define DRIVER_COUNT 1 |
49 | # define DRIVER_1_LED_TOTAL 22 | 49 | # define DRIVER_LED_TOTAL 22 |
50 | # define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) | ||
51 | #endif | 50 | #endif |
diff --git a/keyboards/xelus/pachi/rgb/config.h b/keyboards/xelus/pachi/rgb/config.h index 3bc7071ec..f144db47a 100644 --- a/keyboards/xelus/pachi/rgb/config.h +++ b/keyboards/xelus/pachi/rgb/config.h | |||
@@ -60,11 +60,10 @@ | |||
60 | 60 | ||
61 | // RGB Matrix defines | 61 | // RGB Matrix defines |
62 | #define DRIVER_ADDR_1 0b0110000 | 62 | #define DRIVER_ADDR_1 0b0110000 |
63 | #define DRIVER_ADDR_2 0b0110001 | 63 | //#define DRIVER_ADDR_2 0b0110001 |
64 | 64 | ||
65 | #define DRIVER_COUNT 1 | 65 | #define DRIVER_COUNT 1 |
66 | #define DRIVER_1_LED_TOTAL 117 | 66 | #define DRIVER_LED_TOTAL 117 |
67 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
68 | #define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL | 67 | #define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL |
69 | 68 | ||
70 | #define RGB_MATRIX_STARTUP_VAL 80 | 69 | #define RGB_MATRIX_STARTUP_VAL 80 |
diff --git a/quantum/led_matrix/led_matrix_drivers.c b/quantum/led_matrix/led_matrix_drivers.c index 1d46b2c50..efe0082dc 100644 --- a/quantum/led_matrix/led_matrix_drivers.c +++ b/quantum/led_matrix/led_matrix_drivers.c | |||
@@ -26,128 +26,123 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | #if defined(IS31FL3731) || defined(IS31FL3733) | 28 | #if defined(IS31FL3731) || defined(IS31FL3733) |
29 | |||
30 | # include "i2c_master.h" | 29 | # include "i2c_master.h" |
31 | 30 | ||
32 | static void init(void) { | 31 | static void init(void) { |
33 | i2c_init(); | 32 | i2c_init(); |
34 | # ifdef IS31FL3731 | 33 | |
35 | # ifdef LED_DRIVER_ADDR_1 | 34 | # if defined(IS31FL3731) |
36 | IS31FL3731_init(LED_DRIVER_ADDR_1); | 35 | IS31FL3731_init(LED_DRIVER_ADDR_1); |
37 | # endif | 36 | # if defined(LED_DRIVER_ADDR_2) |
38 | # ifdef LED_DRIVER_ADDR_2 | ||
39 | IS31FL3731_init(LED_DRIVER_ADDR_2); | 37 | IS31FL3731_init(LED_DRIVER_ADDR_2); |
40 | # endif | 38 | # if defined(LED_DRIVER_ADDR_3) |
41 | # ifdef LED_DRIVER_ADDR_3 | ||
42 | IS31FL3731_init(LED_DRIVER_ADDR_3); | 39 | IS31FL3731_init(LED_DRIVER_ADDR_3); |
43 | # endif | 40 | # if defined(LED_DRIVER_ADDR_4) |
44 | # ifdef LED_DRIVER_ADDR_4 | ||
45 | IS31FL3731_init(LED_DRIVER_ADDR_4); | 41 | IS31FL3731_init(LED_DRIVER_ADDR_4); |
46 | # endif | 42 | # endif |
47 | # else | ||
48 | # ifdef LED_DRIVER_ADDR_1 | ||
49 | # ifndef LED_DRIVER_SYNC_1 | ||
50 | # define LED_DRIVER_SYNC_1 0 | ||
51 | # endif | 43 | # endif |
52 | IS31FL3733_init(LED_DRIVER_ADDR_1, LED_DRIVER_SYNC_1); | ||
53 | # endif | 44 | # endif |
54 | # ifdef LED_DRIVER_ADDR_2 | 45 | |
55 | # ifndef LED_DRIVER_SYNC_2 | 46 | # elif defined(IS31FL3733) |
47 | # if !defined(LED_DRIVER_SYNC_1) | ||
48 | # define LED_DRIVER_SYNC_1 0 | ||
49 | # endif | ||
50 | IS31FL3733_init(LED_DRIVER_ADDR_1, LED_DRIVER_SYNC_1); | ||
51 | # if defined(LED_DRIVER_ADDR_2) | ||
52 | # if !defined(LED_DRIVER_SYNC_2) | ||
56 | # define LED_DRIVER_SYNC_2 0 | 53 | # define LED_DRIVER_SYNC_2 0 |
57 | # endif | 54 | # endif |
58 | IS31FL3733_init(LED_DRIVER_ADDR_2, LED_DRIVER_SYNC_2); | 55 | IS31FL3733_init(LED_DRIVER_ADDR_2, LED_DRIVER_SYNC_2); |
59 | # endif | 56 | # if defined(LED_DRIVER_ADDR_3) |
60 | # ifdef LED_DRIVER_ADDR_3 | 57 | # if !defined(LED_DRIVER_SYNC_3) |
61 | # ifndef LED_DRIVER_SYNC_3 | 58 | # define LED_DRIVER_SYNC_3 0 |
62 | # define LED_DRIVER_SYNC_3 0 | 59 | # endif |
63 | # endif | ||
64 | IS31FL3733_init(LED_DRIVER_ADDR_3, LED_DRIVER_SYNC_3); | 60 | IS31FL3733_init(LED_DRIVER_ADDR_3, LED_DRIVER_SYNC_3); |
65 | # endif | 61 | # if defined(LED_DRIVER_ADDR_4) |
66 | # ifdef LED_DRIVER_ADDR_4 | 62 | # if !defined(LED_DRIVER_SYNC_4) |
67 | # ifndef LED_DRIVER_SYNC_4 | 63 | # define LED_DRIVER_SYNC_4 0 |
68 | # define LED_DRIVER_SYNC_4 0 | 64 | # endif |
69 | # endif | ||
70 | IS31FL3733_init(LED_DRIVER_ADDR_4, LED_DRIVER_SYNC_4); | 65 | IS31FL3733_init(LED_DRIVER_ADDR_4, LED_DRIVER_SYNC_4); |
66 | # endif | ||
67 | # endif | ||
71 | # endif | 68 | # endif |
72 | # endif | 69 | # endif |
73 | 70 | ||
74 | for (int index = 0; index < DRIVER_LED_TOTAL; index++) { | 71 | for (int index = 0; index < DRIVER_LED_TOTAL; index++) { |
75 | # ifdef IS31FL3731 | 72 | # if defined(IS31FL3731) |
76 | IS31FL3731_set_led_control_register(index, true); | 73 | IS31FL3731_set_led_control_register(index, true); |
77 | # else | 74 | # elif defined(IS31FL3733) |
78 | IS31FL3733_set_led_control_register(index, true); | 75 | IS31FL3733_set_led_control_register(index, true); |
79 | # endif | 76 | # endif |
80 | } | 77 | } |
78 | |||
81 | // This actually updates the LED drivers | 79 | // This actually updates the LED drivers |
82 | # ifdef IS31FL3731 | 80 | # if defined(IS31FL3731) |
83 | # ifdef LED_DRIVER_ADDR_1 | ||
84 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_1, 0); | 81 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_1, 0); |
85 | # endif | 82 | # if defined(LED_DRIVER_ADDR_2) |
86 | # ifdef LED_DRIVER_ADDR_2 | ||
87 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_2, 1); | 83 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_2, 1); |
88 | # endif | 84 | # if defined(LED_DRIVER_ADDR_3) |
89 | # ifdef LED_DRIVER_ADDR_3 | ||
90 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_3, 2); | 85 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_3, 2); |
91 | # endif | 86 | # if defined(LED_DRIVER_ADDR_4) |
92 | # ifdef LED_DRIVER_ADDR_4 | ||
93 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_4, 3); | 87 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_4, 3); |
88 | # endif | ||
89 | # endif | ||
94 | # endif | 90 | # endif |
95 | # else | 91 | |
96 | # ifdef LED_DRIVER_ADDR_1 | 92 | # elif defined(IS31FL3733) |
97 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_1, 0); | 93 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_1, 0); |
98 | # endif | 94 | # if defined(LED_DRIVER_ADDR_2) |
99 | # ifdef LED_DRIVER_ADDR_2 | ||
100 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_2, 1); | 95 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_2, 1); |
101 | # endif | 96 | # if defined(LED_DRIVER_ADDR_3) |
102 | # ifdef LED_DRIVER_ADDR_3 | ||
103 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_3, 2); | 97 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_3, 2); |
104 | # endif | 98 | # if defined(LED_DRIVER_ADDR_4) |
105 | # ifdef LED_DRIVER_ADDR_4 | ||
106 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_4, 3); | 99 | IS31FL3733_update_led_control_registers(LED_DRIVER_ADDR_4, 3); |
100 | # endif | ||
101 | # endif | ||
107 | # endif | 102 | # endif |
108 | # endif | 103 | # endif |
109 | } | 104 | } |
110 | 105 | ||
106 | # if defined(IS31FL3731) | ||
111 | static void flush(void) { | 107 | static void flush(void) { |
112 | # ifdef IS31FL3731 | ||
113 | # ifdef LED_DRIVER_ADDR_1 | ||
114 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_1, 0); | 108 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_1, 0); |
115 | # endif | 109 | # if defined(LED_DRIVER_ADDR_2) |
116 | # ifdef LED_DRIVER_ADDR_2 | ||
117 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_2, 1); | 110 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_2, 1); |
118 | # endif | 111 | # if defined(LED_DRIVER_ADDR_3) |
119 | # ifdef LED_DRIVER_ADDR_3 | ||
120 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_3, 2); | 112 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_3, 2); |
121 | # endif | 113 | # if defined(LED_DRIVER_ADDR_4) |
122 | # ifdef LED_DRIVER_ADDR_4 | ||
123 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_4, 3); | 114 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_4, 3); |
115 | # endif | ||
116 | # endif | ||
124 | # endif | 117 | # endif |
125 | # else | 118 | } |
126 | # ifdef LED_DRIVER_ADDR_1 | 119 | |
120 | const led_matrix_driver_t led_matrix_driver = { | ||
121 | .init = init, | ||
122 | .flush = flush, | ||
123 | .set_value = IS31FL3731_set_value, | ||
124 | .set_value_all = IS31FL3731_set_value_all, | ||
125 | }; | ||
126 | |||
127 | # elif defined(IS31FL3733) | ||
128 | static void flush(void) { | ||
127 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_1, 0); | 129 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_1, 0); |
128 | # endif | 130 | # if defined(LED_DRIVER_ADDR_2) |
129 | # ifdef LED_DRIVER_ADDR_2 | ||
130 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_2, 1); | 131 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_2, 1); |
131 | # endif | 132 | # if defined(LED_DRIVER_ADDR_3) |
132 | # ifdef LED_DRIVER_ADDR_3 | ||
133 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_3, 2); | 133 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_3, 2); |
134 | # endif | 134 | # if defined(LED_DRIVER_ADDR_4) |
135 | # ifdef LED_DRIVER_ADDR_4 | ||
136 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_4, 3); | 135 | IS31FL3733_update_pwm_buffers(LED_DRIVER_ADDR_4, 3); |
136 | # endif | ||
137 | # endif | ||
137 | # endif | 138 | # endif |
138 | # endif | 139 | # endif |
139 | } | 140 | } |
140 | 141 | ||
141 | const led_matrix_driver_t led_matrix_driver = { | 142 | const led_matrix_driver_t led_matrix_driver = { |
142 | .init = init, | 143 | .init = init, |
143 | .flush = flush, | 144 | .flush = flush, |
144 | # ifdef IS31FL3731 | 145 | .set_value = IS31FL3733_set_value, |
145 | .set_value = IS31FL3731_set_value, | ||
146 | .set_value_all = IS31FL3731_set_value_all, | ||
147 | # else | ||
148 | .set_value = IS31FL3733_set_value, | ||
149 | .set_value_all = IS31FL3733_set_value_all, | 146 | .set_value_all = IS31FL3733_set_value_all, |
150 | # endif | ||
151 | }; | 147 | }; |
152 | |||
153 | #endif | 148 | #endif |
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c index 2cec162e2..4335088eb 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix/rgb_matrix_drivers.c | |||
@@ -24,110 +24,126 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #if defined(IS31FL3731) || defined(IS31FL3733) || defined(IS31FL3737) || defined(IS31FL3741) | 26 | #if defined(IS31FL3731) || defined(IS31FL3733) || defined(IS31FL3737) || defined(IS31FL3741) |
27 | |||
28 | # include "i2c_master.h" | 27 | # include "i2c_master.h" |
29 | 28 | ||
29 | // TODO: Remove this at some later date | ||
30 | # if defined(DRIVER_ADDR_1) && defined(DRIVER_ADDR_2) | ||
31 | # if DRIVER_ADDR_1 == DRIVER_ADDR_2 | ||
32 | # error "Setting DRIVER_ADDR_2 == DRIVER_ADDR_1 is obsolete. If you are only using one ISSI driver, set DRIVER_COUNT to 1 and remove DRIVER_ADDR_2" | ||
33 | # endif | ||
34 | # endif | ||
35 | |||
30 | static void init(void) { | 36 | static void init(void) { |
31 | i2c_init(); | 37 | i2c_init(); |
32 | # ifdef IS31FL3731 | 38 | |
39 | # if defined(IS31FL3731) | ||
33 | IS31FL3731_init(DRIVER_ADDR_1); | 40 | IS31FL3731_init(DRIVER_ADDR_1); |
34 | # ifdef DRIVER_ADDR_2 | 41 | # if defined(DRIVER_ADDR_2) |
35 | IS31FL3731_init(DRIVER_ADDR_2); | 42 | IS31FL3731_init(DRIVER_ADDR_2); |
36 | # endif | 43 | # if defined(DRIVER_ADDR_3) |
37 | # ifdef DRIVER_ADDR_3 | ||
38 | IS31FL3731_init(DRIVER_ADDR_3); | 44 | IS31FL3731_init(DRIVER_ADDR_3); |
39 | # endif | 45 | # if defined(DRIVER_ADDR_4) |
40 | # ifdef DRIVER_ADDR_4 | ||
41 | IS31FL3731_init(DRIVER_ADDR_4); | 46 | IS31FL3731_init(DRIVER_ADDR_4); |
47 | # endif | ||
48 | # endif | ||
42 | # endif | 49 | # endif |
50 | |||
43 | # elif defined(IS31FL3733) | 51 | # elif defined(IS31FL3733) |
44 | # ifndef DRIVER_SYNC_1 | 52 | # if !defined(DRIVER_SYNC_1) |
45 | # define DRIVER_SYNC_1 0 | 53 | # define DRIVER_SYNC_1 0 |
46 | # endif | 54 | # endif |
47 | IS31FL3733_init(DRIVER_ADDR_1, DRIVER_SYNC_1); | 55 | IS31FL3733_init(DRIVER_ADDR_1, DRIVER_SYNC_1); |
48 | # if defined DRIVER_ADDR_2 && (DRIVER_ADDR_1 != DRIVER_ADDR_2) | 56 | # if defined(DRIVER_ADDR_2) |
49 | # ifndef DRIVER_SYNC_2 | 57 | # if !defined(DRIVER_SYNC_2) |
50 | # define DRIVER_SYNC_2 0 | 58 | # define DRIVER_SYNC_2 0 |
51 | # endif | 59 | # endif |
52 | IS31FL3733_init(DRIVER_ADDR_2, DRIVER_SYNC_2); | 60 | IS31FL3733_init(DRIVER_ADDR_2, DRIVER_SYNC_2); |
53 | # endif | 61 | # if defined(DRIVER_ADDR_3) |
54 | # ifdef DRIVER_ADDR_3 | 62 | # if !defined(DRIVER_SYNC_3) |
55 | # ifndef DRIVER_SYNC_3 | 63 | # define DRIVER_SYNC_3 0 |
56 | # define DRIVER_SYNC_3 0 | 64 | # endif |
57 | # endif | ||
58 | IS31FL3733_init(DRIVER_ADDR_3, DRIVER_SYNC_3); | 65 | IS31FL3733_init(DRIVER_ADDR_3, DRIVER_SYNC_3); |
59 | # endif | 66 | # if defined(DRIVER_ADDR_4) |
60 | # ifdef DRIVER_ADDR_4 | 67 | # if !defined(DRIVER_SYNC_4) |
61 | # ifndef DRIVER_SYNC_4 | 68 | # define DRIVER_SYNC_4 0 |
62 | # define DRIVER_SYNC_4 0 | 69 | # endif |
63 | # endif | ||
64 | IS31FL3733_init(DRIVER_ADDR_4, DRIVER_SYNC_4); | 70 | IS31FL3733_init(DRIVER_ADDR_4, DRIVER_SYNC_4); |
71 | # endif | ||
72 | # endif | ||
65 | # endif | 73 | # endif |
74 | |||
66 | # elif defined(IS31FL3737) | 75 | # elif defined(IS31FL3737) |
67 | IS31FL3737_init(DRIVER_ADDR_1); | 76 | IS31FL3737_init(DRIVER_ADDR_1); |
68 | # if defined(DRIVER_ADDR_2) && (DRIVER_ADDR_2 != DRIVER_ADDR_1) // provides backward compatibility | 77 | # if defined(DRIVER_ADDR_2) |
69 | IS31FL3737_init(DRIVER_ADDR_2); | 78 | IS31FL3737_init(DRIVER_ADDR_2); |
70 | # endif | 79 | # endif |
71 | # else | 80 | |
81 | # elif defined(IS31FL3741) | ||
72 | IS31FL3741_init(DRIVER_ADDR_1); | 82 | IS31FL3741_init(DRIVER_ADDR_1); |
73 | # endif | 83 | # endif |
84 | |||
74 | for (int index = 0; index < DRIVER_LED_TOTAL; index++) { | 85 | for (int index = 0; index < DRIVER_LED_TOTAL; index++) { |
75 | bool enabled = true; | 86 | bool enabled = true; |
87 | |||
76 | // This only caches it for later | 88 | // This only caches it for later |
77 | # ifdef IS31FL3731 | 89 | # if defined(IS31FL3731) |
78 | IS31FL3731_set_led_control_register(index, enabled, enabled, enabled); | 90 | IS31FL3731_set_led_control_register(index, enabled, enabled, enabled); |
79 | # elif defined(IS31FL3733) | 91 | # elif defined(IS31FL3733) |
80 | IS31FL3733_set_led_control_register(index, enabled, enabled, enabled); | 92 | IS31FL3733_set_led_control_register(index, enabled, enabled, enabled); |
81 | # elif defined(IS31FL3737) | 93 | # elif defined(IS31FL3737) |
82 | IS31FL3737_set_led_control_register(index, enabled, enabled, enabled); | 94 | IS31FL3737_set_led_control_register(index, enabled, enabled, enabled); |
83 | # else | 95 | # elif defined(IS31FL3741) |
84 | IS31FL3741_set_led_control_register(index, enabled, enabled, enabled); | 96 | IS31FL3741_set_led_control_register(index, enabled, enabled, enabled); |
85 | # endif | 97 | # endif |
86 | } | 98 | } |
99 | |||
87 | // This actually updates the LED drivers | 100 | // This actually updates the LED drivers |
88 | # ifdef IS31FL3731 | 101 | # if defined(IS31FL3731) |
89 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0); | 102 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0); |
90 | # ifdef DRIVER_ADDR_2 | 103 | # if defined(DRIVER_ADDR_2) |
91 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_2, 1); | 104 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_2, 1); |
92 | # endif | 105 | # if defined(DRIVER_ADDR_3) |
93 | # ifdef DRIVER_ADDR_3 | ||
94 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_3, 2); | 106 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_3, 2); |
95 | # endif | 107 | # if defined(DRIVER_ADDR_4) |
96 | # ifdef DRIVER_ADDR_4 | ||
97 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_4, 3); | 108 | IS31FL3731_update_led_control_registers(DRIVER_ADDR_4, 3); |
109 | # endif | ||
110 | # endif | ||
98 | # endif | 111 | # endif |
112 | |||
99 | # elif defined(IS31FL3733) | 113 | # elif defined(IS31FL3733) |
100 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0); | 114 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0); |
101 | # ifdef DRIVER_ADDR_2 | 115 | # if defined(DRIVER_ADDR_2) |
102 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_2, 1); | 116 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_2, 1); |
103 | # endif | 117 | # if defined(DRIVER_ADDR_3) |
104 | # ifdef DRIVER_ADDR_3 | ||
105 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_3, 2); | 118 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_3, 2); |
106 | # endif | 119 | # if defined(DRIVER_ADDR_4) |
107 | # ifdef DRIVER_ADDR_4 | ||
108 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_4, 3); | 120 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_4, 3); |
121 | # endif | ||
122 | # endif | ||
109 | # endif | 123 | # endif |
124 | |||
110 | # elif defined(IS31FL3737) | 125 | # elif defined(IS31FL3737) |
111 | IS31FL3737_update_led_control_registers(DRIVER_ADDR_1, 0); | 126 | IS31FL3737_update_led_control_registers(DRIVER_ADDR_1, 0); |
112 | # if defined(DRIVER_ADDR_2) && (DRIVER_ADDR_2 != DRIVER_ADDR_1) // provides backward compatibility | 127 | # if defined(DRIVER_ADDR_2) |
113 | IS31FL3737_update_led_control_registers(DRIVER_ADDR_2, 1); | 128 | IS31FL3737_update_led_control_registers(DRIVER_ADDR_2, 1); |
114 | # endif | 129 | # endif |
115 | # else | 130 | |
131 | # elif defined(IS31FL3741) | ||
116 | IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0); | 132 | IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0); |
117 | # endif | 133 | # endif |
118 | } | 134 | } |
119 | 135 | ||
120 | # ifdef IS31FL3731 | 136 | # if defined(IS31FL3731) |
121 | static void flush(void) { | 137 | static void flush(void) { |
122 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_1, 0); | 138 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_1, 0); |
123 | # ifdef DRIVER_ADDR_2 | 139 | # if defined(DRIVER_ADDR_2) |
124 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_2, 1); | 140 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_2, 1); |
125 | # endif | 141 | # if defined(DRIVER_ADDR_3) |
126 | # ifdef DRIVER_ADDR_3 | ||
127 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_3, 2); | 142 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_3, 2); |
128 | # endif | 143 | # if defined(DRIVER_ADDR_4) |
129 | # ifdef DRIVER_ADDR_4 | ||
130 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_4, 3); | 144 | IS31FL3731_update_pwm_buffers(DRIVER_ADDR_4, 3); |
145 | # endif | ||
146 | # endif | ||
131 | # endif | 147 | # endif |
132 | } | 148 | } |
133 | 149 | ||
@@ -137,17 +153,18 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
137 | .set_color = IS31FL3731_set_color, | 153 | .set_color = IS31FL3731_set_color, |
138 | .set_color_all = IS31FL3731_set_color_all, | 154 | .set_color_all = IS31FL3731_set_color_all, |
139 | }; | 155 | }; |
156 | |||
140 | # elif defined(IS31FL3733) | 157 | # elif defined(IS31FL3733) |
141 | static void flush(void) { | 158 | static void flush(void) { |
142 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_1, 0); | 159 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_1, 0); |
143 | # ifdef DRIVER_ADDR_2 | 160 | # if defined(DRIVER_ADDR_2) |
144 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_2, 1); | 161 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_2, 1); |
145 | # endif | 162 | # if defined(DRIVER_ADDR_3) |
146 | # ifdef DRIVER_ADDR_3 | ||
147 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_3, 2); | 163 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_3, 2); |
148 | # endif | 164 | # if defined(DRIVER_ADDR_4) |
149 | # ifdef DRIVER_ADDR_4 | ||
150 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_4, 3); | 165 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_4, 3); |
166 | # endif | ||
167 | # endif | ||
151 | # endif | 168 | # endif |
152 | } | 169 | } |
153 | 170 | ||
@@ -157,10 +174,11 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
157 | .set_color = IS31FL3733_set_color, | 174 | .set_color = IS31FL3733_set_color, |
158 | .set_color_all = IS31FL3733_set_color_all, | 175 | .set_color_all = IS31FL3733_set_color_all, |
159 | }; | 176 | }; |
177 | |||
160 | # elif defined(IS31FL3737) | 178 | # elif defined(IS31FL3737) |
161 | static void flush(void) { | 179 | static void flush(void) { |
162 | IS31FL3737_update_pwm_buffers(DRIVER_ADDR_1, 0); | 180 | IS31FL3737_update_pwm_buffers(DRIVER_ADDR_1, 0); |
163 | # if defined(DRIVER_ADDR_2) && (DRIVER_ADDR_2 != DRIVER_ADDR_1) // provides backward compatibility | 181 | # if defined(DRIVER_ADDR_2) |
164 | IS31FL3737_update_pwm_buffers(DRIVER_ADDR_2, 1); | 182 | IS31FL3737_update_pwm_buffers(DRIVER_ADDR_2, 1); |
165 | # endif | 183 | # endif |
166 | } | 184 | } |
@@ -171,10 +189,11 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
171 | .set_color = IS31FL3737_set_color, | 189 | .set_color = IS31FL3737_set_color, |
172 | .set_color_all = IS31FL3737_set_color_all, | 190 | .set_color_all = IS31FL3737_set_color_all, |
173 | }; | 191 | }; |
174 | # else | 192 | |
193 | # elif defined(IS31FL3741) | ||
175 | static void flush(void) { | 194 | static void flush(void) { |
176 | IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0); | 195 | IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0); |
177 | # if defined(DRIVER_ADDR_2) && (DRIVER_ADDR_2 != DRIVER_ADDR_1) // provides backward compatibility | 196 | # if defined(DRIVER_ADDR_2) |
178 | IS31FL3741_update_pwm_buffers(DRIVER_ADDR_2, 1); | 197 | IS31FL3741_update_pwm_buffers(DRIVER_ADDR_2, 1); |
179 | # endif | 198 | # endif |
180 | } | 199 | } |
@@ -189,17 +208,19 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
189 | 208 | ||
190 | #elif defined(AW20216) | 209 | #elif defined(AW20216) |
191 | # include "spi_master.h" | 210 | # include "spi_master.h" |
211 | |||
192 | static void init(void) { | 212 | static void init(void) { |
193 | spi_init(); | 213 | spi_init(); |
214 | |||
194 | AW20216_init(DRIVER_1_CS, DRIVER_1_EN); | 215 | AW20216_init(DRIVER_1_CS, DRIVER_1_EN); |
195 | # ifdef DRIVER_2_CS | 216 | # if defined(DRIVER_2_CS) |
196 | AW20216_init(DRIVER_2_CS, DRIVER_2_EN); | 217 | AW20216_init(DRIVER_2_CS, DRIVER_2_EN); |
197 | # endif | 218 | # endif |
198 | } | 219 | } |
199 | 220 | ||
200 | static void flush(void) { | 221 | static void flush(void) { |
201 | AW20216_update_pwm_buffers(DRIVER_1_CS, 0); | 222 | AW20216_update_pwm_buffers(DRIVER_1_CS, 0); |
202 | # ifdef DRIVER_2_CS | 223 | # if defined(DRIVER_2_CS) |
203 | AW20216_update_pwm_buffers(DRIVER_2_CS, 1); | 224 | AW20216_update_pwm_buffers(DRIVER_2_CS, 1); |
204 | # endif | 225 | # endif |
205 | } | 226 | } |