]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
handwired/onekey Refactor and readme update (#4590)
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>
Mon, 10 Dec 2018 17:22:50 +0000 (09:22 -0800)
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Mon, 10 Dec 2018 17:22:50 +0000 (09:22 -0800)
* handwired/onekey: refactor

- keyboard now uses a layout macro
- keymap now uses #include QMK_KEYBOARD_H

* handwired/onekey: readme update

Updated Docs links.

keyboards/handwired/onekey/keymaps/default/keymap.c
keyboards/handwired/onekey/onekey.h
keyboards/handwired/onekey/readme.md

index 10c486718d5f434f2b2184e6b8b937e8e3bd977c..dd64f9fa55b407298f188c6b1b333eb21d90cef1 100644 (file)
@@ -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 )
 };
index 7a4a4835e61ef9db8788b0db26868f719027d239..8ce6fec2d081641949022ef8f40daeddc8f158c9 100644 (file)
@@ -1 +1,12 @@
-#include "quantum.h"
\ No newline at end of file
+#ifndef ONEKEY_H
+#define ONEKEY_H
+
+#include "quantum.h"
+
+#define LAYOUT( \
+    k00 \
+  ) { \
+    { k00 }  \
+}
+
+#endif
index c28e284f327abb889f0fcef8760667658493b418..eab3b75a936f539fb8db39e6d310e12002e26ab4 100644 (file)
@@ -12,4 +12,4 @@ Make example for this keyboard (after setting up your build environment):
 
     make handwired/onekey:default
 
-See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information.
\ No newline at end of file
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).