Bugfix: wrong order during init
All credits to Tensor@geekhack http://geekhack.org/index.php?topic=48106.msg1076661#msg1076661
This commit is contained in:
parent
06dbf89043
commit
04949711f4
3 changed files with 5 additions and 1 deletions
|
|
@ -62,8 +62,10 @@ void init_ergodox(void)
|
|||
PORTC |= (1<<7);
|
||||
PORTD |= (1<<7 | 1<<5 | 1<<4);
|
||||
PORTE |= (1<<6);
|
||||
}
|
||||
|
||||
// blink leds
|
||||
void ergodox_blink_all_leds(void)
|
||||
{
|
||||
ergodox_led_all_off();
|
||||
ergodox_led_all_set(LED_BRIGHTNESS_HI);
|
||||
ergodox_led_all_on();
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ Most used files are located at
|
|||
#define OLATB 0x15
|
||||
|
||||
void init_ergodox(void);
|
||||
void ergodox_blink_all_leds(void);
|
||||
uint8_t init_mcp23018(void);
|
||||
uint8_t ergodox_left_leds_update(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ void matrix_init(void)
|
|||
// initialize row and col
|
||||
init_ergodox();
|
||||
mcp23018_status = init_mcp23018();
|
||||
ergodox_blink_all_leds();
|
||||
unselect_rows();
|
||||
init_cols();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue