1
0
Fork 0

Update GPIO expander API naming (#23375)

This commit is contained in:
Ryan 2024-03-30 03:57:21 +11:00 committed by GitHub
parent e891109c4e
commit d0cf7b8519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 44 additions and 30 deletions

View file

@ -49,7 +49,7 @@ static matrix_row_t expander_read_row(void) {
}
uint8_t ret = 0xFF;
mcp23018_errors += !mcp23018_readPins(I2C_ADDR, mcp23018_PORTA, &ret);
mcp23018_errors += !mcp23018_read_pins(I2C_ADDR, mcp23018_PORTA, &ret);
ret = bitrev(~ret);
ret = ((ret & 0b11111000) >> 1) | (ret & 0b00000011);