diff options
| author | Ryan <fauxpark@gmail.com> | 2023-12-19 07:13:08 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 20:13:08 +0000 |
| commit | b9e81c06911a4e3345acf09cd499a9661eea67b8 (patch) | |
| tree | 40563c20998af731c5beea0982f4b8ba8a3218e4 /drivers/led | |
| parent | 62db54dc32e9190785774117b48284a32c9892ca (diff) | |
Update keyboard LED driver configs (#22638)
Diffstat (limited to 'drivers/led')
| -rw-r--r-- | drivers/led/issi/is31fl3218-simple.c | 2 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3733-simple.c | 2 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3736.c | 2 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3741-simple.c | 3 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3741.c | 3 |
5 files changed, 7 insertions, 5 deletions
diff --git a/drivers/led/issi/is31fl3218-simple.c b/drivers/led/issi/is31fl3218-simple.c index e58b7d8bc0..d9faa8677d 100644 --- a/drivers/led/issi/is31fl3218-simple.c +++ b/drivers/led/issi/is31fl3218-simple.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "is31fl3218.h" | 16 | #include "is31fl3218-simple.h" |
| 17 | #include <string.h> | 17 | #include <string.h> |
| 18 | #include "i2c_master.h" | 18 | #include "i2c_master.h" |
| 19 | 19 | ||
diff --git a/drivers/led/issi/is31fl3733-simple.c b/drivers/led/issi/is31fl3733-simple.c index 805905ebc2..889d9ef389 100644 --- a/drivers/led/issi/is31fl3733-simple.c +++ b/drivers/led/issi/is31fl3733-simple.c | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | #endif | 43 | #endif |
| 44 | 44 | ||
| 45 | #ifndef IS31FL3733_CS_PULLDOWN | 45 | #ifndef IS31FL3733_CS_PULLDOWN |
| 46 | # define IS31FL3733_CSPULLDOWN IS31FL3733_PDR_0_OHM | 46 | # define IS31FL3733_CS_PULLDOWN IS31FL3733_PDR_0_OHM |
| 47 | #endif | 47 | #endif |
| 48 | 48 | ||
| 49 | #ifndef IS31FL3733_GLOBAL_CURRENT | 49 | #ifndef IS31FL3733_GLOBAL_CURRENT |
diff --git a/drivers/led/issi/is31fl3736.c b/drivers/led/issi/is31fl3736.c index 384b815850..0d7b08e7e8 100644 --- a/drivers/led/issi/is31fl3736.c +++ b/drivers/led/issi/is31fl3736.c | |||
| @@ -139,7 +139,7 @@ void is31fl3736_init(uint8_t addr) { | |||
| 139 | // Set up the mode and other settings, clear the PWM registers, | 139 | // Set up the mode and other settings, clear the PWM registers, |
| 140 | // then disable software shutdown. | 140 | // then disable software shutdown. |
| 141 | 141 | ||
| 142 | is31fl3736_select_page(addr, IS31FL3736_REG_LED_CONTROL); | 142 | is31fl3736_select_page(addr, IS31FL3736_COMMAND_LED_CONTROL); |
| 143 | 143 | ||
| 144 | // Turn off all LEDs. | 144 | // Turn off all LEDs. |
| 145 | for (int i = 0; i < IS31FL3736_LED_CONTROL_REGISTER_COUNT; i++) { | 145 | for (int i = 0; i < IS31FL3736_LED_CONTROL_REGISTER_COUNT; i++) { |
diff --git a/drivers/led/issi/is31fl3741-simple.c b/drivers/led/issi/is31fl3741-simple.c index db245af4da..3e9b3d8b25 100644 --- a/drivers/led/issi/is31fl3741-simple.c +++ b/drivers/led/issi/is31fl3741-simple.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include "wait.h" | 23 | #include "wait.h" |
| 24 | 24 | ||
| 25 | #define IS31FL3741_PWM_REGISTER_COUNT 351 | 25 | #define IS31FL3741_PWM_REGISTER_COUNT 351 |
| 26 | #define IS31FL3741_SCALING_REGISTER_COUNT 351 | ||
| 26 | 27 | ||
| 27 | #ifndef IS31FL3741_I2C_TIMEOUT | 28 | #ifndef IS31FL3741_I2C_TIMEOUT |
| 28 | # define IS31FL3741_I2C_TIMEOUT 100 | 29 | # define IS31FL3741_I2C_TIMEOUT 100 |
| @@ -64,7 +65,7 @@ uint8_t g_pwm_buffer[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | |||
| 64 | bool g_pwm_buffer_update_required[IS31FL3741_DRIVER_COUNT] = {false}; | 65 | bool g_pwm_buffer_update_required[IS31FL3741_DRIVER_COUNT] = {false}; |
| 65 | bool g_scaling_registers_update_required[IS31FL3741_DRIVER_COUNT] = {false}; | 66 | bool g_scaling_registers_update_required[IS31FL3741_DRIVER_COUNT] = {false}; |
| 66 | 67 | ||
| 67 | uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | 68 | uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_SCALING_REGISTER_COUNT]; |
| 68 | 69 | ||
| 69 | void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data) { | 70 | void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data) { |
| 70 | i2c_transfer_buffer[0] = reg; | 71 | i2c_transfer_buffer[0] = reg; |
diff --git a/drivers/led/issi/is31fl3741.c b/drivers/led/issi/is31fl3741.c index 0575f31254..08b86f9171 100644 --- a/drivers/led/issi/is31fl3741.c +++ b/drivers/led/issi/is31fl3741.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include "wait.h" | 23 | #include "wait.h" |
| 24 | 24 | ||
| 25 | #define IS31FL3741_PWM_REGISTER_COUNT 351 | 25 | #define IS31FL3741_PWM_REGISTER_COUNT 351 |
| 26 | #define IS31FL3741_SCALING_REGISTER_COUNT 351 | ||
| 26 | 27 | ||
| 27 | #ifndef IS31FL3741_I2C_TIMEOUT | 28 | #ifndef IS31FL3741_I2C_TIMEOUT |
| 28 | # define IS31FL3741_I2C_TIMEOUT 100 | 29 | # define IS31FL3741_I2C_TIMEOUT 100 |
| @@ -64,7 +65,7 @@ uint8_t g_pwm_buffer[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | |||
| 64 | bool g_pwm_buffer_update_required[IS31FL3741_DRIVER_COUNT] = {false}; | 65 | bool g_pwm_buffer_update_required[IS31FL3741_DRIVER_COUNT] = {false}; |
| 65 | bool g_scaling_registers_update_required[IS31FL3741_DRIVER_COUNT] = {false}; | 66 | bool g_scaling_registers_update_required[IS31FL3741_DRIVER_COUNT] = {false}; |
| 66 | 67 | ||
| 67 | uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_PWM_REGISTER_COUNT]; | 68 | uint8_t g_scaling_registers[IS31FL3741_DRIVER_COUNT][IS31FL3741_SCALING_REGISTER_COUNT]; |
| 68 | 69 | ||
| 69 | void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data) { | 70 | void is31fl3741_write_register(uint8_t addr, uint8_t reg, uint8_t data) { |
| 70 | i2c_transfer_buffer[0] = reg; | 71 | i2c_transfer_buffer[0] = reg; |
