diff options
author | Daniel Schaefer <dhs@frame.work> | 2023-09-01 07:20:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 00:20:24 +0100 |
commit | 367b8e09d9c7d4aa62e49eedac0d66fb72414c38 (patch) | |
tree | 06f5be2ca34870c40e374ca436607e1f2183000d | |
parent | 2447765181cf84dd7ad56ed5b6c15fdcf48c5ade (diff) |
is31fl3741: Allow changing config register (#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 <dhs@frame.work>
-rw-r--r-- | drivers/led/issi/is31fl3741.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/led/issi/is31fl3741.c b/drivers/led/issi/is31fl3741.c index 70671c2a40..5c84ac2067 100644 --- a/drivers/led/issi/is31fl3741.c +++ b/drivers/led/issi/is31fl3741.c @@ -61,6 +61,10 @@ # define ISSI_PERSISTENCE 0 #endif +#ifndef ISSI_CONFIGURATION +# define ISSI_CONFIGURATION 0x01 +#endif + #ifndef ISSI_SWPULLUP # define ISSI_SWPULLUP PUR_32KR #endif @@ -162,7 +166,7 @@ void is31fl3741_init(uint8_t addr) { is31fl3741_write_register(addr, ISSI_COMMANDREGISTER, ISSI_PAGE_FUNCTION); // Set to Normal operation - is31fl3741_write_register(addr, ISSI_REG_CONFIGURATION, 0x01); + is31fl3741_write_register(addr, ISSI_REG_CONFIGURATION, ISSI_CONFIGURATION); // Set Golbal Current Control Register is31fl3741_write_register(addr, ISSI_REG_GLOBALCURRENT, ISSI_GLOBALCURRENT); |