diff options
| author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2018-12-09 21:43:24 -0800 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-12-09 21:43:24 -0800 |
| commit | 753f57ee0003c9adde5446e813e3a347d4b15a2a (patch) | |
| tree | 379859e43edd536f71e4b9b2e381f54fc0c322cc | |
| parent | fd3b0787ed4fc8d58158fa8c7136bc1d3b48ab16 (diff) | |
| download | qmk_firmware-753f57ee0003c9adde5446e813e3a347d4b15a2a.tar.gz qmk_firmware-753f57ee0003c9adde5446e813e3a347d4b15a2a.zip | |
handwired/nicekey Refactor and readme cleanup (#4588)
* handwired/nicekey: refactor
Now uses a layout macro.
* handwired/nicekey: readme cleanup
- linked maintainer's GitHub account
- updated Docs links
| -rw-r--r-- | keyboards/handwired/nicekey/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/handwired/nicekey/nicekey.h | 13 | ||||
| -rw-r--r-- | keyboards/handwired/nicekey/readme.md | 4 |
3 files changed, 15 insertions, 4 deletions
diff --git a/keyboards/handwired/nicekey/keymaps/default/keymap.c b/keyboards/handwired/nicekey/keymaps/default/keymap.c index 573237715..139ea6a3b 100644 --- a/keyboards/handwired/nicekey/keymaps/default/keymap.c +++ b/keyboards/handwired/nicekey/keymaps/default/keymap.c | |||
| @@ -71,5 +71,5 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 73 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 73 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 74 | {{ RANDOM_STRING_MACRO }} | 74 | LAYOUT( RANDOM_STRING_MACRO ) |
| 75 | }; | 75 | }; |
diff --git a/keyboards/handwired/nicekey/nicekey.h b/keyboards/handwired/nicekey/nicekey.h index 7a4a4835e..ee5bcfd6b 100644 --- a/keyboards/handwired/nicekey/nicekey.h +++ b/keyboards/handwired/nicekey/nicekey.h | |||
| @@ -1 +1,12 @@ | |||
| 1 | #include "quantum.h" \ No newline at end of file | 1 | #ifndef NICEKEY_H |
| 2 | #define NICEKEY_H | ||
| 3 | |||
| 4 | #include "quantum.h" | ||
| 5 | |||
| 6 | #define LAYOUT( \ | ||
| 7 | k00 \ | ||
| 8 | ) { \ | ||
| 9 | { k00 } \ | ||
| 10 | } | ||
| 11 | |||
| 12 | #endif | ||
diff --git a/keyboards/handwired/nicekey/readme.md b/keyboards/handwired/nicekey/readme.md index a867e907e..e108b38dd 100644 --- a/keyboards/handwired/nicekey/readme.md +++ b/keyboards/handwired/nicekey/readme.md | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | Custom handwired nicekey, a one key keyboard that writes random compliments. | 6 | Custom handwired nicekey, a one key keyboard that writes random compliments. |
| 7 | 7 | ||
| 8 | Keyboard Maintainer: spydon | 8 | Keyboard Maintainer: [spydon](https://github.com/spydon) |
| 9 | Hardware Supported: Custom handwired one key | 9 | Hardware Supported: Custom handwired one key |
| 10 | Hardware Availability: | 10 | Hardware Availability: |
| 11 | 11 | ||
| @@ -15,4 +15,4 @@ Make example for this keyboard (after setting up your build environment): | |||
| 15 | 15 | ||
| 16 | make handwired/nicekey:default | 16 | make handwired/nicekey:default |
| 17 | 17 | ||
| 18 | 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. | 18 | 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). |
