summaryrefslogtreecommitdiff
path: root/keyboards/skyloong/gk61/pro_48
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/skyloong/gk61/pro_48')
-rw-r--r--keyboards/skyloong/gk61/pro_48/config.h2
-rw-r--r--keyboards/skyloong/gk61/pro_48/pro_48.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/keyboards/skyloong/gk61/pro_48/config.h b/keyboards/skyloong/gk61/pro_48/config.h
index 18f3ef3e72..5b4976e2da 100644
--- a/keyboards/skyloong/gk61/pro_48/config.h
+++ b/keyboards/skyloong/gk61/pro_48/config.h
@@ -4,10 +4,10 @@
#pragma once
#define IS31FL3743A_I2C_ADDRESS_1 IS31FL3743A_I2C_ADDRESS_GND_GND
+#define IS31FL3743A_SDB_PIN A4
#define CAPS_LOCK_INDEX 28
#define WIN_MOD_INDEX 16
#define MAC_MOD_INDEX 17
-#define SDB A4
#define g_suspend_state rgb_matrix_get_suspend_state()
diff --git a/keyboards/skyloong/gk61/pro_48/pro_48.c b/keyboards/skyloong/gk61/pro_48/pro_48.c
index dc1058a08b..ffa04f2c05 100644
--- a/keyboards/skyloong/gk61/pro_48/pro_48.c
+++ b/keyboards/skyloong/gk61/pro_48/pro_48.c
@@ -149,12 +149,12 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
void suspend_power_down_kb(void) {
- writePinLow(SDB);
+ writePinLow(IS31FL3743A_SDB_PIN);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
- writePinHigh(SDB);
+ writePinHigh(IS31FL3743A_SDB_PIN);
suspend_wakeup_init_user();
}
#endif
@@ -220,8 +220,4 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
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
}