Skip to content

Commit

Permalink
fixed s73 left toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
yulei committed Nov 20, 2023
1 parent 2046068 commit 38f698b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keyboards/jojo/s73/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______,
_______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, _______, _______, _______, KC_PGUP, _______,
_______, _______, _______, KC_MPLY, _______, _______, KC_MPRV, KC_PGDOWN, KC_MNXT),
_______, _______, _______, KC_MPLY, _______, _______, KC_MPRV, KC_PGDN, KC_MNXT),
};
2 changes: 1 addition & 1 deletion keyboards/jojo/s73/s73.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214}, \
{ K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314}, \
{ K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K410, K411, K412, K413, K414}, \
{ K500, K501, K502, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K514}, \
{ K500, K501, K503, K502, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K514}, \
}
9 changes: 7 additions & 2 deletions keyboards/jojo/s73/s73_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,15 @@ bool matrix_scan_custom(matrix_row_t current_matrix[])
writePinLow(aux_row_pins[row]);
matrix_io_delay();
for (int col = 0; col < AUX_MATRIX_COLS; col++) {
int c = col;
if (row==0) {
if (col==0) c = 1;
if (col==1) c = 0;
}
if (readPin(aux_col_pins[col])) {
current_row_value &= ~(1<<(row*AUX_MATRIX_COLS + col + 2));
current_row_value &= ~(1<<(row*AUX_MATRIX_COLS + c + 2));
} else {
current_row_value |= (1<<(row*AUX_MATRIX_COLS + col + 2));
current_row_value |= (1<<(row*AUX_MATRIX_COLS + c + 2));
}
if (last_row_value != current_row_value) {
current_matrix[MATRIX_ROWS-1] = current_row_value;
Expand Down

0 comments on commit 38f698b

Please sign in to comment.