summaryrefslogtreecommitdiffstats
path: root/quantum/rgb_matrix
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgb_matrix')
-rw-r--r--quantum/rgb_matrix/rgb_matrix_drivers.c192
1 files changed, 96 insertions, 96 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c
index 7bd274ee99..695ecc78a4 100644
--- a/quantum/rgb_matrix/rgb_matrix_drivers.c
+++ b/quantum/rgb_matrix/rgb_matrix_drivers.c
@@ -38,13 +38,13 @@ static void init(void) {
i2c_init();
# if defined(IS31FL3731)
- IS31FL3731_init(DRIVER_ADDR_1);
+ is31fl3731_init(DRIVER_ADDR_1);
# if defined(DRIVER_ADDR_2)
- IS31FL3731_init(DRIVER_ADDR_2);
+ is31fl3731_init(DRIVER_ADDR_2);
# if defined(DRIVER_ADDR_3)
- IS31FL3731_init(DRIVER_ADDR_3);
+ is31fl3731_init(DRIVER_ADDR_3);
# if defined(DRIVER_ADDR_4)
- IS31FL3731_init(DRIVER_ADDR_4);
+ is31fl3731_init(DRIVER_ADDR_4);
# endif
# endif
# endif
@@ -53,58 +53,58 @@ static void init(void) {
# if !defined(DRIVER_SYNC_1)
# define DRIVER_SYNC_1 0
# endif
- IS31FL3733_init(DRIVER_ADDR_1, DRIVER_SYNC_1);
+ is31fl3733_init(DRIVER_ADDR_1, DRIVER_SYNC_1);
# if defined(DRIVER_ADDR_2)
# if !defined(DRIVER_SYNC_2)
# define DRIVER_SYNC_2 0
# endif
- IS31FL3733_init(DRIVER_ADDR_2, DRIVER_SYNC_2);
+ is31fl3733_init(DRIVER_ADDR_2, DRIVER_SYNC_2);
# if defined(DRIVER_ADDR_3)
# if !defined(DRIVER_SYNC_3)
# define DRIVER_SYNC_3 0
# endif
- IS31FL3733_init(DRIVER_ADDR_3, DRIVER_SYNC_3);
+ is31fl3733_init(DRIVER_ADDR_3, DRIVER_SYNC_3);
# if defined(DRIVER_ADDR_4)
# if !defined(DRIVER_SYNC_4)
# define DRIVER_SYNC_4 0
# endif
- IS31FL3733_init(DRIVER_ADDR_4, DRIVER_SYNC_4);
+ is31fl3733_init(DRIVER_ADDR_4, DRIVER_SYNC_4);
# endif
# endif
# endif
# elif defined(IS31FL3736)
- IS31FL3736_init(DRIVER_ADDR_1);
+ is31fl3736_init(DRIVER_ADDR_1);
# if defined(DRIVER_ADDR_2)
- IS31FL3736_init(DRIVER_ADDR_2);
+ is31fl3736_init(DRIVER_ADDR_2);
# if defined(DRIVER_ADDR_3)
- IS31FL3736_init(DRIVER_ADDR_3);
+ is31fl3736_init(DRIVER_ADDR_3);
# if defined(DRIVER_ADDR_4)
- IS31FL3736_init(DRIVER_ADDR_4);
+ is31fl3736_init(DRIVER_ADDR_4);
# endif
# endif
# endif
# elif defined(IS31FL3737)
- IS31FL3737_init(DRIVER_ADDR_1);
+ is31fl3737_init(DRIVER_ADDR_1);
# if defined(DRIVER_ADDR_2)
- IS31FL3737_init(DRIVER_ADDR_2);
+ is31fl3737_init(DRIVER_ADDR_2);
# if defined(DRIVER_ADDR_3)
- IS31FL3737_init(DRIVER_ADDR_3);
+ is31fl3737_init(DRIVER_ADDR_3);
# if defined(DRIVER_ADDR_4)
- IS31FL3737_init(DRIVER_ADDR_4);
+ is31fl3737_init(DRIVER_ADDR_4);
# endif
# endif
# endif
# elif defined(IS31FL3741)
- IS31FL3741_init(DRIVER_ADDR_1);
+ is31fl3741_init(DRIVER_ADDR_1);
# if defined(DRIVER_ADDR_2)
- IS31FL3741_init(DRIVER_ADDR_2);
+ is31fl3741_init(DRIVER_ADDR_2);
# if defined(DRIVER_ADDR_3)
- IS31FL3741_init(DRIVER_ADDR_3);
+ is31fl3741_init(DRIVER_ADDR_3);
# if defined(DRIVER_ADDR_4)
- IS31FL3741_init(DRIVER_ADDR_4);
+ is31fl3741_init(DRIVER_ADDR_4);
# endif
# endif
# endif
@@ -122,13 +122,13 @@ static void init(void) {
# endif
# elif defined(CKLED2001)
- CKLED2001_init(DRIVER_ADDR_1);
+ ckled2001_init(DRIVER_ADDR_1);
# if defined(DRIVER_ADDR_2)
- CKLED2001_init(DRIVER_ADDR_2);
+ ckled2001_init(DRIVER_ADDR_2);
# if defined(DRIVER_ADDR_3)
- CKLED2001_init(DRIVER_ADDR_3);
+ ckled2001_init(DRIVER_ADDR_3);
# if defined(DRIVER_ADDR_4)
- CKLED2001_init(DRIVER_ADDR_4);
+ ckled2001_init(DRIVER_ADDR_4);
# endif
# endif
# endif
@@ -139,79 +139,79 @@ static void init(void) {
// This only caches it for later
# if defined(IS31FL3731)
- IS31FL3731_set_led_control_register(index, enabled, enabled, enabled);
+ is31fl3731_set_led_control_register(index, enabled, enabled, enabled);
# elif defined(IS31FL3733)
- IS31FL3733_set_led_control_register(index, enabled, enabled, enabled);
+ is31fl3733_set_led_control_register(index, enabled, enabled, enabled);
# elif defined(IS31FL3736)
- IS31FL3736_set_led_control_register(index, enabled, enabled, enabled);
+ is31fl3736_set_led_control_register(index, enabled, enabled, enabled);
# elif defined(IS31FL3737)
- IS31FL3737_set_led_control_register(index, enabled, enabled, enabled);
+ is31fl3737_set_led_control_register(index, enabled, enabled, enabled);
# elif defined(IS31FL3741)
- IS31FL3741_set_led_control_register(index, enabled, enabled, enabled);
+ is31fl3741_set_led_control_register(index, enabled, enabled, enabled);
# elif defined(IS31FLCOMMON)
IS31FL_RGB_set_scaling_buffer(index, enabled, enabled, enabled);
# elif defined(CKLED2001)
- CKLED2001_set_led_control_register(index, enabled, enabled, enabled);
+ ckled2001_set_led_control_register(index, enabled, enabled, enabled);
# endif
}
// This actually updates the LED drivers
# if defined(IS31FL3731)
- IS31FL3731_update_led_control_registers(DRIVER_ADDR_1, 0);
+ is31fl3731_update_led_control_registers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3731_update_led_control_registers(DRIVER_ADDR_2, 1);
+ is31fl3731_update_led_control_registers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3731_update_led_control_registers(DRIVER_ADDR_3, 2);
+ is31fl3731_update_led_control_registers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3731_update_led_control_registers(DRIVER_ADDR_4, 3);
+ is31fl3731_update_led_control_registers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
# elif defined(IS31FL3733)
- IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0);
+ is31fl3733_update_led_control_registers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3733_update_led_control_registers(DRIVER_ADDR_2, 1);
+ is31fl3733_update_led_control_registers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3733_update_led_control_registers(DRIVER_ADDR_3, 2);
+ is31fl3733_update_led_control_registers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3733_update_led_control_registers(DRIVER_ADDR_4, 3);
+ is31fl3733_update_led_control_registers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
# elif defined(IS31FL3736)
- IS31FL3736_update_led_control_registers(DRIVER_ADDR_1, 0);
+ is31fl3736_update_led_control_registers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3736_update_led_control_registers(DRIVER_ADDR_2, 1);
+ is31fl3736_update_led_control_registers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3736_update_led_control_registers(DRIVER_ADDR_3, 2);
+ is31fl3736_update_led_control_registers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3736_update_led_control_registers(DRIVER_ADDR_4, 3);
+ is31fl3736_update_led_control_registers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
# elif defined(IS31FL3737)
- IS31FL3737_update_led_control_registers(DRIVER_ADDR_1, 0);
+ is31fl3737_update_led_control_registers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3737_update_led_control_registers(DRIVER_ADDR_2, 1);
+ is31fl3737_update_led_control_registers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3737_update_led_control_registers(DRIVER_ADDR_3, 2);
+ is31fl3737_update_led_control_registers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3737_update_led_control_registers(DRIVER_ADDR_4, 3);
+ is31fl3737_update_led_control_registers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
# elif defined(IS31FL3741)
- IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
+ is31fl3741_update_led_control_registers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3741_update_led_control_registers(DRIVER_ADDR_2, 1);
+ is31fl3741_update_led_control_registers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3741_update_led_control_registers(DRIVER_ADDR_3, 2);
+ is31fl3741_update_led_control_registers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3741_update_led_control_registers(DRIVER_ADDR_4, 3);
+ is31fl3741_update_led_control_registers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -232,13 +232,13 @@ static void init(void) {
# endif
# elif defined(CKLED2001)
- CKLED2001_update_led_control_registers(DRIVER_ADDR_1, 0);
+ ckled2001_update_led_control_registers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- CKLED2001_update_led_control_registers(DRIVER_ADDR_2, 1);
+ ckled2001_update_led_control_registers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- CKLED2001_update_led_control_registers(DRIVER_ADDR_3, 2);
+ ckled2001_update_led_control_registers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- CKLED2001_update_led_control_registers(DRIVER_ADDR_4, 3);
+ ckled2001_update_led_control_registers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -247,13 +247,13 @@ static void init(void) {
# if defined(IS31FL3731)
static void flush(void) {
- IS31FL3731_update_pwm_buffers(DRIVER_ADDR_1, 0);
+ is31fl3731_update_pwm_buffers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3731_update_pwm_buffers(DRIVER_ADDR_2, 1);
+ is31fl3731_update_pwm_buffers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3731_update_pwm_buffers(DRIVER_ADDR_3, 2);
+ is31fl3731_update_pwm_buffers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3731_update_pwm_buffers(DRIVER_ADDR_4, 3);
+ is31fl3731_update_pwm_buffers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -262,19 +262,19 @@ static void flush(void) {
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = IS31FL3731_set_color,
- .set_color_all = IS31FL3731_set_color_all,
+ .set_color = is31fl3731_set_color,
+ .set_color_all = is31fl3731_set_color_all,
};
# elif defined(IS31FL3733)
static void flush(void) {
- IS31FL3733_update_pwm_buffers(DRIVER_ADDR_1, 0);
+ is31fl3733_update_pwm_buffers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3733_update_pwm_buffers(DRIVER_ADDR_2, 1);
+ is31fl3733_update_pwm_buffers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3733_update_pwm_buffers(DRIVER_ADDR_3, 2);
+ is31fl3733_update_pwm_buffers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3733_update_pwm_buffers(DRIVER_ADDR_4, 3);
+ is31fl3733_update_pwm_buffers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -283,19 +283,19 @@ static void flush(void) {
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = IS31FL3733_set_color,
- .set_color_all = IS31FL3733_set_color_all,
+ .set_color = is31fl3733_set_color,
+ .set_color_all = is31fl3733_set_color_all,
};
# elif defined(IS31FL3736)
static void flush(void) {
- IS31FL3736_update_pwm_buffers(DRIVER_ADDR_1, 0);
+ is31fl3736_update_pwm_buffers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3736_update_pwm_buffers(DRIVER_ADDR_2, 1);
+ is31fl3736_update_pwm_buffers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3736_update_pwm_buffers(DRIVER_ADDR_3, 2);
+ is31fl3736_update_pwm_buffers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3736_update_pwm_buffers(DRIVER_ADDR_4, 3);
+ is31fl3736_update_pwm_buffers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -304,19 +304,19 @@ static void flush(void) {
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = IS31FL3736_set_color,
- .set_color_all = IS31FL3736_set_color_all,
+ .set_color = is31fl3736_set_color,
+ .set_color_all = is31fl3736_set_color_all,
};
# elif defined(IS31FL3737)
static void flush(void) {
- IS31FL3737_update_pwm_buffers(DRIVER_ADDR_1, 0);
+ is31fl3737_update_pwm_buffers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3737_update_pwm_buffers(DRIVER_ADDR_2, 1);
+ is31fl3737_update_pwm_buffers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3737_update_pwm_buffers(DRIVER_ADDR_3, 2);
+ is31fl3737_update_pwm_buffers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3737_update_pwm_buffers(DRIVER_ADDR_4, 3);
+ is31fl3737_update_pwm_buffers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -325,19 +325,19 @@ static void flush(void) {
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = IS31FL3737_set_color,
- .set_color_all = IS31FL3737_set_color_all,
+ .set_color = is31fl3737_set_color,
+ .set_color_all = is31fl3737_set_color_all,
};
# elif defined(IS31FL3741)
static void flush(void) {
- IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
+ is31fl3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- IS31FL3741_update_pwm_buffers(DRIVER_ADDR_2, 1);
+ is31fl3741_update_pwm_buffers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- IS31FL3741_update_pwm_buffers(DRIVER_ADDR_3, 2);
+ is31fl3741_update_pwm_buffers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- IS31FL3741_update_pwm_buffers(DRIVER_ADDR_4, 3);
+ is31fl3741_update_pwm_buffers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -346,8 +346,8 @@ static void flush(void) {
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = IS31FL3741_set_color,
- .set_color_all = IS31FL3741_set_color_all,
+ .set_color = is31fl3741_set_color,
+ .set_color_all = is31fl3741_set_color_all,
};
# elif defined(IS31FLCOMMON)
@@ -373,13 +373,13 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
# elif defined(CKLED2001)
static void flush(void) {
- CKLED2001_update_pwm_buffers(DRIVER_ADDR_1, 0);
+ ckled2001_update_pwm_buffers(DRIVER_ADDR_1, 0);
# if defined(DRIVER_ADDR_2)
- CKLED2001_update_pwm_buffers(DRIVER_ADDR_2, 1);
+ ckled2001_update_pwm_buffers(DRIVER_ADDR_2, 1);
# if defined(DRIVER_ADDR_3)
- CKLED2001_update_pwm_buffers(DRIVER_ADDR_3, 2);
+ ckled2001_update_pwm_buffers(DRIVER_ADDR_3, 2);
# if defined(DRIVER_ADDR_4)
- CKLED2001_update_pwm_buffers(DRIVER_ADDR_4, 3);
+ ckled2001_update_pwm_buffers(DRIVER_ADDR_4, 3);
# endif
# endif
# endif
@@ -388,8 +388,8 @@ static void flush(void) {
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = CKLED2001_set_color,
- .set_color_all = CKLED2001_set_color_all,
+ .set_color = ckled2001_set_color,
+ .set_color_all = ckled2001_set_color_all,
};
# endif
@@ -399,24 +399,24 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
static void init(void) {
spi_init();
- AW20216_init(DRIVER_1_CS, DRIVER_1_EN);
+ aw20216_init(DRIVER_1_CS, DRIVER_1_EN);
# if defined(DRIVER_2_CS)
- AW20216_init(DRIVER_2_CS, DRIVER_2_EN);
+ aw20216_init(DRIVER_2_CS, DRIVER_2_EN);
# endif
}
static void flush(void) {
- AW20216_update_pwm_buffers(DRIVER_1_CS, 0);
+ aw20216_update_pwm_buffers(DRIVER_1_CS, 0);
# if defined(DRIVER_2_CS)
- AW20216_update_pwm_buffers(DRIVER_2_CS, 1);
+ aw20216_update_pwm_buffers(DRIVER_2_CS, 1);
# endif
}
const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init,
.flush = flush,
- .set_color = AW20216_set_color,
- .set_color_all = AW20216_set_color_all,
+ .set_color = aw20216_set_color,
+ .set_color_all = aw20216_set_color_all,
};
#elif defined(WS2812)