mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-18 13:42:00 +00:00
update skyloong/gk980/q1
This commit is contained in:
parent
37ab372126
commit
94e3a0f74c
@ -1,6 +1,8 @@
|
||||
// Copyright 2023 NaturaZh (@NaturalZh)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "matrix.h"
|
||||
#include <string.h>
|
||||
#include "atomic_util.h"
|
||||
|
||||
#define CLOCK_TIME 15
|
||||
#define MATRIX_INPUT_PRESSED_STATE 0
|
||||
|
@ -151,7 +151,7 @@ layer_state_t default_layer_state_set_kb(layer_state_t state) {
|
||||
gpio_write_pin_low(MAC_PIN);
|
||||
break;
|
||||
case 1:
|
||||
writePinHigh(MAC_PIN);
|
||||
gpio_write_pin_high(MAC_PIN);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
@ -162,9 +162,9 @@ 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(AW20216S_EN_PIN_1);
|
||||
writePinHigh(AW20216S_EN_PIN_1);
|
||||
gpio_set_pin_output(AW20216S_EN_PIN);
|
||||
gpio_write_pin_high(AW20216S_EN_PIN);
|
||||
# endif
|
||||
setPinOutput(MAC_PIN);
|
||||
writePinHigh(MAC_PIN);
|
||||
gpio_set_pin_output(MAC_PIN);
|
||||
gpio_write_pin_high(MAC_PIN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user