summaryrefslogtreecommitdiff
path: root/keyboards/handwired/xeal60/keymaps/zer09
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/xeal60/keymaps/zer09')
-rw-r--r--keyboards/handwired/xeal60/keymaps/zer09/config.h59
-rw-r--r--keyboards/handwired/xeal60/keymaps/zer09/keymap.c38
-rw-r--r--keyboards/handwired/xeal60/keymaps/zer09/keymap.h32
-rw-r--r--keyboards/handwired/xeal60/keymaps/zer09/rules.mk6
4 files changed, 135 insertions, 0 deletions
diff --git a/keyboards/handwired/xeal60/keymaps/zer09/config.h b/keyboards/handwired/xeal60/keymaps/zer09/config.h
new file mode 100644
index 0000000000..73438d8a93
--- /dev/null
+++ b/keyboards/handwired/xeal60/keymaps/zer09/config.h
@@ -0,0 +1,59 @@
+/*
+This is the c configuration file for the keymap
+
+Copyright 2012 Jun Wako <wakojun@gmail.com>
+Copyright 2015 Jack Humbert
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#include "../../config.h"
+
+/* key matrix size */
+/* Rows are doubled-up */
+#undef MATRIX_ROWS
+#undef MATRIX_COLS
+#define MATRIX_ROWS 10
+#define MATRIX_COLS 5
+
+#undef MATRIX_ROW_PINS
+#undef MATRIX_COL_PINS
+#define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
+#define MATRIX_COL_PINS { F7, B1, B3, B2, B6 }
+
+#define CATERINA_BOOTLOADER
+#define USB_MAX_POWER_CONSUMPTION 50
+
+/* Use I2C or Serial, not both */
+
+#define USE_SERIAL
+// #define USE_I2C
+
+/* Select hand configuration */
+
+/* #define MASTER_LEFT */
+// #define MASTER_RIGHT
+#define EE_HANDS
+
+/* ws2812 RGB LED */
+#undef RGBLED_NUM
+#define RGB_DI_PIN D3
+#define RGBLIGHT_TIMER
+#define RGBLED_NUM 50
+#define ws2812_PORTREG PORTD
+#define ws2812_DDRREG DDRD
+#endif
diff --git a/keyboards/handwired/xeal60/keymaps/zer09/keymap.c b/keyboards/handwired/xeal60/keymaps/zer09/keymap.c
new file mode 100644
index 0000000000..8d0eaf1411
--- /dev/null
+++ b/keyboards/handwired/xeal60/keymaps/zer09/keymap.c
@@ -0,0 +1,38 @@
+#include "keymap.h"
+
+extern keymap_config_t keymap_config;
+
+#define _baseLayer LAYOUT( \
+ KC_QUOTE, KC_COMMA, KC_DOT, KC_P, KC_Y, /**/KC_F, KC_G, KC_C, KC_R, KC_L, \
+ CTL_T(KC_A), SFT_T(KC_O), ALT_T(KC_E), KC_U, KC_I, /**/KC_D, KC_H, ALT_T(KC_T), SFT_T(KC_N), CTL_T(KC_S), \
+ KC_SCOLON, KC_Q, KC_J, KC_K, KC_X, /**/KC_B, KC_M, KC_W, KC_V, KC_Z, \
+ TD(DA_UPLY), MO(_VL), KC_TAB, KC_BSPACE, KC_ESC, /**/KC_INS, KC_HOME, KC_PGUP, MO(_VL), TD(DA_UPLY), \
+ TD(DA_DWLY), TD(DA_LCTL), KC_SPC, TD(DA_LSPR), LSFT_T(KC_CAPS),/**/SFT_T(KC_CAPS), TD(DA_RALT), KC_ENT, TD(DA_RCTL), TD(DA_DWLY))
+
+#define _upLayer LAYOUT( \
+ KC_4, KC_5, KC_6, _______, _______,/**/ _______, KC_RBRC, _______, _______, _______, \
+ LCTL_T(KC_1), LSFT_T(KC_2), LALT_T(KC_3), _______, _______,/**/ KC_LBRC, KC_BSLS, _______, _______, _______, \
+ KC_7, KC_8, KC_9, KC_0, KC_GRV, /**/ KC_SLSH, _______, _______, _______, _______, \
+ _______, _______, _______, _______, _______,/**/ KC_DEL, KC_END, KC_PGDN, _______, _______, \
+ _______, _______, _______, _______, _______,/**/ _______, _______, _______, _______, _______)
+
+#define _downLayer LAYOUT( \
+ KC_F4, KC_F5, KC_F6, KC_F12, _______,/**/ _______, KC_RPRN, _______, _______, _______, \
+ LCTL_T(KC_F1), LSFT_T(KC_F2), LALT_T(KC_F3), KC_F11, _______,/**/ KC_LPRN, KC_EQUAL, KC_LEFT, KC_UP, KC_RIGHT, \
+ KC_F7, KC_F8, KC_F9, KC_F10, _______,/**/ KC_MINUS, _______, _______, KC_DOWN, _______, \
+ _______, _______, _______, _______, _______,/**/ KC_PSCR, KC_SLCK, KC_PAUSE, _______, _______, \
+ _______, _______, _______, _______, _______,/**/ _______, _______, _______, _______, _______)
+
+#define _astdLayer LAYOUT( \
+ KC_MPRV, KC_MUTE, _______, _______, _______,/**/KC_PSCR, KC_SLCK, KC_PAUSE, _______, KC_RGUP, \
+ KC_MPLY, KC_VOLD, _______, _______, _______,/**/_______, _______, _______, _______, KC_RGDWN, \
+ KC_MNXT, KC_VOLU, RESET, _______, _______,/**/_______, _______, RESET, _______, _______, \
+ _______, _______, _______, _______, _______,/**/_______, _______, _______, _______, _______, \
+ _______, _______, _______, _______, _______,/**/_______, _______, _______, _______, _______)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BL] = _baseLayer,
+ [_UL] = _upLayer,
+ [_DL] = _downLayer,
+ [_VL] = _upLayer,
+ [_AL] = _astdLayer};
diff --git a/keyboards/handwired/xeal60/keymaps/zer09/keymap.h b/keyboards/handwired/xeal60/keymaps/zer09/keymap.h
new file mode 100644
index 0000000000..03f8f480af
--- /dev/null
+++ b/keyboards/handwired/xeal60/keymaps/zer09/keymap.h
@@ -0,0 +1,32 @@
+#include "lets_split.h"
+#include "action_layer.h"
+#include "eeconfig.h"
+#include "tap_dance.h"
+#include "zer09.h"
+
+#ifdef LAYOUT_ortho_4x12
+#undef LAYOUT_ortho_4x12
+#endif
+
+#ifdef LAYOUT
+#undef LAYOUT
+#define LAYOUT( \
+ L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
+ L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
+ L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
+ L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
+ L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
+) \
+ { \
+ { L00, L01, L02, L03, L04 }, \
+ { L10, L11, L12, L13, L14 }, \
+ { L20, L21, L22, L23, L24 }, \
+ { L30, L31, L32, L33, L34 }, \
+ { L40, L41, L42, L43, L44 }, \
+ { R00, R01, R02, R03, R04 }, \
+ { R10, R11, R12, R13, R14 }, \
+ { R20, R21, R22, R23, R24 }, \
+ { R30, R31, R32, R33, R34 }, \
+ { R40, R41, R42, R43, R44 } \
+ }
+#endif
diff --git a/keyboards/handwired/xeal60/keymaps/zer09/rules.mk b/keyboards/handwired/xeal60/keymaps/zer09/rules.mk
new file mode 100644
index 0000000000..d8adc70882
--- /dev/null
+++ b/keyboards/handwired/xeal60/keymaps/zer09/rules.mk
@@ -0,0 +1,6 @@
+RGBLIGHT_ENABLE = yes
+TAP_DANCE_ENABLE = yes
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif