Skip to content

Commit ff50fe0

Browse files
sigprofrodrigob
authored andcommitted
Unbreak switchplate/southpaw_65 after qmk#16277 (qmk#20015)
Apparently the changes done in qmk#16277 swapped the values read from the PCA9555 expanders by mistake, which resulted in mixed up matrix columns. Fix the chip and register addresses to match the original code.
1 parent a477cd2 commit ff50fe0

File tree

1 file changed

+3
-3
lines changed
  • keyboards/switchplate/southpaw_65

1 file changed

+3
-3
lines changed

keyboards/switchplate/southpaw_65/matrix.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ static uint32_t read_cols(void) {
5454
uint8_t state_1 = 0;
5555
uint8_t state_2 = 0;
5656
uint8_t state_3 = 0;
57-
pca9555_readPins(IC2, PCA9555_PORT0, &state_1);
58-
pca9555_readPins(IC2, PCA9555_PORT1, &state_2);
59-
pca9555_readPins(IC1, PCA9555_PORT1, &state_3);
57+
pca9555_readPins(IC1, PCA9555_PORT1, &state_1);
58+
pca9555_readPins(IC2, PCA9555_PORT0, &state_2);
59+
pca9555_readPins(IC2, PCA9555_PORT1, &state_3);
6060

6161
uint32_t state = ((((uint32_t)state_3 & 0b01111111) << 12) | ((uint32_t)state_2 << 4) | (((uint32_t)state_1 & 0b11110000) >> 4));
6262
return ~state;

0 commit comments

Comments
 (0)