Skip to content

Commit

Permalink
Revert "ugly workaround for ErgoDoxEZ LED bugs: turn 'em all off"
Browse files Browse the repository at this point in the history
This reverts commit f397402.
  • Loading branch information
nstickney committed Jun 8, 2017
1 parent 5a70cb3 commit 4b50ab0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
42 changes: 21 additions & 21 deletions keyboards/ergodox/ez/ez.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -57,7 +57,7 @@ uint8_t init_mcp23018(void) {
// cli();
if (i2c_initialized == 0) {
i2c_init(); // on pins D(1,0)
i2c_initialized = 1;
i2c_initialized++;
_delay_ms(1000);
}

Expand Down
3 changes: 2 additions & 1 deletion keyboards/ergodox/ez/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down Expand Up @@ -391,3 +391,4 @@ static void select_row(uint8_t row)
}
}
}

2 changes: 1 addition & 1 deletion keyboards/ergodox/keymaps/familiar/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
MT(MOD_RALT, KC_LBRC), KC_RBRC, KC_LEFT, KC_DOWN, KC_RGHT,
KC_PSCR, _______,
KC_NLCK,
TG(NUMP), LT(ARRW, KC_BSLS), KC_SPC
TG(NUMP), LT(ARRW, C_BSLS), KC_SPC
),

/* layer 1: International symbols, etc
Expand Down

0 comments on commit 4b50ab0

Please sign in to comment.