diff options
author | Jack Humbert <[email protected]> | 2018-06-12 14:27:22 -0400 |
---|---|---|
committer | Jack Humbert <[email protected]> | 2018-06-12 14:27:22 -0400 |
commit | b8564f5dd08f49ee0fc6d28957a376132bd7038d (patch) | |
tree | 5a0ddabb672b057ea0f5c6fcb97f08a5dae11272 /keyboards/ergodox_ez/ergodox_ez.c | |
parent | 998ddbb122c9d3e2a77bd4e88c881b225ca0d569 (diff) | |
download | qmk_firmware-b8564f5dd08f49ee0fc6d28957a376132bd7038d.tar.gz qmk_firmware-b8564f5dd08f49ee0fc6d28957a376132bd7038d.zip |
revert some attempts, update i2c
Diffstat (limited to 'keyboards/ergodox_ez/ergodox_ez.c')
-rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c index b393d73d7e..3a2d1273fa 100644 --- a/keyboards/ergodox_ez/ergodox_ez.c +++ b/keyboards/ergodox_ez/ergodox_ez.c @@ -113,13 +113,13 @@ uint8_t init_mcp23018(void) { // sreg_prev=SREG; // cli(); - // if (i2c_initialized == 0) { - // i2c_init(); // on pins D(1,0) - // i2c_initialized = true; - // _delay_ms(1000); - // } - i2c_init(); // on pins D(1,0) - _delay_ms(1000); + if (i2c_initialized == 0) { + i2c_init(); // on pins D(1,0) + i2c_initialized = true; + _delay_ms(1000); + } + // i2c_init(); // on pins D(1,0) + // _delay_ms(1000); // set pin direction // - unused : input : 1 |