diff options
author | Ryan <fauxpark@gmail.com> | 2024-02-15 18:11:50 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 07:11:50 +0000 |
commit | a9f1105f98ecca299d401f81cd5cc1699683e2ce (patch) | |
tree | 879817fceabf9bbfaac7666999eb87c7a6693309 /drivers/led/issi/is31fl3218-mono.c | |
parent | 0b7df03ab77552da806ed0b62d95fbf4199a534d (diff) |
LED drivers: add support for shutdown pin (#23058)
* LED drivers: add support for shutdown pin
* Update candidate boards
Diffstat (limited to 'drivers/led/issi/is31fl3218-mono.c')
-rw-r--r-- | drivers/led/issi/is31fl3218-mono.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/led/issi/is31fl3218-mono.c b/drivers/led/issi/is31fl3218-mono.c index 5d3c22d7d9..cb5a069160 100644 --- a/drivers/led/issi/is31fl3218-mono.c +++ b/drivers/led/issi/is31fl3218-mono.c @@ -16,6 +16,7 @@ #include "is31fl3218-mono.h" #include "i2c_master.h" +#include "gpio.h" #define IS31FL3218_PWM_REGISTER_COUNT 18 #define IS31FL3218_LED_CONTROL_REGISTER_COUNT 3 @@ -66,6 +67,11 @@ void is31fl3218_write_pwm_buffer(void) { void is31fl3218_init(void) { i2c_init(); +#if defined(IS31FL3218_SDB_PIN) + setPinOutput(IS31FL3218_SDB_PIN); + writePinHigh(IS31FL3218_SDB_PIN); +#endif + // In case we ever want to reinitialize (?) is31fl3218_write_register(IS31FL3218_REG_RESET, 0x00); |