Skip to content

Commit 017c1ff

Browse files
JohnAZoidbergLorenzo Castoldi
authored and
Lorenzo Castoldi
committed
is31fl3741: Allow changing config register (qmk#21861)
When not all SW pins are used, it's useful to disable those that aren't. Can reduce audible noise. ``` Layout: D7:D4 D3 D2:D1 D0 SWD LGC OSDE SSD SWS: SWx Setting. Change how many SW pins are active LGC: H/L Logic SSD: Software Shutdown Control ``` Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 92be299 commit 017c1ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/led/issi/is31fl3741.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
# define ISSI_PERSISTENCE 0
6262
#endif
6363

64+
#ifndef ISSI_CONFIGURATION
65+
# define ISSI_CONFIGURATION 0x01
66+
#endif
67+
6468
#ifndef ISSI_SWPULLUP
6569
# define ISSI_SWPULLUP PUR_32KR
6670
#endif
@@ -162,7 +166,7 @@ void is31fl3741_init(uint8_t addr) {
162166
is31fl3741_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION);
163167

164168
// Set to Normal operation
165-
is31fl3741_write_register(addr, ISSI_REG_CONFIGURATION, 0x01);
169+
is31fl3741_write_register(addr, ISSI_REG_CONFIGURATION, ISSI_CONFIGURATION);
166170

167171
// Set Golbal Current Control Register
168172
is31fl3741_write_register(addr, ISSI_REG_GLOBALCURRENT, ISSI_GLOBALCURRENT);

0 commit comments

Comments
 (0)