Add an 65_ansi community layout (#7793)
* Add an 65_ansi community layout - fix quoting because of comma in config.h * Enable LAYOUT_65_ansi for tada68 * cleanups * Update keyboards/tada68/tada68.h Co-Authored-By: fauxpark <fauxpark@gmail.com> Co-authored-by: fauxpark <fauxpark@gmail.com>
This commit is contained in:
parent
00d3061e02
commit
5f795d8382
@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
#define MANUFACTURER Yiancar-Designs
|
#define MANUFACTURER Yiancar-Designs
|
||||||
#define PRODUCT NK65
|
#define PRODUCT NK65
|
||||||
#define DESCRIPTION A 65-percent, tool-free RGB keyboard
|
#define DESCRIPTION "A 65-percent, tool-free RGB keyboard"
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
#define MATRIX_ROWS 5
|
#define MATRIX_ROWS 5
|
||||||
|
@ -26,3 +26,5 @@ MIDI_ENABLE = no # MIDI controls
|
|||||||
AUDIO_ENABLE = no
|
AUDIO_ENABLE = no
|
||||||
UNICODE_ENABLE = no # Unicode
|
UNICODE_ENABLE = no # Unicode
|
||||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
|
||||||
|
LAYOUTS = 65_ansi
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
{k40, k41, k42, XXX, XXX, k45, XXX, XXX, XXX, k49, k4a, k4b, k4c, k4d, k4e} \
|
{k40, k41, k42, XXX, XXX, k45, XXX, XXX, XXX, k49, k4a, k4b, k4c, k4d, k4e} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_ansi LAYOUT_65_ansi
|
||||||
|
|
||||||
/* TADA68 ISO layout
|
/* TADA68 ISO layout
|
||||||
* ,----------------------------------------------------------------.
|
* ,----------------------------------------------------------------.
|
||||||
* | 00 |01| 02| 03| 04| 05| 06| 07| 08| 09| 0a| 0b| 0c| 0d | 0e |
|
* | 00 |01| 02| 03| 04| 05| 06| 07| 08| 09| 0a| 0b| 0c| 0d | 0e |
|
||||||
|
40
layouts/community/65_ansi/yanfali/keymap.c
Executable file
40
layouts/community/65_ansi/yanfali/keymap.c
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum _layers {
|
||||||
|
BS,
|
||||||
|
FN
|
||||||
|
};
|
||||||
|
|
||||||
|
// shim wilba_tech
|
||||||
|
#ifndef EF_DEC
|
||||||
|
#define EF_DEC RGB_RMOD
|
||||||
|
#define EF_INC RGB_MOD
|
||||||
|
#define H1_DEC RGB_HUD
|
||||||
|
#define H1_INC RGB_HUI
|
||||||
|
#define H2_DEC RGB_HUD
|
||||||
|
#define H2_INC RGB_HUI
|
||||||
|
#define S1_DEC RGB_SAD
|
||||||
|
#define S1_INC RGB_SAI
|
||||||
|
#define S2_DEC RGB_SAD
|
||||||
|
#define S2_INC RGB_SAI
|
||||||
|
#define BR_DEC RGB_VAD
|
||||||
|
#define BR_INC RGB_VAI
|
||||||
|
#define ES_DEC KC_TRNS
|
||||||
|
#define ES_INC KC_TRNS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[BS] = LAYOUT_65_ansi( /* Base */
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME,\
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,\
|
||||||
|
LCTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,\
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, \
|
||||||
|
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(FN), KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[FN] = LAYOUT_65_ansi( /* FN */
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_TRNS,\
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS,\
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S1_DEC, S1_INC, S2_DEC, S2_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,\
|
||||||
|
KC_TRNS, EF_DEC, EF_INC, H1_DEC, H1_INC, H2_DEC, H2_INC, BR_DEC, BR_INC, ES_DEC, ES_INC, KC_TRNS, KC_TRNS, KC_TRNS,\
|
||||||
|
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user