improve layer switching
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
#include <stdbool.h>
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
#include "matrix.h"
|
||||
#include "print.h"
|
||||
#include "util.h"
|
||||
#include "controller.h"
|
||||
#include "matrix_skel.h"
|
||||
|
||||
// matrix is active low. (key on: 0/key off: 1)
|
||||
// row: Hi-Z(unselected)/low output(selected)
|
||||
@@ -16,8 +17,8 @@
|
||||
// PB0-PB7
|
||||
|
||||
// matrix state buffer
|
||||
uint8_t *matrix;
|
||||
uint8_t *matrix_prev;
|
||||
static uint8_t *matrix;
|
||||
static uint8_t *matrix_prev;
|
||||
static uint8_t _matrix0[MATRIX_ROWS];
|
||||
static uint8_t _matrix1[MATRIX_ROWS];
|
||||
|
||||
|
Reference in New Issue
Block a user