Skip to content

Commit

Permalink
handwired/nicekey: refactor
Browse files Browse the repository at this point in the history
Now uses a layout macro.
  • Loading branch information
noroadsleft committed Dec 7, 2018
1 parent 81ce35c commit d8a8dce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keyboards/handwired/nicekey/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
};

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

#include "quantum.h"

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

#endif

0 comments on commit d8a8dce

Please sign in to comment.