diff --git a/keyboard/gh60/Makefile b/keyboard/gh60/Makefile index 8da7908d..f535bd73 100644 --- a/keyboard/gh60/Makefile +++ b/keyboard/gh60/Makefile @@ -137,6 +137,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality KEYMAP_EX_ENABLE = yes # External keymap in eeprom KEYMAP_SECTION_ENABLE = yes # Fixed address keymap for keymap editor +LED_MATRIX_ENABLE = yes # Optimize size but this may cause error "relocation truncated to fit" diff --git a/keyboard/gh60/led_matrix.c b/keyboard/gh60/led_matrix.c index bcd94218..2d3e544f 100644 --- a/keyboard/gh60/led_matrix.c +++ b/keyboard/gh60/led_matrix.c @@ -47,10 +47,14 @@ void led_matrix_write_cols(led_matrix_row_t cols) */ void led_matrix_unselect_rows(void) { - // bit 76543210 + // unselect key matrix rows + //DDRD &= ~0b00101111; + //PORTD &= ~0b00101111; + + // bit 76543210 DDRB &= ~0b01000100; PORTB &= ~0b01000100; - // bit 76543210 + // bit 76543210 DDRF &= ~0b11110000; PORTF &= ~0b11110000; }