mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-14 16:05:11 +00:00
handwired/onekey Refactor and readme update (#4590)
* handwired/onekey: refactor - keyboard now uses a layout macro - keymap now uses #include QMK_KEYBOARD_H * handwired/onekey: readme update Updated Docs links.
This commit is contained in:
parent
753f57ee00
commit
090c30212e
3 changed files with 15 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
#include "onekey.h"
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
{{ KC_A }}
|
LAYOUT( KC_A )
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1,12 @@
|
||||||
|
#ifndef ONEKEY_H
|
||||||
|
#define ONEKEY_H
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
k00 \
|
||||||
|
) { \
|
||||||
|
{ k00 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -12,4 +12,4 @@ Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
make handwired/onekey:default
|
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.
|
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).
|
||||||
|
|
Loading…
Reference in a new issue