Skip to content

Commit

Permalink
handwired/onekey: refactor
Browse files Browse the repository at this point in the history
- keyboard now uses a layout macro
- keymap now uses #include QMK_KEYBOARD_H
  • Loading branch information
noroadsleft committed Dec 8, 2018
1 parent 81ce35c commit 7146af6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions keyboards/handwired/onekey/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "onekey.h"
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
{{ KC_A }}
LAYOUT( KC_A )
};
13 changes: 12 additions & 1 deletion keyboards/handwired/onekey/onekey.h
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
#include "quantum.h"
#ifndef ONEKEY_H
#define ONEKEY_H

#include "quantum.h"

#define LAYOUT( \
k00 \
) { \
{ k00 } \
}

#endif

0 comments on commit 7146af6

Please sign in to comment.