Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix i2c received value in georgi and bajjak #24113

Merged
merged 1 commit into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keyboards/bajjak/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static matrix_row_t read_cols(uint8_t row) {
// reading GPIOB (column port) since in mcp23018's sequential mode
// it is addressed directly after writing to GPIOA in select_row()
mcp23018_status = i2c_receive(I2C_ADDR, &data, 1, BAJJAK_EZ_I2C_TIMEOUT);
return data;
return ~data;
}
} else {
/* read from teensy
Expand Down
1 change: 1 addition & 0 deletions keyboards/gboards/georgi/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ static matrix_row_t read_cols(uint8_t row)
} else {
uint8_t data = 0;
mcp23018_status = i2c_read_register(I2C_ADDR, GPIOB, &data, 1, ERGODOX_EZ_I2C_TIMEOUT);
data = ~data;

#ifdef DEBUG_MATRIX
if (data != 0x00) xprintf("I2C: %d\n", data);
Expand Down
Loading