mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-07 22:35:42 +00:00
update skyloong/gk104/q1
This commit is contained in:
parent
c4edd10464
commit
822dbcd654
@ -2,7 +2,8 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
//Matrix read rows set col:DIODE_DIRECTION == ROW2COL
|
//Matrix read rows set col:DIODE_DIRECTION == ROW2COL
|
||||||
|
|
||||||
#include "quantum.h"
|
#include <string.h>
|
||||||
|
#include "atomic_util.h"
|
||||||
#include "debounce.h"
|
#include "debounce.h"
|
||||||
|
|
||||||
#define ClOCK_TIME 15
|
#define ClOCK_TIME 15
|
||||||
@ -57,11 +58,11 @@ static inline uint8_t readMatrixPin(pin_t pin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline void clockPulse(uint16_t n) {
|
static inline void clockPulse(uint16_t n) {
|
||||||
writePinHigh(HC595_SH_PIN);
|
gpio_write_pin_high(HC595_SH_PIN);
|
||||||
writePinHigh(HC595_ST_PIN);
|
gpio_write_pin_high(HC595_ST_PIN);
|
||||||
select_delay(n);
|
select_delay(n);
|
||||||
writePinLow(HC595_SH_PIN);
|
gpio_write_pin_low(HC595_SH_PIN);
|
||||||
writePinLow(HC595_ST_PIN);
|
gpio_write_pin_low(HC595_ST_PIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// matrix code
|
// matrix code
|
||||||
|
Loading…
Reference in New Issue
Block a user