summaryrefslogtreecommitdiff
path: root/keyboards/skyloong/gk61/pro
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-02-15 18:11:50 +1100
committerGitHub <noreply@github.com>2024-02-15 07:11:50 +0000
commita9f1105f98ecca299d401f81cd5cc1699683e2ce (patch)
tree879817fceabf9bbfaac7666999eb87c7a6693309 /keyboards/skyloong/gk61/pro
parent0b7df03ab77552da806ed0b62d95fbf4199a534d (diff)
LED drivers: add support for shutdown pin (#23058)
* LED drivers: add support for shutdown pin * Update candidate boards
Diffstat (limited to 'keyboards/skyloong/gk61/pro')
-rw-r--r--keyboards/skyloong/gk61/pro/config.h2
-rw-r--r--keyboards/skyloong/gk61/pro/pro.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/keyboards/skyloong/gk61/pro/config.h b/keyboards/skyloong/gk61/pro/config.h
index 5e6d6d0e6a..db02496f8b 100644
--- a/keyboards/skyloong/gk61/pro/config.h
+++ b/keyboards/skyloong/gk61/pro/config.h
@@ -4,9 +4,9 @@
#pragma once
#define IS31FL3743A_I2C_ADDRESS_1 IS31FL3743A_I2C_ADDRESS_GND_GND
+#define IS31FL3743A_SDB_PIN C1
#define CAPS_LOCK_INDEX 28
#define WIN_MOD_INDEX 16
#define MAC_MOD_INDEX 17
#define WIN_LOCK_INDEX 54
-#define SDB C1 //RGB matrix Power control PIN
diff --git a/keyboards/skyloong/gk61/pro/pro.c b/keyboards/skyloong/gk61/pro/pro.c
index 6240d9cead..55fcf3b41f 100644
--- a/keyboards/skyloong/gk61/pro/pro.c
+++ b/keyboards/skyloong/gk61/pro/pro.c
@@ -213,14 +213,14 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
void suspend_power_down_kb() {
# ifdef RGB_MATRIX_ENABLE
- writePinLow(SDB);
+ writePinLow(IS31FL3743A_SDB_PIN);
# endif
suspend_power_down_user();
}
void suspend_wakeup_init_kb() {
# ifdef RGB_MATRIX_ENABLE
- writePinHigh(SDB);
+ writePinHigh(IS31FL3743A_SDB_PIN);
# endif
suspend_wakeup_init_user();
}
@@ -228,8 +228,4 @@ void suspend_wakeup_init_kb() {
void board_init(void) {
// JTAG-DP Disabled and SW-DP Disabled
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk) | AFIO_MAPR_SWJ_CFG_DISABLE;
-# ifdef RGB_MATRIX_ENABLE
- setPinOutput(SDB);
- writePinHigh(SDB);
-# endif
}