aboutsummaryrefslogtreecommitdiff
path: root/drivers/led/snled27351-mono.c
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-02-15 18:11:50 +1100
committerGitHub <[email protected]>2024-02-15 07:11:50 +0000
commita9f1105f98ecca299d401f81cd5cc1699683e2ce (patch)
tree879817fceabf9bbfaac7666999eb87c7a6693309 /drivers/led/snled27351-mono.c
parent0b7df03ab77552da806ed0b62d95fbf4199a534d (diff)
downloadqmk_firmware-a9f1105f98ecca299d401f81cd5cc1699683e2ce.tar.gz
qmk_firmware-a9f1105f98ecca299d401f81cd5cc1699683e2ce.zip
LED drivers: add support for shutdown pin (#23058)
* LED drivers: add support for shutdown pin * Update candidate boards
Diffstat (limited to 'drivers/led/snled27351-mono.c')
-rw-r--r--drivers/led/snled27351-mono.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/led/snled27351-mono.c b/drivers/led/snled27351-mono.c
index 0c047fa771..e13fd8a343 100644
--- a/drivers/led/snled27351-mono.c
+++ b/drivers/led/snled27351-mono.c
@@ -16,6 +16,7 @@
#include "snled27351-mono.h"
#include "i2c_master.h"
+#include "gpio.h"
#define SNLED27351_PWM_REGISTER_COUNT 192
#define SNLED27351_LED_CONTROL_REGISTER_COUNT 24
@@ -103,6 +104,11 @@ void snled27351_write_pwm_buffer(uint8_t index) {
void snled27351_init_drivers(void) {
i2c_init();
+#if defined(SNLED27351_SDB_PIN)
+ setPinOutput(SNLED27351_SDB_PIN);
+ writePinHigh(SNLED27351_SDB_PIN);
+#endif
+
for (uint8_t i = 0; i < SNLED27351_DRIVER_COUNT; i++) {
snled27351_init(i);
}