From a9f1105f98ecca299d401f81cd5cc1699683e2ce Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 15 Feb 2024 18:11:50 +1100 Subject: LED drivers: add support for shutdown pin (#23058) * LED drivers: add support for shutdown pin * Update candidate boards --- keyboards/opendeck/32/rev1/config.h | 2 ++ keyboards/opendeck/32/rev1/rev1.c | 6 +----- keyboards/opendeck/32/rev1/rev1.h | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'keyboards/opendeck') diff --git a/keyboards/opendeck/32/rev1/config.h b/keyboards/opendeck/32/rev1/config.h index 17cf330d6d..446cb047fa 100644 --- a/keyboards/opendeck/32/rev1/config.h +++ b/keyboards/opendeck/32/rev1/config.h @@ -16,6 +16,8 @@ #pragma once #define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND +#define IS31FL3731_SDB_PIN D2 +#define IS31FL3731_IRQ_PIN D3 #define RGB_MATRIX_DISABLE_KEYCODES diff --git a/keyboards/opendeck/32/rev1/rev1.c b/keyboards/opendeck/32/rev1/rev1.c index 2bf04f8479..8b3f9c0222 100644 --- a/keyboards/opendeck/32/rev1/rev1.c +++ b/keyboards/opendeck/32/rev1/rev1.c @@ -93,13 +93,9 @@ void keyboard_pre_init_kb(void) { setPinOutput(POWER_LED_PIN); writePinLow(POWER_LED_PIN); - // Enable RGB driver IC - setPinOutput(RGB_DISABLE_N_PIN); - writePinHigh(RGB_DISABLE_N_PIN); - // We don't use this feature of the IS31FL3731 but it is electrically connected // Make sure not to drive it - setPinInput(RGB_IRQ_N_PIN); + setPinInput(IS31FL3731_IRQ_PIN); keyboard_pre_init_user(); } diff --git a/keyboards/opendeck/32/rev1/rev1.h b/keyboards/opendeck/32/rev1/rev1.h index 69777d95ab..455b2ac753 100644 --- a/keyboards/opendeck/32/rev1/rev1.h +++ b/keyboards/opendeck/32/rev1/rev1.h @@ -19,8 +19,6 @@ #include "quantum.h" #define POWER_LED_PIN F1 -#define RGB_DISABLE_N_PIN D2 -#define RGB_IRQ_N_PIN D3 // If you want something similar to what Taran from LMG does in https://github.com/TaranVH/2nd-keyboard // you can create a "wrapper key" by uncommenting the row below and chosing your wrapper keycode. -- cgit v1.2.3