aboutsummaryrefslogtreecommitdiff
path: root/keyboards/input_club
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 /keyboards/input_club
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 'keyboards/input_club')
-rw-r--r--keyboards/input_club/ergodox_infinity/config.h1
-rw-r--r--keyboards/input_club/ergodox_infinity/ergodox_infinity.c5
-rw-r--r--keyboards/input_club/k_type/config.h1
-rw-r--r--keyboards/input_club/k_type/is31fl3733-dual.c6
-rw-r--r--keyboards/input_club/k_type/k_type.c8
-rw-r--r--keyboards/input_club/whitefox/config.h1
-rw-r--r--keyboards/input_club/whitefox/whitefox.c9
7 files changed, 9 insertions, 22 deletions
diff --git a/keyboards/input_club/ergodox_infinity/config.h b/keyboards/input_club/ergodox_infinity/config.h
index b8ab5604d4..bf9ebc980f 100644
--- a/keyboards/input_club/ergodox_infinity/config.h
+++ b/keyboards/input_club/ergodox_infinity/config.h
@@ -44,6 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* LED matrix driver */
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
+#define IS31FL3731_SDB_PIN B16
/* i2c (for LED matrix) */
#define I2C1_CLOCK_SPEED 400000
diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c
index 80d3681437..7660a41f56 100644
--- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c
+++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c
@@ -95,11 +95,6 @@ __attribute__ ((weak)) void matrix_scan_user(void) {}
void keyboard_pre_init_kb(void) {
-#ifdef LED_MATRIX_ENABLE
- // Turn on LED controller
- setPinOutput(B16);
- writePinHigh(B16);
-#endif
// The backlight always has to be initialized, otherwise it will stay lit
lcd_backlight_hal_init();
#ifdef ST7565_ENABLE
diff --git a/keyboards/input_club/k_type/config.h b/keyboards/input_club/k_type/config.h
index 182f0a61d7..e46ede7b7b 100644
--- a/keyboards/input_club/k_type/config.h
+++ b/keyboards/input_club/k_type/config.h
@@ -50,3 +50,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
#define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_GND
+#define IS31FL3733_SDB_PIN B16
diff --git a/keyboards/input_club/k_type/is31fl3733-dual.c b/keyboards/input_club/k_type/is31fl3733-dual.c
index f8f4398332..9e1e6b57f7 100644
--- a/keyboards/input_club/k_type/is31fl3733-dual.c
+++ b/keyboards/input_club/k_type/is31fl3733-dual.c
@@ -18,6 +18,7 @@
#include "is31fl3733-dual.h"
#include "i2c_master.h"
+#include "gpio.h"
#include "wait.h"
#define IS31FL3733_PWM_REGISTER_COUNT 192
@@ -126,6 +127,11 @@ void is31fl3733_write_pwm_buffer(uint8_t bus, uint8_t index) {
}
void is31fl3733_init_drivers(void) {
+#if defined(IS31FL3733_SDB_PIN)
+ setPinOutput(IS31FL3733_SDB_PIN);
+ writePinHigh(IS31FL3733_SDB_PIN);
+#endif
+
i2c_init(&I2CD1, I2C1_SCL_PIN, I2C1_SDA_PIN);
is31fl3733_init(0, 0);
diff --git a/keyboards/input_club/k_type/k_type.c b/keyboards/input_club/k_type/k_type.c
index e97007fc70..c1377ebe61 100644
--- a/keyboards/input_club/k_type/k_type.c
+++ b/keyboards/input_club/k_type/k_type.c
@@ -201,14 +201,6 @@ led_config_t g_led_config = {
}
};
-void keyboard_pre_init_kb(void) {
- // Turn on LED controller
- setPinOutput(B16);
- writePinHigh(B16);
-
- keyboard_pre_init_user();
-}
-
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
diff --git a/keyboards/input_club/whitefox/config.h b/keyboards/input_club/whitefox/config.h
index 0a2a060e9b..664fcf9dc1 100644
--- a/keyboards/input_club/whitefox/config.h
+++ b/keyboards/input_club/whitefox/config.h
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* LED matrix driver */
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
+#define IS31FL3731_SDB_PIN B16
/* i2c (for LED matrix) */
#define I2C1_CLOCK_SPEED 400000
diff --git a/keyboards/input_club/whitefox/whitefox.c b/keyboards/input_club/whitefox/whitefox.c
index 07741365c3..773dbd3dc9 100644
--- a/keyboards/input_club/whitefox/whitefox.c
+++ b/keyboards/input_club/whitefox/whitefox.c
@@ -65,15 +65,6 @@ led_config_t g_led_config = {
};
#endif
-void keyboard_pre_init_kb(void) {
-#ifdef LED_MATRIX_ENABLE
- // Turn on LED controller
- setPinOutput(B16);
- writePinHigh(B16);
-#endif
- keyboard_pre_init_user();
-}
-
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up