From 2a119e1c594f9d4124e0e5914652160581d93047 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Mon, 10 Feb 2014 19:26:00 +0900 Subject: [PATCH] New branch for led_matrix --- keyboard/gh60/Makefile | 1 + keyboard/gh60/led_matrix.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; }