#include "matrix.h"
#include "split_util.h"
#include "config.h"
-#include "split_flags.h"
#include "quantum.h"
#include "debounce.h"
#include "transport.h"
+#ifdef ENCODER_ENABLE
+ #include "encoder.h"
+#endif
+
#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
# define print_matrix_row(row) print_bin_reverse8(matrix_get_row(row))
#elif (DIODE_DIRECTION == COL2ROW)
static void select_row(uint8_t row) {
- writePinLow(row_pins[row]);
setPinOutput(row_pins[row]);
+ writePinLow(row_pins[row]);
}
static void unselect_row(uint8_t row) { setPinInputHigh(row_pins[row]); }
#elif (DIODE_DIRECTION == ROW2COL)
static void select_col(uint8_t col) {
- writePinLow(col_pins[col]);
setPinOutput(col_pins[col]);
+ writePinLow(col_pins[col]);
}
static void unselect_col(uint8_t col) { setPinInputHigh(col_pins[col]); }
debounce(raw_matrix, matrix + thisHand, ROWS_PER_HAND, changed);
- return 1;
+ return (uint8_t)changed;
}
uint8_t matrix_scan(void) {
matrix_scan_quantum();
} else {
transport_slave(matrix + thisHand);
+#ifdef ENCODER_ENABLE
+ encoder_read();
+#endif
matrix_slave_scan_user();
}