]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
handwired/nicekey Refactor and readme cleanup (#4588)
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>
Mon, 10 Dec 2018 05:43:24 +0000 (21:43 -0800)
committerDrashna Jaelre <drashna@live.com>
Mon, 10 Dec 2018 05:43:24 +0000 (21:43 -0800)
* handwired/nicekey: refactor

Now uses a layout macro.

* handwired/nicekey: readme cleanup

- linked maintainer's GitHub account
- updated Docs links

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

index 57323771566c47b9bd8a14ee90895519aef605d4..139ea6a3beb509f167921469003ea185a4a29dbf 100644 (file)
@@ -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 )
 };
index 7a4a4835e61ef9db8788b0db26868f719027d239..ee5bcfd6be60731d5053ba59beeaa25fd727c291 100644 (file)
@@ -1 +1,12 @@
-#include "quantum.h"
\ No newline at end of file
+#ifndef NICEKEY_H
+#define NICEKEY_H
+
+#include "quantum.h"
+
+#define LAYOUT( \
+    k00 \
+  ) { \
+    { k00 }  \
+}
+
+#endif
index a867e907e6f0a51a1227ffebfcb213328e3d48fd..e108b38dd1fd0fa358ef87716ddd2199e8f45535 100644 (file)
@@ -5,7 +5,7 @@
 
 Custom handwired nicekey, a one key keyboard that writes random compliments.
 
-Keyboard Maintainer:  spydon  
+Keyboard Maintainer: [spydon](https://github.com/spydon)  
 Hardware Supported: Custom handwired one key  
 Hardware Availability:
 
@@ -15,4 +15,4 @@ Make example for this keyboard (after setting up your build environment):
 
     make handwired/nicekey: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.
+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).