diff options
Diffstat (limited to 'drivers/led/issi/is31fl3731.c')
| -rw-r--r-- | drivers/led/issi/is31fl3731.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3731.c b/drivers/led/issi/is31fl3731.c index 110bdc1be..fbf24c30f 100644 --- a/drivers/led/issi/is31fl3731.c +++ b/drivers/led/issi/is31fl3731.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Copyright 2017 Jason Williams | 1 | /* Copyright 2017 Jason Williams |
| 2 | * Copyright 2018 Jack Humbert | 2 | * Copyright 2018 Jack Humbert |
| 3 | * Copyright 2021 Doni Crosby | ||
| 3 | * | 4 | * |
| 4 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by |
| @@ -39,6 +40,9 @@ | |||
| 39 | 40 | ||
| 40 | #define ISSI_REG_PICTUREFRAME 0x01 | 41 | #define ISSI_REG_PICTUREFRAME 0x01 |
| 41 | 42 | ||
| 43 | // Not defined in the datasheet -- See AN for IC | ||
| 44 | #define ISSI_REG_GHOST_IMAGE_PREVENTION 0xC2 // Set bit 4 to enable de-ghosting | ||
| 45 | |||
| 42 | #define ISSI_REG_SHUTDOWN 0x0A | 46 | #define ISSI_REG_SHUTDOWN 0x0A |
| 43 | #define ISSI_REG_AUDIOSYNC 0x06 | 47 | #define ISSI_REG_AUDIOSYNC 0x06 |
| 44 | 48 | ||
| @@ -132,6 +136,9 @@ void IS31FL3731_init(uint8_t addr) { | |||
| 132 | 136 | ||
| 133 | // enable software shutdown | 137 | // enable software shutdown |
| 134 | IS31FL3731_write_register(addr, ISSI_REG_SHUTDOWN, 0x00); | 138 | IS31FL3731_write_register(addr, ISSI_REG_SHUTDOWN, 0x00); |
| 139 | #ifdef ISSI_3731_DEGHOST // set to enable de-ghosting of the array | ||
| 140 | IS31FL3731_write_register(addr, ISSI_REG_GHOST_IMAGE_PREVENTION, 0x10); | ||
| 141 | #endif | ||
| 135 | 142 | ||
| 136 | // this delay was copied from other drivers, might not be needed | 143 | // this delay was copied from other drivers, might not be needed |
| 137 | wait_ms(10); | 144 | wait_ms(10); |
