summaryrefslogtreecommitdiff
path: root/keyboards/pohjolaworks/louhi/keymaps
diff options
context:
space:
mode:
authorErkki Halinen <erkkihalinen@gmail.com>2021-01-06 19:53:04 +0200
committerGitHub <noreply@github.com>2021-01-06 09:53:04 -0800
commitbca88177d3b85696b98b0758c76fb20de6013485 (patch)
tree2baca01bba61f33cf372eefe02b6cc9468956faa /keyboards/pohjolaworks/louhi/keymaps
parent515cea4b787ffc4b043e6569d3b6e67247e06f0f (diff)
[Keyboard] Add Louhi keyboard (#11244)
* Add Louhi QMK config * Modify info.json layout * change compile and flash examples * Tweak layout, change picture * Change pictures to Imgur hosted * Update keyboards/pohjolaworks/louhi/louhi.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/louhi.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/info.json Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/info.json Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/pohjolaworks/louhi/readme.md Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/pohjolaworks/louhi/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/pohjolaworks/louhi/keymaps/default/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/pohjolaworks/louhi/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Erkki Halinen <erkki-eemeli.halinen@cgi.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/pohjolaworks/louhi/keymaps')
-rw-r--r--keyboards/pohjolaworks/louhi/keymaps/default/keymap.c57
-rw-r--r--keyboards/pohjolaworks/louhi/keymaps/default/readme.md5
2 files changed, 62 insertions, 0 deletions
diff --git a/keyboards/pohjolaworks/louhi/keymaps/default/keymap.c b/keyboards/pohjolaworks/louhi/keymaps/default/keymap.c
new file mode 100644
index 0000000000..ee334a249b
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/keymaps/default/keymap.c
@@ -0,0 +1,57 @@
+/* Copyright 2020 Erkki Halinen
+ *
+ * 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/>.
+ */
+#include QMK_KEYBOARD_H
+
+enum layers {
+ _QWERTY,
+ _LOWER,
+ _RAISE,
+};
+
+#define LOWER MO(_LOWER)
+#define RAISE MO(_RAISE)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+[_QWERTY] = LAYOUT_7u_space(
+ KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, 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_NUHS, KC_ENT,
+ KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, LT(RAISE, KC_PGUP), KC_RSFT,
+ KC_LSFT, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, LT(LOWER, KC_PGDN), KC_DEL
+),
+
+[_LOWER] = LAYOUT_7u_space(
+ KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, KC_DEL,
+ KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_ENT,
+ _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, KC_RSFT,
+ _______, _______, _______, _______, _______, _______, _______
+),
+
+[_RAISE] = LAYOUT_7u_space(
+ KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, KC_DEL,
+ KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_ENT,
+ _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, KC_RSFT,
+ KC_VOLU, KC_MPLY, KC_MNXT, _______, _______, _______, _______
+)
+};
+
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (clockwise) {
+ tap_code(KC_PGDN);
+ } else {
+ tap_code(KC_PGUP);
+ }
+}
diff --git a/keyboards/pohjolaworks/louhi/keymaps/default/readme.md b/keyboards/pohjolaworks/louhi/keymaps/default/readme.md
new file mode 100644
index 0000000000..58708a2a42
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/keymaps/default/readme.md
@@ -0,0 +1,5 @@
+# The default keymap for Louhi
+
+Base layer
+
+![Default layout](https://i.imgur.com/FBR3Xpg.png)