summaryrefslogtreecommitdiff
path: root/keyboards/ergodox/ez
diff options
context:
space:
mode:
authorStick <nstickney@gmail.com>2017-06-02 20:02:02 -0500
committerStick <nstickney@gmail.com>2017-06-02 20:02:02 -0500
commitf397402e101774eedd1748b1e31c7386f927d4ed (patch)
tree6dcc463471553ddc04d41b5f45f6a9de0bb19faf /keyboards/ergodox/ez
parent4cf17210b60eb7da77f66b8e5af1947a3d168f2f (diff)
ugly workaround for ErgoDoxEZ LED bugs: turn 'em all off
Diffstat (limited to 'keyboards/ergodox/ez')
-rw-r--r--keyboards/ergodox/ez/ez.c42
-rw-r--r--keyboards/ergodox/ez/matrix.c3
2 files changed, 22 insertions, 23 deletions
diff --git a/keyboards/ergodox/ez/ez.c b/keyboards/ergodox/ez/ez.c
index 3e19f23028..55b51f6fa8 100644
--- a/keyboards/ergodox/ez/ez.c
+++ b/keyboards/ergodox/ez/ez.c
@@ -22,30 +22,30 @@ void matrix_init_kb(void) {
PORTD |= (1<<5 | 1<<4);
PORTE |= (1<<6);
- ergodox_blink_all_leds();
+ //ergodox_blink_all_leds();
matrix_init_user();
}
-void ergodox_blink_all_leds(void)
-{
- ergodox_led_all_off();
- ergodox_led_all_set(LED_BRIGHTNESS_HI);
- ergodox_right_led_1_on();
- _delay_ms(50);
- ergodox_right_led_2_on();
- _delay_ms(50);
- ergodox_right_led_3_on();
- _delay_ms(50);
- ergodox_right_led_1_off();
- _delay_ms(50);
- ergodox_right_led_2_off();
- _delay_ms(50);
- ergodox_right_led_3_off();
- //ergodox_led_all_on();
- //_delay_ms(333);
- ergodox_led_all_off();
-}
+// void ergodox_blink_all_leds(void)
+// {
+// ergodox_led_all_off();
+// ergodox_led_all_set(LED_BRIGHTNESS_HI);
+// ergodox_right_led_1_on();
+// _delay_ms(50);
+// ergodox_right_led_2_on();
+// _delay_ms(50);
+// ergodox_right_led_3_on();
+// _delay_ms(50);
+// ergodox_right_led_1_off();
+// _delay_ms(50);
+// ergodox_right_led_2_off();
+// _delay_ms(50);
+// ergodox_right_led_3_off();
+// //ergodox_led_all_on();
+// //_delay_ms(333);
+// ergodox_led_all_off();
+// }
uint8_t init_mcp23018(void) {
mcp23018_status = 0x20;
@@ -57,7 +57,7 @@ uint8_t init_mcp23018(void) {
// cli();
if (i2c_initialized == 0) {
i2c_init(); // on pins D(1,0)
- i2c_initialized++;
+ i2c_initialized = 1;
_delay_ms(1000);
}
diff --git a/keyboards/ergodox/ez/matrix.c b/keyboards/ergodox/ez/matrix.c
index 21b60a542e..a489e5b5cc 100644
--- a/keyboards/ergodox/ez/matrix.c
+++ b/keyboards/ergodox/ez/matrix.c
@@ -183,7 +183,7 @@ uint8_t matrix_scan(void)
print("left side not responding\n");
} else {
print("left side attached\n");
- ergodox_blink_all_leds();
+// ergodox_blink_all_leds();
}
}
}
@@ -391,4 +391,3 @@ static void select_row(uint8_t row)
}
}
}
-