aboutsummaryrefslogtreecommitdiff
path: root/drivers/led/issi/is31fl3736.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/led/issi/is31fl3736.c')
-rw-r--r--drivers/led/issi/is31fl3736.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3736.c b/drivers/led/issi/is31fl3736.c
index 7dece1b1e..dcaabba2e 100644
--- a/drivers/led/issi/is31fl3736.c
+++ b/drivers/led/issi/is31fl3736.c
@@ -1,4 +1,5 @@
1/* Copyright 2018 Jason Williams (Wilba) 1/* Copyright 2018 Jason Williams (Wilba)
2 * Copyright 2021 Doni Crosby
2 * 3 *
3 * This program is free software: you can redistribute it and/or modify 4 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
@@ -54,6 +55,14 @@
54# define ISSI_PERSISTENCE 0 55# define ISSI_PERSISTENCE 0
55#endif 56#endif
56 57
58#ifndef ISSI_SWPULLUP
59# define ISSI_SWPULLUP PUR_0R
60#endif
61
62#ifndef ISSI_CSPULLUP
63# define ISSI_CSPULLUP PUR_0R
64#endif
65
57// Transfer buffer for TWITransmitData() 66// Transfer buffer for TWITransmitData()
58uint8_t g_twi_transfer_buffer[20]; 67uint8_t g_twi_transfer_buffer[20];
59 68
@@ -140,6 +149,10 @@ void IS31FL3736_init(uint8_t addr) {
140 149
141 // Select PG3 150 // Select PG3
142 IS31FL3736_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION); 151 IS31FL3736_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION);
152 // Set de-ghost pull-up resistors (SWx)
153 IS31FL3736_write_register(addr, ISSI_REG_SWPULLUP, ISSI_SWPULLUP);
154 // Set de-ghost pull-down resistors (CSx)
155 IS31FL3736_write_register(addr, ISSI_REG_CSPULLUP, ISSI_CSPULLUP);
143 // Set global current to maximum. 156 // Set global current to maximum.
144 IS31FL3736_write_register(addr, ISSI_REG_GLOBALCURRENT, 0xFF); 157 IS31FL3736_write_register(addr, ISSI_REG_GLOBALCURRENT, 0xFF);
145 // Disable software shutdown. 158 // Disable software shutdown.