]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboard/alps64/matrix.c
adds backlight levels to the satan keyboard (#431)
[qmk_firmware.git] / keyboard / alps64 / matrix.c
index a49755c3a375eef5d06844a41d0d77b271b44705..805999d4a1a739051fd2fe0a14ebf1cd08336a74 100644 (file)
@@ -66,6 +66,12 @@ void matrix_init(void)
         matrix[i] = 0;
         matrix_debouncing[i] = 0;
     }
+
+    //debug
+    debug_matrix = true;
+    LED_ON();
+    _delay_ms(500);
+    LED_OFF();
 }
 
 uint8_t matrix_scan(void)
@@ -147,9 +153,10 @@ static void unselect_rows(void)
     DDRD  &= ~0b01111111;
     PORTD &= ~0b01111111;
     DDRC  &= ~0b00000100;
-    PORTD &= ~0b00000100;
+    PORTC &= ~0b00000100;
 }
 
+
 static void select_row(uint8_t row)
 {
     // Output low(DDR:1, PORT:0) to select