summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k1_pro/matrix.c
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2023-08-05 21:36:52 +0800
committerGitHub <noreply@github.com>2023-08-05 21:36:52 +0800
commitaf8d6b4a2887f6a0946db3446eaa81b5174a6334 (patch)
tree5c794000d8412ffacd896108125ebb0271f11341 /keyboards/keychron/k1_pro/matrix.c
parentc7d1774a62cefa04e180308aecdf252facc6b9b6 (diff)
parent4832cd381ce02d3f2da48721e61212fa8ff83f24 (diff)
Merge pull request #156 from lalalademaxiya1/keychron_hc595_driver_fix
Updated matrix.c of some boards
Diffstat (limited to 'keyboards/keychron/k1_pro/matrix.c')
-rw-r--r--keyboards/keychron/k1_pro/matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/keychron/k1_pro/matrix.c b/keyboards/keychron/k1_pro/matrix.c
index 8be33235de..1ef3f96050 100644
--- a/keyboards/keychron/k1_pro/matrix.c
+++ b/keyboards/keychron/k1_pro/matrix.c
@@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
uint8_t n = 1;
uint8_t i;
- for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
+ for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
writePinLow(HC595_SHCP);
if (data & 0x1) {
writePinHigh(HC595_DS);