Move keyMatrix to main.c and only initialize it once in main()

This commit is contained in:
László Monda
2017-01-02 22:55:23 +01:00
parent 64ca3001de
commit 47c7863026
3 changed files with 69 additions and 55 deletions

17
right/src/main.h Normal file
View 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