Browse Source

Add keymap

Fred Sundvik 8 years ago
parent
commit
617578399c
2 changed files with 8 additions and 1 deletions
  1. 1 1
      tests/basic/config.h
  2. 7 0
      tests/basic/test.c

+ 1 - 1
tests/basic/config.h

@@ -17,7 +17,7 @@
 #ifndef TESTS_BASIC_CONFIG_H_
 #define TESTS_BASIC_CONFIG_H_
 
-#define MATRIX_ROWS 1
+#define MATRIX_ROWS 2
 #define MATRIX_COLS 2
 
 

+ 7 - 0
tests/basic/test.c

@@ -14,4 +14,11 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "quantum.h"
 
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+	[0] = {
+	    {KC_A, KC_B},
+	    {KC_C, KC_D}
+	},
+};