diff options
Diffstat (limited to 'drivers/led/issi/is31fl3737.c')
-rw-r--r-- | drivers/led/issi/is31fl3737.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3737.c b/drivers/led/issi/is31fl3737.c index 0bb4ddd42..62862e0d4 100644 --- a/drivers/led/issi/is31fl3737.c +++ b/drivers/led/issi/is31fl3737.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 |
@@ -56,6 +57,14 @@ | |||
56 | # define ISSI_PERSISTENCE 0 | 57 | # define ISSI_PERSISTENCE 0 |
57 | #endif | 58 | #endif |
58 | 59 | ||
60 | #ifndef ISSI_SWPULLUP | ||
61 | # define ISSI_SWPULLUP PUR_0R | ||
62 | #endif | ||
63 | |||
64 | #ifndef ISSI_CSPULLUP | ||
65 | # define ISSI_CSPULLUP PUR_0R | ||
66 | #endif | ||
67 | |||
59 | // Transfer buffer for TWITransmitData() | 68 | // Transfer buffer for TWITransmitData() |
60 | uint8_t g_twi_transfer_buffer[20]; | 69 | uint8_t g_twi_transfer_buffer[20]; |
61 | 70 | ||
@@ -143,6 +152,10 @@ void IS31FL3737_init(uint8_t addr) { | |||
143 | 152 | ||
144 | // Select PG3 | 153 | // Select PG3 |
145 | IS31FL3737_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION); | 154 | IS31FL3737_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION); |
155 | // Set de-ghost pull-up resistors (SWx) | ||
156 | IS31FL3737_write_register(addr, ISSI_REG_SWPULLUP, ISSI_SWPULLUP); | ||
157 | // Set de-ghost pull-down resistors (CSx) | ||
158 | IS31FL3737_write_register(addr, ISSI_REG_CSPULLUP, ISSI_CSPULLUP); | ||
146 | // Set global current to maximum. | 159 | // Set global current to maximum. |
147 | IS31FL3737_write_register(addr, ISSI_REG_GLOBALCURRENT, 0xFF); | 160 | IS31FL3737_write_register(addr, ISSI_REG_GLOBALCURRENT, 0xFF); |
148 | // Disable software shutdown. | 161 | // Disable software shutdown. |