Browse Source

New branch for led_matrix

led_matrix
Kai Ryu 10 years ago
parent
commit
2a119e1c59
2 changed files with 7 additions and 2 deletions
  1. 1
    0
      keyboard/gh60/Makefile
  2. 6
    2
      keyboard/gh60/led_matrix.c

+ 1
- 0
keyboard/gh60/Makefile View File

@@ -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"

+ 6
- 2
keyboard/gh60/led_matrix.c View File

@@ -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;
}