summaryrefslogtreecommitdiffstats
path: root/keyboards/dc01/right/matrix.c
diff options
context:
space:
mode:
authorAlex Ong <the.onga@gmail.com>2019-01-26 02:13:19 +0100
committerAlex Ong <the.onga@gmail.com>2019-01-26 02:13:19 +0100
commitc9ba618654417ec115809a031d315f8327c79ad4 (patch)
treecd5b907af5bebde7062897ff847e473232ed1214 /keyboards/dc01/right/matrix.c
parent2bb2977c133646c4e056960e72029270d77cc1eb (diff)
parentd977daa8dc9136746425f9e1414e1f93cb161877 (diff)
downloadqmk_firmware-c9ba618654417ec115809a031d315f8327c79ad4.tar.gz
qmk_firmware-c9ba618654417ec115809a031d315f8327c79ad4.tar.xz
DO NOT USE Merge branch 'master' into debounce_refactor
Merged, however now there are two debounce.h and debounce.c to mess around with and coalesce. # Conflicts: # quantum/matrix.c
Diffstat (limited to 'keyboards/dc01/right/matrix.c')
-rw-r--r--keyboards/dc01/right/matrix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c
index aa2e880d0..50fe19b8d 100644
--- a/keyboards/dc01/right/matrix.c
+++ b/keyboards/dc01/right/matrix.c
@@ -195,14 +195,14 @@ uint8_t matrix_scan(void)
debouncing = false;
}
# endif
-
+
if (USB_DeviceState != DEVICE_STATE_Configured){
- txbuffer[1] = 0x55;
+ i2c_slave_reg[1] = 0x55;
for (uint8_t i = 0; i < MATRIX_ROWS; i++){
- txbuffer[i+2] = matrix[i]; //send matrix over i2c
+ i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c
}
}
-
+
matrix_scan_quantum();
return 1;
}
@@ -396,9 +396,9 @@ static void unselect_cols(void)
//this replases tmk code
void matrix_setup(void){
-
+
if (USB_DeviceState != DEVICE_STATE_Configured){
- i2c_init(SLAVE_I2C_ADDRESS); //setup address of slave i2c
+ i2c_slave_init(SLAVE_I2C_ADDRESS); //setup address of slave i2c
sei(); //enable interupts
}
} \ No newline at end of file