aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergotaco/matrix.c
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2019-05-15 19:53:45 -0400
committerJack Humbert <jack.humb@gmail.com>2019-05-15 19:53:45 -0400
commit8680c50d07604836b0fc7c3f97bd77c7830ea083 (patch)
treecbb99eeebb8976ed63f2960237f6b51726370bbf /keyboards/ergotaco/matrix.c
parent8bcefc92d0b1494b890dae3f41516acf831f539c (diff)
downloadqmk_firmware-8680c50d07604836b0fc7c3f97bd77c7830ea083.tar.gz
qmk_firmware-8680c50d07604836b0fc7c3f97bd77c7830ea083.zip
Removes Erez personally from QMK (#5883)
Diffstat (limited to 'keyboards/ergotaco/matrix.c')
-rw-r--r--keyboards/ergotaco/matrix.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/keyboards/ergotaco/matrix.c b/keyboards/ergotaco/matrix.c
index e4fd6902f..f7ceb194a 100644
--- a/keyboards/ergotaco/matrix.c
+++ b/keyboards/ergotaco/matrix.c
@@ -1,8 +1,4 @@
1/* 1/*
2Note for ErgoDox EZ customizers: Here be dragons!
3This is not a file you want to be messing with.
4All of the interesting stuff for you is under keymaps/ :)
5Love, Erez
6 2
7Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com> 3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
8 4
@@ -226,8 +222,8 @@ uint8_t matrix_scan(void)
226 matrix_scan_quantum(); 222 matrix_scan_quantum();
227 223
228#ifdef DEBUG_MATRIX 224#ifdef DEBUG_MATRIX
229 for (uint8_t c = 0; c < MATRIX_COLS; c++) 225 for (uint8_t c = 0; c < MATRIX_COLS; c++)
230 for (uint8_t r = 0; r < MATRIX_ROWS; r++) 226 for (uint8_t r = 0; r < MATRIX_ROWS; r++)
231 if (matrix_is_on(r, c)) xprintf("r:%d c:%d \n", r, c); 227 if (matrix_is_on(r, c)) xprintf("r:%d c:%d \n", r, c);
232#endif 228#endif
233 229
@@ -324,10 +320,10 @@ static void unselect_rows(void)
324static void select_row(uint8_t row) 320static void select_row(uint8_t row)
325{ 321{
326 if (row < 6) { 322 if (row < 6) {
327 // select on mcp23018 323 // select on mcp23018
328 if (mcp23018_status) { // do nothing on error 324 if (mcp23018_status) { // do nothing on error
329 // Read using bitmask 325 // Read using bitmask
330 } else { // set active row low : 0 // set other rows hi-Z : 1 326 } else { // set active row low : 0 // set other rows hi-Z : 1
331 mcp23018_status = i2c_start(I2C_ADDR_WRITE, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out; 327 mcp23018_status = i2c_start(I2C_ADDR_WRITE, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
332 mcp23018_status = i2c_write(GPIOA, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out; 328 mcp23018_status = i2c_write(GPIOA, ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;
333 mcp23018_status = i2c_write(~(1<<row), ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out; 329 mcp23018_status = i2c_write(~(1<<row), ERGODOX_EZ_I2C_TIMEOUT); if (mcp23018_status) goto out;