move our externed keymaps definition closer to where it should be.

This means we can define ROWS and COLS a bit later in our implementation

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/461/head
Jesse Vincent 6 years ago committed by Gergely Nagy
parent f2d3ae9103
commit 0d8f913f9d

@ -21,8 +21,6 @@
#include "kaleidoscope/key_defs.h" #include "kaleidoscope/key_defs.h"
#include "kaleidoscope/keyswitch_state.h" #include "kaleidoscope/keyswitch_state.h"
extern const Key keymaps[][ROWS][COLS];
// Code can use this macro on injected key events to signal that // Code can use this macro on injected key events to signal that
// the event isn't tied to a specific physical keyswitch // the event isn't tied to a specific physical keyswitch

@ -20,6 +20,9 @@
#include "kaleidoscope/key_defs.h" #include "kaleidoscope/key_defs.h"
#include KALEIDOSCOPE_HARDWARE_H #include KALEIDOSCOPE_HARDWARE_H
extern const Key keymaps[][ROWS][COLS];
// Macro for defining the keymap. This should be used in the sketch // Macro for defining the keymap. This should be used in the sketch
// file (*.ino) to define the keymap[] array that holds the user's // file (*.ino) to define the keymap[] array that holds the user's
// layers. It also computes the number of layers in that keymap. // layers. It also computes the number of layers in that keymap.

Loading…
Cancel
Save