summaryrefslogtreecommitdiff
path: root/keyboards/yiancardesigns/barleycorn
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-01-16 13:26:40 +1100
committerGitHub <noreply@github.com>2024-01-16 02:26:40 +0000
commita522b1f15627c69f94cbc814968be5a63519b8e3 (patch)
tree2a6ea5f05d6d728230294dd4a298e0343a22be9d /keyboards/yiancardesigns/barleycorn
parente1f59a6efc793522155db35155f6fbdc0504d504 (diff)
i2c: rename read/write register functions (#22905)
Diffstat (limited to 'keyboards/yiancardesigns/barleycorn')
-rw-r--r--keyboards/yiancardesigns/barleycorn/matrix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/yiancardesigns/barleycorn/matrix.c b/keyboards/yiancardesigns/barleycorn/matrix.c
index 99366d6098..9ef2926566 100644
--- a/keyboards/yiancardesigns/barleycorn/matrix.c
+++ b/keyboards/yiancardesigns/barleycorn/matrix.c
@@ -42,9 +42,9 @@ static void init_pins(void) {
unselect_rows();
// Set I/O
uint8_t send_data[2] = { 0xFF, 0x03};
- i2c_writeReg((PORT_EXPANDER_ADDRESS << 1), 0x00, &send_data[0], 2, 20);
+ i2c_write_register((PORT_EXPANDER_ADDRESS << 1), 0x00, &send_data[0], 2, 20);
// Set Pull-up
- i2c_writeReg((PORT_EXPANDER_ADDRESS << 1), 0x0C, &send_data[0], 2, 20);
+ i2c_write_register((PORT_EXPANDER_ADDRESS << 1), 0x0C, &send_data[0], 2, 20);
for (uint8_t x = 0; x < MATRIX_COLS; x++) {
if ( x < 8 ) {
@@ -75,7 +75,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row)
matrix_io_delay();
uint8_t port_expander_col_buffer[2];
- i2c_readReg((PORT_EXPANDER_ADDRESS << 1), 0x12, &port_expander_col_buffer[0], 2, 20);
+ i2c_read_register((PORT_EXPANDER_ADDRESS << 1), 0x12, &port_expander_col_buffer[0], 2, 20);
// For each col...
for(uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) {