Move keyMatrix to main.c and only initialize it once in main()
This commit is contained in:
17
right/src/main.h
Normal file
17
right/src/main.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "key_matrix.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define KEYBOARD_MATRIX_COLS_NUM 7
|
||||
#define KEYBOARD_MATRIX_ROWS_NUM 5
|
||||
|
||||
// Variables:
|
||||
|
||||
extern key_matrix_t keyMatrix;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user