diff options
Diffstat (limited to 'drivers/led/issi/is31fl3733.c')
-rw-r--r-- | drivers/led/issi/is31fl3733.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3733.c b/drivers/led/issi/is31fl3733.c index 4ddd827ca..c64d03513 100644 --- a/drivers/led/issi/is31fl3733.c +++ b/drivers/led/issi/is31fl3733.c | |||
@@ -1,6 +1,7 @@ | |||
1 | /* Copyright 2017 Jason Williams | 1 | /* Copyright 2017 Jason Williams |
2 | * Copyright 2018 Jack Humbert | 2 | * Copyright 2018 Jack Humbert |
3 | * Copyright 2018 Yiancar | 3 | * Copyright 2018 Yiancar |
4 | * Copyright 2021 Doni Crosby | ||
4 | * | 5 | * |
5 | * This program is free software: you can redistribute it and/or modify | 6 | * This program is free software: you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
@@ -58,6 +59,12 @@ | |||
58 | 59 | ||
59 | #ifndef ISSI_PWM_FREQUENCY | 60 | #ifndef ISSI_PWM_FREQUENCY |
60 | # define ISSI_PWM_FREQUENCY 0b000 // PFS - IS31FL3733B only | 61 | # define ISSI_PWM_FREQUENCY 0b000 // PFS - IS31FL3733B only |
62 | #ifndef ISSI_SWPULLUP | ||
63 | # define ISSI_SWPULLUP PUR_0R | ||
64 | #endif | ||
65 | |||
66 | #ifndef ISSI_CSPULLUP | ||
67 | # define ISSI_CSPULLUP PUR_0R | ||
61 | #endif | 68 | #endif |
62 | 69 | ||
63 | // Transfer buffer for TWITransmitData() | 70 | // Transfer buffer for TWITransmitData() |
@@ -158,6 +165,10 @@ void IS31FL3733_init(uint8_t addr, uint8_t sync) { | |||
158 | 165 | ||
159 | // Select PG3 | 166 | // Select PG3 |
160 | IS31FL3733_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION); | 167 | IS31FL3733_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION); |
168 | // Set de-ghost pull-up resistors (SWx) | ||
169 | IS31FL3733_write_register(addr, ISSI_REG_SWPULLUP, ISSI_SWPULLUP); | ||
170 | // Set de-ghost pull-down resistors (CSx) | ||
171 | IS31FL3733_write_register(addr, ISSI_REG_CSPULLUP, ISSI_CSPULLUP); | ||
161 | // Set global current to maximum. | 172 | // Set global current to maximum. |
162 | IS31FL3733_write_register(addr, ISSI_REG_GLOBALCURRENT, 0xFF); | 173 | IS31FL3733_write_register(addr, ISSI_REG_GLOBALCURRENT, 0xFF); |
163 | // Disable software shutdown. | 174 | // Disable software shutdown. |