update skyloong/gk104/q1

This commit is contained in:
NaturalZh 2024-04-03 16:54:33 +08:00
parent c4edd10464
commit 822dbcd654
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
//Matrix read rows set col:DIODE_DIRECTION == ROW2COL
#include "quantum.h"
#include <string.h>
#include "atomic_util.h"
#include "debounce.h"
#define ClOCK_TIME 15
@ -57,11 +58,11 @@ static inline uint8_t readMatrixPin(pin_t pin) {
}
static inline void clockPulse(uint16_t n) {
writePinHigh(HC595_SH_PIN);
writePinHigh(HC595_ST_PIN);
gpio_write_pin_high(HC595_SH_PIN);
gpio_write_pin_high(HC595_ST_PIN);
select_delay(n);
writePinLow(HC595_SH_PIN);
writePinLow(HC595_ST_PIN);
gpio_write_pin_low(HC595_SH_PIN);
gpio_write_pin_low(HC595_ST_PIN);
}
// matrix code