1
0

More flexibility on matrix size

This commit is contained in:
Kai Ryu 2014-05-26 17:31:01 +09:00
parent ee5ca258ee
commit c7592bbd1f

View File

@ -32,7 +32,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef KEYMAPS_COUNT #ifndef KEYMAPS_COUNT
#define KEYMAPS_COUNT 1 #define KEYMAPS_COUNT 1
#endif #endif
#define KEYS_COUNT (KEYMAPS_COUNT * matrix_rows() * matrix_cols()) #ifndef MATRIX_SIZE
#define MATRIX_SIZE (matrix_rows() * matrix_cols())
#endif
#define KEYS_COUNT (KEYMAPS_COUNT * MATRIX_SIZE)
typedef struct { typedef struct {
uint16_t checksum; uint16_t checksum;