forked from mirrors/qmk_userspace
LED Matrix: driver naming cleanups (#21580)
This commit is contained in:
parent
b4a7b9253a
commit
571b8bac82
19 changed files with 186 additions and 186 deletions
|
|
@ -17,7 +17,7 @@
|
|||
"nkro": true
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "IS31FL3731"
|
||||
"driver": "is31fl3731"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B10", "B2", "B1", "B0", "A7", "B4", "B3", "B7"],
|
||||
|
|
|
|||
|
|
@ -23,20 +23,20 @@
|
|||
*/
|
||||
void init_fallacy_leds(void) {
|
||||
i2c_init();
|
||||
IS31FL3731_init(LED_DRIVER_ADDR_1);
|
||||
is31fl3731_init(LED_DRIVER_ADDR_1);
|
||||
|
||||
for (int i = 0; i < LED_MATRIX_LED_COUNT; i++) {
|
||||
IS31FL3731_set_led_control_register(i, true);
|
||||
is31fl3731_set_led_control_register(i, true);
|
||||
}
|
||||
|
||||
IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_1, 0);
|
||||
is31fl3731_update_led_control_registers(LED_DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
|
||||
/* update the buffer
|
||||
*/
|
||||
void update_fallacy_leds(void) {
|
||||
IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_1, 0);
|
||||
is31fl3731_update_pwm_buffers(LED_DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -44,10 +44,10 @@ void update_fallacy_leds(void) {
|
|||
*/
|
||||
void set_fallacy_led(int index, bool state) {
|
||||
if (state) {
|
||||
IS31FL3731_set_value(index, 128);
|
||||
is31fl3731_set_value(index, 128);
|
||||
}
|
||||
else {
|
||||
IS31FL3731_set_value(index, 0);
|
||||
is31fl3731_set_value(index, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"device_version": "0.0.1"
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "IS31FL3731"
|
||||
"driver": "is31fl3731"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["D1", "D4", "D5", "D6", "D7"],
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"device_version": "0.0.1"
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "IS31FL3731"
|
||||
"driver": "is31fl3731"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B2", "B3", "B18", "B19", "C0", "C8", "C9", "C10", "C11"],
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@
|
|||
}
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "CKLED2001",
|
||||
"driver": "ckled2001",
|
||||
"animations": {
|
||||
"none": true,
|
||||
"solid": true,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@
|
|||
}
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "CKLED2001",
|
||||
"driver": "ckled2001",
|
||||
"animations": {
|
||||
"none": true,
|
||||
"solid": true,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"device_version": "1.0.0"
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "CKLED2001"
|
||||
"driver": "ckled2001"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
"pin": "A7"
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "IS31FL3731"
|
||||
"driver": "is31fl3731"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B2", "B1", "A15", "B3", "B9", "B8", "B7", "B6", "B5", "B4"],
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
"pin": "A7"
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "IS31FL3731"
|
||||
"driver": "is31fl3731"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B2", "B1", "A15", "B3", "B9", "B8", "B7", "B6", "B5", "B4"],
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
]
|
||||
},
|
||||
"led_matrix": {
|
||||
"driver": "IS31FL3731"
|
||||
"driver": "is31fl3731"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue