aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-03-30 03:57:21 +1100
committerGitHub <[email protected]>2024-03-29 16:57:21 +0000
commitd0cf7b85192ce4431bb4c8c57e2d7501df83ac43 (patch)
treee182500e7df7bf2886300e53e5c7d7c03b01bb40 /keyboards
parente891109c4e115a303e109b179bf9d24edbdd7ad7 (diff)
downloadqmk_firmware-d0cf7b85192ce4431bb4c8c57e2d7501df83ac43.tar.gz
qmk_firmware-d0cf7b85192ce4431bb4c8c57e2d7501df83ac43.zip
Update GPIO expander API naming (#23375)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/geistmaschine/macropod/matrix.c2
-rw-r--r--keyboards/ktec/ergodone/matrix.c2
-rw-r--r--keyboards/mechwild/sugarglider/matrix.c2
-rw-r--r--keyboards/moon/matrix.c4
-rw-r--r--keyboards/switchplate/southpaw_65/matrix.c6
-rw-r--r--keyboards/viktus/sp111/matrix.c2
-rw-r--r--keyboards/xiudi/xd84/matrix.c6
-rw-r--r--keyboards/xiudi/xd96/matrix.c6
8 files changed, 15 insertions, 15 deletions
diff --git a/keyboards/geistmaschine/macropod/matrix.c b/keyboards/geistmaschine/macropod/matrix.c
index 60b1dafe63..ebc10e2e5a 100644
--- a/keyboards/geistmaschine/macropod/matrix.c
+++ b/keyboards/geistmaschine/macropod/matrix.c
@@ -55,7 +55,7 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
pca9555_setup();
}
// Read the entire port into this byte, 1 = not pressed, 0 = pressed
- bool ret = pca9555_readPins(IC1, PCA9555_PORT0, &pin_states);
+ bool ret = pca9555_read_pins(IC1, PCA9555_PORT0, &pin_states);
// Update state
if (ret) {
diff --git a/keyboards/ktec/ergodone/matrix.c b/keyboards/ktec/ergodone/matrix.c
index cb845db1bc..a9a517f2f1 100644
--- a/keyboards/ktec/ergodone/matrix.c
+++ b/keyboards/ktec/ergodone/matrix.c
@@ -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);
diff --git a/keyboards/mechwild/sugarglider/matrix.c b/keyboards/mechwild/sugarglider/matrix.c
index c76a8345d3..2fa384ed22 100644
--- a/keyboards/mechwild/sugarglider/matrix.c
+++ b/keyboards/mechwild/sugarglider/matrix.c
@@ -38,7 +38,7 @@ static matrix_row_t read_cols(void) {
}
uint8_t ret = 0xFF; // sets all to 1
- mcp23018_errors += !mcp23018_readPins(I2C_ADDR, mcp23018_PORTB, &ret); // will update with values 0 = pulled down by connection, 1 = pulled up by pullup resistors
+ mcp23018_errors += !mcp23018_read_pins(I2C_ADDR, mcp23018_PORTB, &ret); // will update with values 0 = pulled down by connection, 1 = pulled up by pullup resistors
return (~ret) & 0b00111111; // Clears out the two row bits in the B buffer.
}
diff --git a/keyboards/moon/matrix.c b/keyboards/moon/matrix.c
index bb46e1b576..8c9b6214db 100644
--- a/keyboards/moon/matrix.c
+++ b/keyboards/moon/matrix.c
@@ -145,8 +145,8 @@ static void select_row(uint8_t row) {
static uint16_t read_cols(void) {
uint8_t state_1 = 0;
uint8_t state_2 = 0;
- pca9555_readPins(IC2, PCA9555_PORT0, &state_1);
- pca9555_readPins(IC2, PCA9555_PORT1, &state_2);
+ pca9555_read_pins(IC2, PCA9555_PORT0, &state_1);
+ pca9555_read_pins(IC2, PCA9555_PORT1, &state_2);
uint16_t state = (((uint16_t)state_1 & PORT0_COLS_MASK) << 3) | (((uint16_t)state_2 & PORT1_COLS_MASK));
diff --git a/keyboards/switchplate/southpaw_65/matrix.c b/keyboards/switchplate/southpaw_65/matrix.c
index e24dcef853..a7008e9c7d 100644
--- a/keyboards/switchplate/southpaw_65/matrix.c
+++ b/keyboards/switchplate/southpaw_65/matrix.c
@@ -54,9 +54,9 @@ static uint32_t read_cols(void) {
uint8_t state_1 = 0;
uint8_t state_2 = 0;
uint8_t state_3 = 0;
- pca9555_readPins(IC1, PCA9555_PORT1, &state_1);
- pca9555_readPins(IC2, PCA9555_PORT0, &state_2);
- pca9555_readPins(IC2, PCA9555_PORT1, &state_3);
+ pca9555_read_pins(IC1, PCA9555_PORT1, &state_1);
+ pca9555_read_pins(IC2, PCA9555_PORT0, &state_2);
+ pca9555_read_pins(IC2, PCA9555_PORT1, &state_3);
uint32_t state = ((((uint32_t)state_3 & 0b01111111) << 12) | ((uint32_t)state_2 << 4) | (((uint32_t)state_1 & 0b11110000) >> 4));
return ~state;
diff --git a/keyboards/viktus/sp111/matrix.c b/keyboards/viktus/sp111/matrix.c
index 33b232dca7..a39365cef6 100644
--- a/keyboards/viktus/sp111/matrix.c
+++ b/keyboards/viktus/sp111/matrix.c
@@ -117,7 +117,7 @@ static void select_row_MCP23018(uint8_t row) {
static uint16_t read_cols_MCP23018(void) {
uint16_t tmp = 0xFFFF;
- mcp23018_errors += !mcp23018_readPins_all(I2C_ADDR, &tmp);
+ mcp23018_errors += !mcp23018_read_pins_all(I2C_ADDR, &tmp);
uint16_t state = ((tmp & 0b11111111) << 2) | ((tmp & 0b0110000000000000) >> 13);
return (~state) & 0b1111111111;
diff --git a/keyboards/xiudi/xd84/matrix.c b/keyboards/xiudi/xd84/matrix.c
index 04128561ee..d92ac83b4a 100644
--- a/keyboards/xiudi/xd84/matrix.c
+++ b/keyboards/xiudi/xd84/matrix.c
@@ -51,10 +51,10 @@ static void select_row(uint8_t row) {
}
static uint16_t read_cols(void) {
- // uint16_t state_1 = pca9555_readPins(IC2, PCA9555_PORT0);
- // uint16_t state_2 = pca9555_readPins(IC2, PCA9555_PORT1);
+ // uint16_t state_1 = pca9555_read_pins(IC2, PCA9555_PORT0);
+ // uint16_t state_2 = pca9555_read_pins(IC2, PCA9555_PORT1);
uint16_t state = 0;
- pca9555_readPins_all(IC2, &state);
+ pca9555_read_pins_all(IC2, &state);
// For the XD84 all cols are on the same IC and mapped sequentially
// while this technically gives 16 column reads,
diff --git a/keyboards/xiudi/xd96/matrix.c b/keyboards/xiudi/xd96/matrix.c
index beef7fae12..641202ca2c 100644
--- a/keyboards/xiudi/xd96/matrix.c
+++ b/keyboards/xiudi/xd96/matrix.c
@@ -53,9 +53,9 @@ static uint32_t read_cols(void) {
uint8_t state_1 = 0;
uint8_t state_2 = 0;
uint8_t state_3 = 0;
- pca9555_readPins(IC2, PCA9555_PORT0, &state_1);
- pca9555_readPins(IC2, PCA9555_PORT1, &state_2);
- pca9555_readPins(IC1, PCA9555_PORT1, &state_3);
+ pca9555_read_pins(IC2, PCA9555_PORT0, &state_1);
+ pca9555_read_pins(IC2, PCA9555_PORT1, &state_2);
+ pca9555_read_pins(IC1, PCA9555_PORT1, &state_3);
// For the XD96 the pins are mapped to port expanders as follows:
// all 8 pins port 0 IC2, first 6 pins port 1 IC2, first 4 pins port 1 IC1