summaryrefslogtreecommitdiff
path: root/keyboards/handwired/hillside/46/keymaps/default_dot_c
diff options
context:
space:
mode:
authormmccoyd <mmccoyd@users.noreply.github.com>2022-08-13 12:10:01 -0700
committerGitHub <noreply@github.com>2022-08-13 20:10:01 +0100
commitaee738c61b52cce2ce03c78587450b17e982a522 (patch)
tree4af33cf5f775cad1a4ad89803b7fb9100a039e93 /keyboards/handwired/hillside/46/keymaps/default_dot_c
parentb1fe7621ebb086a519778030381eb5729e949523 (diff)
[Keyboard] Add Hillside 46 (#17968)
* 46: Copy from 52 and file rename * 46: File internals refer to 46, not 52 * 46: Board remove row * 46: Keymap: Lshift becomes ctrl, Rshift a symbol - ESC and CAPs on upper thumbs - AltGr and App on upper thumbs - Page up/down on upper thumbs - F11, F12 and mods for them on adjust * 46: Readme update for json script, tweaks * 46: Board fix LED count * 46: Keymap: Arrows right, symmetric layer keys * 46: Readme: Image link with and w/o outer pinkie * 46: Keymap: link fixed image of nav layer * 46: Keymap: fix reaching adj layer Co-authored-by: mmccoyd <mmccoyd@cs.berkley.edu>
Diffstat (limited to 'keyboards/handwired/hillside/46/keymaps/default_dot_c')
-rw-r--r--keyboards/handwired/hillside/46/keymaps/default_dot_c/config.h9
-rw-r--r--keyboards/handwired/hillside/46/keymaps/default_dot_c/keymap.c64
-rw-r--r--keyboards/handwired/hillside/46/keymaps/default_dot_c/readme.md25
-rw-r--r--keyboards/handwired/hillside/46/keymaps/default_dot_c/rules.mk1
4 files changed, 99 insertions, 0 deletions
diff --git a/keyboards/handwired/hillside/46/keymaps/default_dot_c/config.h b/keyboards/handwired/hillside/46/keymaps/default_dot_c/config.h
new file mode 100644
index 0000000000..d209c914bf
--- /dev/null
+++ b/keyboards/handwired/hillside/46/keymaps/default_dot_c/config.h
@@ -0,0 +1,9 @@
+// Copyright 2022 Michael McCoyd (@mmccoyd)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+// Some boards have issues detecting handedness using the vbus voltage.
+// Such as Elite-C v3, but not v3.1 on. Also apparently some ProMicro boards.
+// For those boands, use usb detection instead.
+// #define SPLIT_USB_DETECT
diff --git a/keyboards/handwired/hillside/46/keymaps/default_dot_c/keymap.c b/keyboards/handwired/hillside/46/keymaps/default_dot_c/keymap.c
new file mode 100644
index 0000000000..ca58cdeef5
--- /dev/null
+++ b/keyboards/handwired/hillside/46/keymaps/default_dot_c/keymap.c
@@ -0,0 +1,64 @@
+// Copyright 2022 Michael McCoyd (@mmccoyd)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+enum layers {
+ _QWERTY = 0,
+ _NAV,
+ _SYM,
+ _ADJUST,
+};
+
+#define xxxxxxx KC_NO
+
+#define LY_NAV MO(_NAV)
+#define LY_SYM MO(_SYM)
+#define LY_ADJ MO(_ADJUST)
+#define ALT_GR OSM(MOD_RALT)
+#define OSM_SFT OSM(MOD_LSFT)
+#define PLY_PAU KC_MEDIA_PLAY_PAUSE
+
+#define UNDO LCTL(KC_Z)
+#define CUT LCTL(KC_X)
+#define COPY LCTL(KC_C)
+#define PASTE LCTL(KC_V)
+#define REDO LCTL(KC_Y)
+// (For OS X, you'll want to change these editing keys to LGUI(KC_Z) etc.)
+
+
+// clang-format off
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_QWERTY] = LAYOUT(
+ KC_GRV, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
+ KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
+ KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ESC, CAPSWRD, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT,
+ KC_LGUI, KC_LALT, OSM_SFT, LY_NAV , LY_SYM , KC_SPC , KC_LALT, KC_RGUI
+ ),
+ [_NAV] = LAYOUT(
+ COPY , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , _______,
+ CUT , KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, PASTE , KC_PGUP, KC_LEFT, KC_UP , KC_DOWN, KC_RGHT, KC_PGDN,
+ _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , UNDO , REDO , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_RCTL,
+ _______, _______, _______, _______, LY_ADJ , _______, _______, _______
+ ),
+ [_SYM] = LAYOUT(
+ KC_INS, KC_EXLM, KC_AT , KC_HASH, KC_DLR , KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
+ xxxxxxx, KC_BSLS, KC_MINS, KC_EQL , KC_LBRC, KC_RBRC, KC_HOME, KC_RSFT, KC_RCTL, KC_LALT, KC_RGUI, KC_END,
+ _______, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, ALT_GR , KC_APP , KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, xxxxxxx, KC_RCTL,
+ _______, _______, _______, LY_ADJ , _______, _______, _______, _______
+ ),
+ [_ADJUST] = LAYOUT(
+ xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, AG_SWAP, CG_SWAP, xxxxxxx, KC_F11 , KC_F12 , KC_PSCR, xxxxxxx, EE_CLR,
+ xxxxxxx, xxxxxxx, KC_BRID, KC_BRIU, AG_NORM, CG_NORM, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, xxxxxxx, xxxxxxx,
+ xxxxxxx, KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, xxxxxxx, xxxxxxx, RGB_TOG, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, xxxxxxx, QK_BOOT,
+ xxxxxxx, xxxxxxx, xxxxxxx, _______, _______, xxxxxxx, xxxxxxx, xxxxxxx
+ ),
+};
+
+// Template:
+// [_INDEX] = LAYOUT(
+// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+// _______, _______, _______, _______, _______, _______, _______, _______
+// ),
diff --git a/keyboards/handwired/hillside/46/keymaps/default_dot_c/readme.md b/keyboards/handwired/hillside/46/keymaps/default_dot_c/readme.md
new file mode 100644
index 0000000000..564691d611
--- /dev/null
+++ b/keyboards/handwired/hillside/46/keymaps/default_dot_c/readme.md
@@ -0,0 +1,25 @@
+# Default Hillside 46 Layout (in .c format)
+
+This layout is for those who prefer defining their layout in a keymap.c,
+ instead of graphically with a keymap.json.
+It is the same as the [default keymap.json layout](https://github.com/qmk/qmk_firmware/blob/master/keyboards/handwired/hillside/46/keymaps/default),
+ except for having only a QWERTY base layer.
+
+The make and flash commands are
+
+```
+make handwired/hillside/46:default_dot_c
+make handwired/hillside/46:default_doc_c:flash
+
+```
+
+It also serves as a simple, clean layout
+ to verify that the configuration and switches work.
+Use the [QMK Configurator Tester](https://config.qmk.fm/#/test)
+ to see that the switches produce output.
+All the keys should register on the layout tester
+ except for the caps word and the two layer keys.
+The LEDs should glow a nice red.
+If they do not, you may need to clear the persistent EEPROM settings with the
+ EE_CLR key on the adjust layer,
+ or enable them with the RGB_TOG key.
diff --git a/keyboards/handwired/hillside/46/keymaps/default_dot_c/rules.mk b/keyboards/handwired/hillside/46/keymaps/default_dot_c/rules.mk
new file mode 100644
index 0000000000..4711d2ff74
--- /dev/null
+++ b/keyboards/handwired/hillside/46/keymaps/default_dot_c/rules.mk
@@ -0,0 +1 @@
+CAPS_WORD_ENABLE = yes