aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/pohjolaworks/louhi/config.h150
-rw-r--r--keyboards/pohjolaworks/louhi/info.json15
-rw-r--r--keyboards/pohjolaworks/louhi/keymaps/default/keymap.c57
-rw-r--r--keyboards/pohjolaworks/louhi/keymaps/default/readme.md5
-rw-r--r--keyboards/pohjolaworks/louhi/louhi.c17
-rw-r--r--keyboards/pohjolaworks/louhi/louhi.h59
-rw-r--r--keyboards/pohjolaworks/louhi/readme.md21
-rw-r--r--keyboards/pohjolaworks/louhi/rules.mk23
8 files changed, 347 insertions, 0 deletions
diff --git a/keyboards/pohjolaworks/louhi/config.h b/keyboards/pohjolaworks/louhi/config.h
new file mode 100644
index 000000000..a10d053b4
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/config.h
@@ -0,0 +1,150 @@
1/*
2Copyright 2020 Erkki Halinen
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x5057
24#define PRODUCT_ID 0x0001
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Pohjola Works
27#define PRODUCT Louhi
28
29/* key matrix size */
30#define MATRIX_ROWS 8
31#define MATRIX_COLS 7
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { D3, D2, D1, D0, D7, C6, B4, E6 }
44#define MATRIX_COL_PINS { D4, B6, F4, F5, F6, F7, B1 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/* Encoder pins */
51#define ENCODERS_PAD_A { B2 }
52#define ENCODERS_PAD_B { B3 }
53
54/*
55 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
56 */
57#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
58
59//#define BACKLIGHT_PIN B7
60//#define BACKLIGHT_LEVELS 3
61//#define BACKLIGHT_BREATHING
62
63#define RGB_DI_PIN B5
64#ifdef RGB_DI_PIN
65# define RGBLED_NUM 14
66# define RGBLIGHT_HUE_STEP 8
67# define RGBLIGHT_SAT_STEP 8
68# define RGBLIGHT_VAL_STEP 8
69# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
70//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
71/*== all animations enable ==*/
72//# define RGBLIGHT_ANIMATIONS
73/*== or choose animations ==*/
74//# define RGBLIGHT_EFFECT_BREATHING
75//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
76//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
77//# define RGBLIGHT_EFFECT_SNAKE
78//# define RGBLIGHT_EFFECT_KNIGHT
79//# define RGBLIGHT_EFFECT_CHRISTMAS
80//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
81//# define RGBLIGHT_EFFECT_RGB_TEST
82//# define RGBLIGHT_EFFECT_ALTERNATING
83/*== customize breathing effect ==*/
84/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
85//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
86/*==== use exp() and sin() ====*/
87//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
88//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
89#endif
90
91/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
92#define DEBOUNCE 5
93
94/* define if matrix has ghost (lacks anti-ghosting diodes) */
95//#define MATRIX_HAS_GHOST
96
97/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
98#define LOCKING_SUPPORT_ENABLE
99/* Locking resynchronize hack */
100#define LOCKING_RESYNC_ENABLE
101
102/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
103 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
104 */
105//#define GRAVE_ESC_CTRL_OVERRIDE
106
107/*
108 * Force NKRO
109 *
110 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
111 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
112 * makefile for this to work.)
113 *
114 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
115 * until the next keyboard reset.
116 *
117 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
118 * fully operational during normal computer usage.
119 *
120 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
121 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
122 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
123 * power-up.
124 *
125 */
126//#define FORCE_NKRO
127
128/*
129 * Feature disable options
130 * These options are also useful to firmware size reduction.
131 */
132
133/* disable debug print */
134//#define NO_DEBUG
135
136/* disable print */
137//#define NO_PRINT
138
139/* disable action features */
140//#define NO_ACTION_LAYER
141//#define NO_ACTION_TAPPING
142//#define NO_ACTION_ONESHOT
143
144/* disable these deprecated features by default */
145#define NO_ACTION_MACRO
146#define NO_ACTION_FUNCTION
147
148/* Bootmagic Lite key configuration */
149//#define BOOTMAGIC_LITE_ROW 0
150//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/pohjolaworks/louhi/info.json b/keyboards/pohjolaworks/louhi/info.json
new file mode 100644
index 000000000..40de4505d
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/info.json
@@ -0,0 +1,15 @@
1{
2 "keyboard_name": "Louhi",
3 "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/pohjolaworks/louhi",
4 "maintainer": "ErkHal",
5 "width": 13,
6 "height": 4,
7 "layouts": {
8 "LAYOUT_7u_space": {
9 "layout": [{"label":"Tab", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"\u00c5", "x":11, "y":0}, {"label":"Back Space", "x":12, "y":0}, {"label":"Esc", "x":0, "y":1}, {"label":"A", "x":1, "y":1}, {"label":"S", "x":2, "y":1}, {"label":"D", "x":3, "y":1}, {"label":"F", "x":4, "y":1}, {"label":"G", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":";", "x":10, "y":1}, {"label":"'", "x":11, "y":1}, {"label":"Enter", "x":12, "y":1}, {"label":"Shift", "x":0, "y":2}, {"label":"Z", "x":1, "y":2}, {"label":"X", "x":2, "y":2}, {"label":"C", "x":3, "y":2}, {"label":"V", "x":4, "y":2}, {"label":"B", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":",", "x":8, "y":2}, {"label":".", "x":9, "y":2}, {"label":"/", "x":10, "y":2}, {"label":"Up", "x":11, "y":2}, {"label":"Shift", "x":12, "y":2}, {"x":0, "y":3}, {"label":"Ctrl", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"x":3, "y":3, "w":7}, {"label":"Left", "x":10, "y":3}, {"label":"Down", "x":11, "y":3}, {"label":"Left", "x":12, "y":3}]
10 },
11 "LAYOUT_all": {
12 "layout": [{"label":"Tab", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"\u00c5", "x":11, "y":0}, {"label":"Back Space", "x":12, "y":0}, {"label":"Esc", "x":0, "y":1}, {"label":"A", "x":1, "y":1}, {"label":"S", "x":2, "y":1}, {"label":"D", "x":3, "y":1}, {"label":"F", "x":4, "y":1}, {"label":"G", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":";", "x":10, "y":1}, {"label":"'", "x":11, "y":1}, {"label":"Enter", "x":12, "y":1}, {"label":"Shift", "x":0, "y":2}, {"label":"Z", "x":1, "y":2}, {"label":"X", "x":2, "y":2}, {"label":"C", "x":3, "y":2}, {"label":"V", "x":4, "y":2}, {"label":"B", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":",", "x":8, "y":2}, {"label":".", "x":9, "y":2}, {"label":"/", "x":10, "y":2}, {"label":"Up", "x":11, "y":2}, {"label":"Shift", "x":12, "y":2}, {"x":0, "y":3}, {"label":"Ctrl", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"label":"Super", "x":3, "y":3}, {"label":"&dArr;", "x":4, "y":3}, {"label":"Space", "x":5, "y":3}, {"label":"Space", "x":6, "y":3}, {"label":"&uArr;", "x":7, "y":3}, {"label":"&larr;", "x":8, "y":3}, {"label":"&darr;", "x":9, "y":3}, {"label":"Left", "x":10, "y":3}, {"label":"Down", "x":11, "y":3}, {"label":"Right", "x":12, "y":3}]
13 }
14 }
15}
diff --git a/keyboards/pohjolaworks/louhi/keymaps/default/keymap.c b/keyboards/pohjolaworks/louhi/keymaps/default/keymap.c
new file mode 100644
index 000000000..ee334a249
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/keymaps/default/keymap.c
@@ -0,0 +1,57 @@
1/* Copyright 2020 Erkki Halinen
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18enum layers {
19 _QWERTY,
20 _LOWER,
21 _RAISE,
22};
23
24#define LOWER MO(_LOWER)
25#define RAISE MO(_RAISE)
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28
29[_QWERTY] = LAYOUT_7u_space(
30 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,
31 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,
32 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,
33 KC_LSFT, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, LT(LOWER, KC_PGDN), KC_DEL
34),
35
36[_LOWER] = LAYOUT_7u_space(
37 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, KC_DEL,
38 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,
39 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, KC_RSFT,
40 _______, _______, _______, _______, _______, _______, _______
41),
42
43[_RAISE] = LAYOUT_7u_space(
44 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, KC_DEL,
45 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,
46 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, KC_RSFT,
47 KC_VOLU, KC_MPLY, KC_MNXT, _______, _______, _______, _______
48)
49};
50
51void encoder_update_user(uint8_t index, bool clockwise) {
52 if (clockwise) {
53 tap_code(KC_PGDN);
54 } else {
55 tap_code(KC_PGUP);
56 }
57}
diff --git a/keyboards/pohjolaworks/louhi/keymaps/default/readme.md b/keyboards/pohjolaworks/louhi/keymaps/default/readme.md
new file mode 100644
index 000000000..58708a2a4
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1# The default keymap for Louhi
2
3Base layer
4
5![Default layout](https://i.imgur.com/FBR3Xpg.png)
diff --git a/keyboards/pohjolaworks/louhi/louhi.c b/keyboards/pohjolaworks/louhi/louhi.c
new file mode 100644
index 000000000..d5bb648b6
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/louhi.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 Erkki Halinen
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "louhi.h"
diff --git a/keyboards/pohjolaworks/louhi/louhi.h b/keyboards/pohjolaworks/louhi/louhi.h
new file mode 100644
index 000000000..661bee895
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/louhi.h
@@ -0,0 +1,59 @@
1/* Copyright 2020 Erkki Halinen
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT_all( \
30 k00, k10, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, \
31 k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, \
32 k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, \
33 k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k66 \
34) { \
35 { k00, k01, k02, k03, k04, k05, k06 }, \
36 { k10, k11, k12, k13, k14, k15, KC_NO }, \
37 { k20, k21, k22, k23, k24, k25, k26 }, \
38 { k30, k31, k32, k33, k34, k35, KC_NO }, \
39 { k40, k41, k42, k43, k44, k45, k46 }, \
40 { k50, k51, k52, k53, k54, k55, KC_NO }, \
41 { k60, k61, k62, k63, k64, k65, k66 }, \
42 { k70, k71, k72, k73, k74, k75, KC_NO } \
43}
44
45#define LAYOUT_7u_space( \
46 k00, k10, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, \
47 k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, \
48 k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, \
49 k60, k70, k61, k63, k65, k75, k66 \
50) { \
51 { k00, k01, k02, k03, k04, k05, k06 }, \
52 { k10, k11, k12, k13, k14, k15, KC_NO }, \
53 { k20, k21, k22, k23, k24, k25, k26 }, \
54 { k30, k31, k32, k33, k34, k35, KC_NO }, \
55 { k40, k41, k42, k43, k44, k45, k46 }, \
56 { k50, k51, k52, k53, k54, k55, KC_NO }, \
57 { k60, k61, KC_NO, k63, KC_NO, k65, k66 }, \
58 { k70, KC_NO, KC_NO, KC_NO, KC_NO, k75, KC_NO } \
59}
diff --git a/keyboards/pohjolaworks/louhi/readme.md b/keyboards/pohjolaworks/louhi/readme.md
new file mode 100644
index 000000000..d2169523b
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/readme.md
@@ -0,0 +1,21 @@
1# Louhi
2
3![Louhi](https://i.imgur.com/bsXOscK.png)
4
54x13u Orthogonal keyboard with few bottom row layouts and encoder support.
6
7Encoder supported ONLY in one of the two spots at a time.
8
9* Keyboard Maintainer: [ErkHal](https://github.com/erkhal)
10* Hardware Supported: Louhi PCB (All revisions)
11* Hardware Availability: Coming soon to [Pohjola Works](https://pohjola.works)
12
13Make example for this keyboard (after setting up your build environment):
14
15 make pohjolaworks/louhi:default
16
17Flashing example for this keyboard:
18
19 make pohjolaworks/louhi:default:flash
20
21See 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).
diff --git a/keyboards/pohjolaworks/louhi/rules.mk b/keyboards/pohjolaworks/louhi/rules.mk
new file mode 100644
index 000000000..8b8bacdcf
--- /dev/null
+++ b/keyboards/pohjolaworks/louhi/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes