aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-06-10 14:50:24 -0700
committerGitHub <noreply@github.com>2021-06-10 14:50:24 -0700
commit2e90ef05363893f3aa49c99af408e774609aa97a (patch)
tree4904c3b042a3ce13ba090fdaffaf70c7370016fa
parentd684b8cafed8298bed53c6fb184086fc573f4e91 (diff)
downloadqmk_firmware-2e90ef05363893f3aa49c99af408e774609aa97a.tar.gz
qmk_firmware-2e90ef05363893f3aa49c99af408e774609aa97a.zip
[Keyboard] Add Loop, Nano and Work boards from Work Louder (#12756)
-rw-r--r--keyboards/work_louder/encoder_actions.c68
-rw-r--r--keyboards/work_louder/encoder_actions.h21
-rw-r--r--keyboards/work_louder/loop/config.h159
-rw-r--r--keyboards/work_louder/loop/info.json26
-rw-r--r--keyboards/work_louder/loop/keymaps/default/keymap.c54
-rw-r--r--keyboards/work_louder/loop/keymaps/default/readme.md1
-rw-r--r--keyboards/work_louder/loop/keymaps/via/keymap.c36
-rw-r--r--keyboards/work_louder/loop/keymaps/via/rules.mk2
-rw-r--r--keyboards/work_louder/loop/loop.c56
-rw-r--r--keyboards/work_louder/loop/loop.h43
-rw-r--r--keyboards/work_louder/loop/post_config.h22
-rw-r--r--keyboards/work_louder/loop/readme.md24
-rw-r--r--keyboards/work_louder/loop/rules.mk27
-rw-r--r--keyboards/work_louder/nano/config.h164
-rw-r--r--keyboards/work_louder/nano/info.json16
-rw-r--r--keyboards/work_louder/nano/keymaps/default/keymap.c37
-rw-r--r--keyboards/work_louder/nano/keymaps/default/readme.md1
-rw-r--r--keyboards/work_louder/nano/keymaps/via/keymap.c38
-rw-r--r--keyboards/work_louder/nano/keymaps/via/rules.mk2
-rw-r--r--keyboards/work_louder/nano/nano.c42
-rw-r--r--keyboards/work_louder/nano/nano.h42
-rw-r--r--keyboards/work_louder/nano/post_config.h22
-rw-r--r--keyboards/work_louder/nano/readme.md26
-rw-r--r--keyboards/work_louder/nano/rules.mk27
-rw-r--r--keyboards/work_louder/rgb_functions.c69
-rw-r--r--keyboards/work_louder/rgb_functions.h85
-rw-r--r--keyboards/work_louder/work_board/config.h159
-rw-r--r--keyboards/work_louder/work_board/info.json114
-rw-r--r--keyboards/work_louder/work_board/keymaps/default/keymap.c207
-rw-r--r--keyboards/work_louder/work_board/keymaps/default/readme.md1
-rw-r--r--keyboards/work_louder/work_board/keymaps/default/rules.mk1
-rw-r--r--keyboards/work_louder/work_board/keymaps/via/keymap.c95
-rw-r--r--keyboards/work_louder/work_board/keymaps/via/rules.mk2
-rw-r--r--keyboards/work_louder/work_board/post_config.h22
-rw-r--r--keyboards/work_louder/work_board/readme.md24
-rw-r--r--keyboards/work_louder/work_board/rules.mk29
-rw-r--r--keyboards/work_louder/work_board/work_board.c93
-rw-r--r--keyboards/work_louder/work_board/work_board.h83
38 files changed, 1940 insertions, 0 deletions
diff --git a/keyboards/work_louder/encoder_actions.c b/keyboards/work_louder/encoder_actions.c
new file mode 100644
index 000000000..b41a248a8
--- /dev/null
+++ b/keyboards/work_louder/encoder_actions.c
@@ -0,0 +1,68 @@
1/* Copyright 2020 Neil Brian Ramirez
2 * Copyright 2021 drashna jael're (@drashna)
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "encoder_actions.h"
19
20#if defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
21
22# ifdef ENCODERS
23static uint8_t encoder_state[ENCODERS] = {0};
24static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
25static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
26# endif
27
28void encoder_action_unregister(void) {
29# ifdef ENCODERS
30 for (int index = 0; index < ENCODERS; ++index) {
31 if (encoder_state[index]) {
32 keyevent_t encoder_event = (keyevent_t) {
33 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
34 .pressed = false,
35 .time = (timer_read() | 1)
36 };
37 encoder_state[index] = 0;
38 action_exec(encoder_event);
39 }
40 }
41# endif
42}
43
44void encoder_action_register(uint8_t index, bool clockwise) {
45# ifdef ENCODERS
46 keyevent_t encoder_event = (keyevent_t) {
47 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
48 .pressed = true,
49 .time = (timer_read() | 1)
50 };
51 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
52 action_exec(encoder_event);
53# endif
54}
55
56void matrix_scan_kb(void) {
57 encoder_action_unregister();
58 matrix_scan_user();
59}
60
61bool encoder_update_kb(uint8_t index, bool clockwise) {
62 encoder_action_register(index, clockwise);
63 // don't return user actions, because they are in the keymap
64 // encoder_update_user(index, clockwise);
65 return true;
66};
67
68#endif
diff --git a/keyboards/work_louder/encoder_actions.h b/keyboards/work_louder/encoder_actions.h
new file mode 100644
index 000000000..2484af52a
--- /dev/null
+++ b/keyboards/work_louder/encoder_actions.h
@@ -0,0 +1,21 @@
1/* Copyright 2020 Neil Brian Ramirez
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 3 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 "quantum.h"
18
19void encoder_action_unregister(void);
20
21void encoder_action_register(uint8_t index, bool clockwise);
diff --git a/keyboards/work_louder/loop/config.h b/keyboards/work_louder/loop/config.h
new file mode 100644
index 000000000..011fe4f32
--- /dev/null
+++ b/keyboards/work_louder/loop/config.h
@@ -0,0 +1,159 @@
1/*
2Copyright 2021 Work Louder
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 0x574C
24#define PRODUCT_ID 0x1DF8
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Work Louder
27#define PRODUCT loop
28
29/* key matrix size */
30#define MATRIX_ROWS 2
31#define MATRIX_COLS 12
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 { F5 }
44#define MATRIX_COL_PINS { B3, B2, B1, D6, D7, B4, B5, B6, C6, C7, F7, F6 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50
51//#define LED_NUM_LOCK_PIN B0
52//#define LED_CAPS_LOCK_PIN B1
53//#define LED_SCROLL_LOCK_PIN B2
54//#define LED_COMPOSE_PIN B3
55//#define LED_KANA_PIN B4
56
57//#define BACKLIGHT_PIN B7
58//#define BACKLIGHT_LEVELS 3
59//#define BACKLIGHT_BREATHING
60
61#define RGBLIGHT_DI_PIN E6
62# define RGBLED_NUM 24
63//# define RGBLIGHT_HUE_STEP 8
64//# define RGBLIGHT_SAT_STEP 8
65//# define RGBLIGHT_VAL_STEP 8
66//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
67# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
68/*== all animations enable ==*/
69# define RGBLIGHT_ANIMATIONS
70/*== or choose animations ==*/
71//# define RGBLIGHT_EFFECT_BREATHING
72//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
73//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
74//# define RGBLIGHT_EFFECT_SNAKE
75//# define RGBLIGHT_EFFECT_KNIGHT
76//# define RGBLIGHT_EFFECT_CHRISTMAS
77//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
78//# define RGBLIGHT_EFFECT_RGB_TEST
79//# define RGBLIGHT_EFFECT_ALTERNATING
80/*== customize breathing effect ==*/
81/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
82//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
83/*==== use exp() and sin() ====*/
84//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
85//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
86//#endif
87
88#define RGB_DI_PIN F1
89#define DRIVER_LED_TOTAL 9
90#define RGB_MATRIX_DISABLE_KEYCODES
91
92/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
93#define DEBOUNCE 5
94
95/* define if matrix has ghost (lacks anti-ghosting diodes) */
96//#define MATRIX_HAS_GHOST
97
98/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
99// #define LOCKING_SUPPORT_ENABLE
100/* Locking resynchronize hack */
101// #define LOCKING_RESYNC_ENABLE
102
103/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
104 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
105 */
106//#define GRAVE_ESC_CTRL_OVERRIDE
107
108/*
109 * Force NKRO
110 *
111 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
112 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
113 * makefile for this to work.)
114 *
115 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
116 * until the next keyboard reset.
117 *
118 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
119 * fully operational during normal computer usage.
120 *
121 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
122 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
123 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
124 * power-up.
125 *
126 */
127//#define FORCE_NKRO
128
129/*
130 * Feature disable options
131 * These options are also useful to firmware size reduction.
132 */
133
134/* disable debug print */
135//#define NO_DEBUG
136
137/* disable print */
138//#define NO_PRINT
139
140/* disable action features */
141//#define NO_ACTION_LAYER
142//#define NO_ACTION_TAPPING
143//#define NO_ACTION_ONESHOT
144
145/* disable these deprecated features by default */
146#define NO_ACTION_MACRO
147#define NO_ACTION_FUNCTION
148
149/* Bootmagic Lite key configuration */
150#define BOOTMAGIC_LITE_ROW 0
151#define BOOTMAGIC_LITE_COLUMN 11
152
153#define ENCODERS_PAD_A { D0, D2, D5 }
154#define ENCODERS_PAD_B { D1, D3, D4 }
155
156#define ENCODERS 3
157
158#define ENCODERS_CW_KEY { { 0, 1 }, { 2, 1 }, { 4, 1 } }
159#define ENCODERS_CCW_KEY { { 1, 1 }, { 3, 1 }, { 5, 1 } }
diff --git a/keyboards/work_louder/loop/info.json b/keyboards/work_louder/loop/info.json
new file mode 100644
index 000000000..35ab8f93a
--- /dev/null
+++ b/keyboards/work_louder/loop/info.json
@@ -0,0 +1,26 @@
1{
2 "keyboard_name": "loop",
3 "url": "",
4 "maintainer": "Work Louder",
5 "width": 12,
6 "height": 1,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label": "k00", "x": 0, "y": 0},
11 {"label": "k01", "x": 1, "y": 0},
12 {"label": "k02", "x": 2, "y": 0},
13
14 {"label": "k03", "x": 3, "y": 1, "w": 0},
15 {"label": "k04", "x": 4, "y": 1, "w": 0},
16 {"label": "k05", "x": 5, "y": 1, "w": 0},
17 {"label": "k06", "x": 6, "y": 1, "w": 0},
18 {"label": "k07", "x": 7, "y": 1, "w": 0},
19 {"label": "k08", "x": 8, "y": 1, "w": 0},
20 {"label": "k09", "x": 9, "y": 1, "w": 0},
21 {"label": "k0a", "x": 10, "y": 1, "w": 0},
22 {"label": "k0b", "x": 11, "y": 1, "w": 0},
23 ]
24 }
25 }
26}
diff --git a/keyboards/work_louder/loop/keymaps/default/keymap.c b/keyboards/work_louder/loop/keymaps/default/keymap.c
new file mode 100644
index 000000000..25ecb15a4
--- /dev/null
+++ b/keyboards/work_louder/loop/keymaps/default/keymap.c
@@ -0,0 +1,54 @@
1/* Copyright 2021 Work Louder
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
18
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 /* Base */
22 [0] = LAYOUT(
23 KC_MUTE, KC_MPLY, R_M_TOG, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, MO(1)
24 ),
25 [1] = LAYOUT(
26 RESET, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, MO(2), _______
27 ),
28 [2] = LAYOUT(
29 RESET, _______, R_M_TOG, R_M_MOD, R_M_HUI, R_M_HUD, R_M_SAI, R_M_SAD, R_M_VAI, R_M_VAD, _______, _______
30 )
31};
32
33
34// void encoder_update_user(uint8_t index, bool clockwise) {
35// if (index == 0) {
36// if (clockwise) {
37// tap_code(KC_VOLD);
38// } else {
39// tap_code(KC_VOLU);
40// }
41// } else if (index == 2) {
42// if (clockwise) {
43// tap_code(KC_MPRV);
44// } else {
45// tap_code(KC_MNXT);
46// }
47// } else {
48// if (clockwise) {
49// rgb_matrix_step_reverse();
50// } else {
51// rgb_matrix_step();
52// }
53// }
54// }
diff --git a/keyboards/work_louder/loop/keymaps/default/readme.md b/keyboards/work_louder/loop/keymaps/default/readme.md
new file mode 100644
index 000000000..d11673e06
--- /dev/null
+++ b/keyboards/work_louder/loop/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for loop
diff --git a/keyboards/work_louder/loop/keymaps/via/keymap.c b/keyboards/work_louder/loop/keymaps/via/keymap.c
new file mode 100644
index 000000000..134bce65d
--- /dev/null
+++ b/keyboards/work_louder/loop/keymaps/via/keymap.c
@@ -0,0 +1,36 @@
1/* Copyright 2021 Work Louder
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /* Base */
20 [0] = LAYOUT_via(
21 KC_MUTE, KC_MPLY, R_M_TOG, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, MO(1),
22 KC_VOLD, KC_VOLD, KC_MPRV, KC_MNXT, R_M_MOD, R_M_RMOD
23 ),
24 [1] = LAYOUT_via(
25 RESET, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, MO(2), _______,
26 _______, _______, _______, _______, RGB_MOD, RGB_RMOD
27 ),
28 [2] = LAYOUT_via(
29 RESET, _______, R_M_TOG, R_M_MOD, R_M_HUI, R_M_HUD, R_M_SAI, R_M_SAD, R_M_VAI, R_M_VAD, _______, _______,
30 _______, _______, _______, _______, R_M_MOD, R_M_RMOD
31 ),
32 [3] = LAYOUT_via(
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
34 _______, _______, _______, _______, _______, _______
35 )
36};
diff --git a/keyboards/work_louder/loop/keymaps/via/rules.mk b/keyboards/work_louder/loop/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/work_louder/loop/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/work_louder/loop/loop.c b/keyboards/work_louder/loop/loop.c
new file mode 100644
index 000000000..355199531
--- /dev/null
+++ b/keyboards/work_louder/loop/loop.c
@@ -0,0 +1,56 @@
1/* Copyright 2021 Work Louder
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 "loop.h"
18
19#if !defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
20bool encoder_update_kb(uint8_t index, bool clockwise) {
21 if (!encoder_update_user(index, clockwise)) { return false; }
22 if (index == 0) {
23 if (clockwise) {
24 tap_code(KC_VOLD);
25 } else {
26 tap_code(KC_VOLU);
27 }
28 } else if (index == 1) {
29 if (clockwise) {
30 tap_code(KC_MPRV);
31 } else {
32 tap_code(KC_MNXT);
33 }
34 } else {
35 if (clockwise) {
36 rgb_matrix_step_reverse();
37 } else {
38 rgb_matrix_step();
39 }
40 }
41 return true;
42}
43#endif
44
45#ifdef RGB_MATRIX_ENABLE
46led_config_t g_led_config = {
47 {
48 { NO_LED, NO_LED, NO_LED, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
49 }, {
50 { 36, 32 }, { 55, 32 }, { 74, 32 }, { 93, 32 }, { 112, 32 }, { 131, 32 }, { 150, 32 }, { 169, 32 }, { 188, 32 }
51 }, {
52 4, 4, 4, 4, 4, 4, 4, 4, 4
53 }
54};
55
56#endif
diff --git a/keyboards/work_louder/loop/loop.h b/keyboards/work_louder/loop/loop.h
new file mode 100644
index 000000000..acad9d7b3
--- /dev/null
+++ b/keyboards/work_louder/loop/loop.h
@@ -0,0 +1,43 @@
1/* Copyright 2021 Work Louder
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#include "encoder_actions.h"
21#include "rgb_functions.h"
22
23/* This is a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31#define LAYOUT( \
32 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b \
33) { \
34 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b } \
35}
36
37#define LAYOUT_via( \
38 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
39 k00_a, k00_b, k01_a, k01_b, k02_a, k02_b \
40) { \
41 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
42 { k00_a, k00_b, k01_a, k01_b, k02_a, k02_b } \
43}
diff --git a/keyboards/work_louder/loop/post_config.h b/keyboards/work_louder/loop/post_config.h
new file mode 100644
index 000000000..263818bff
--- /dev/null
+++ b/keyboards/work_louder/loop/post_config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2021 Drashna Jael're
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#ifndef TAP_CODE_DELAY
21# define TAP_CODE_DELAY 10
22#endif
diff --git a/keyboards/work_louder/loop/readme.md b/keyboards/work_louder/loop/readme.md
new file mode 100644
index 000000000..fce5108cb
--- /dev/null
+++ b/keyboards/work_louder/loop/readme.md
@@ -0,0 +1,24 @@
1# Work Louder Loop Pad
2
3![loop](https://worklouder.cc/wp-content/uploads/2021/02/LAST-1536x960.png)
4
5A 9 key macro pad with 3 encoders and RGB.
6
7* Keyboard Maintainer: [Work Louder](https://github.com/drashna)
8* Hardware Supported: An ATmega32u4 based macro pad with per key and underglow RGB
9* Hardware Availability: [Work Louder](https://shop.worklouder.cc/)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make work_louder/loop:default
14
15Flashing example for this keyboard:
16
17 make work_louder/loop:default:flash
18
19Enter bootloader to flash the keyboard, you do either:
20
21 * Hold down the right most key while plugging in the keyboard
22 * Hold the third encoder down, and hit the first encoder
23
24See 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/work_louder/loop/rules.mk b/keyboards/work_louder/loop/rules.mk
new file mode 100644
index 000000000..4df169834
--- /dev/null
+++ b/keyboards/work_louder/loop/rules.mk
@@ -0,0 +1,27 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
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 = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
24RGB_MATRIX_ENABLE = yes
25RGB_MATRIX_DRIVER = WS2812
26
27SRC += encoder_actions.c rgb_functions.c
diff --git a/keyboards/work_louder/nano/config.h b/keyboards/work_louder/nano/config.h
new file mode 100644
index 000000000..4c897b7e5
--- /dev/null
+++ b/keyboards/work_louder/nano/config.h
@@ -0,0 +1,164 @@
1/*
2Copyright 2021 Drashna Jael're
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 0x574C
24#define PRODUCT_ID 0xE6EF
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Work Louder
27#define PRODUCT nano
28
29/* key matrix size */
30#define MATRIX_ROWS 1
31#ifdef VIA_ENABLE
32# define MATRIX_COLS 5
33#else
34# define MATRIX_COLS 3
35#endif
36
37/*
38 * Keyboard Matrix Assignments
39 *
40 * Change this to how you wired your keyboard
41 * COLS: AVR pins used for columns, left to right
42 * ROWS: AVR pins used for rows, top to bottom
43 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
44 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
45 *
46 */
47#define MATRIX_ROW_PINS { F7 }
48#define MATRIX_COL_PINS { B5, B6, C6 }
49#define UNUSED_PINS
50
51/* COL2ROW, ROW2COL */
52#define DIODE_DIRECTION COL2ROW
53
54
55//#define LED_NUM_LOCK_PIN B0
56//#define LED_CAPS_LOCK_PIN B1
57//#define LED_SCROLL_LOCK_PIN B2
58//#define LED_COMPOSE_PIN B3
59//#define LED_KANA_PIN B4
60
61//#define BACKLIGHT_PIN B7
62//#define BACKLIGHT_LEVELS 3
63//#define BACKLIGHT_BREATHING
64
65#define RGBLIGHT_DI_PIN C7
66# define RGBLED_NUM 6
67//# define RGBLIGHT_HUE_STEP 8
68//# define RGBLIGHT_SAT_STEP 8
69//# define RGBLIGHT_VAL_STEP 8
70//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
71# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
72/*== all animations enable ==*/
73# define RGBLIGHT_ANIMATIONS
74/*== or choose animations ==*/
75//# define RGBLIGHT_EFFECT_BREATHING
76//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
77//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
78//# define RGBLIGHT_EFFECT_SNAKE
79//# define RGBLIGHT_EFFECT_KNIGHT
80//# define RGBLIGHT_EFFECT_CHRISTMAS
81//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
82//# define RGBLIGHT_EFFECT_RGB_TEST
83//# define RGBLIGHT_EFFECT_ALTERNATING
84/*== customize breathing effect ==*/
85/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
86//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
87/*==== use exp() and sin() ====*/
88//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
89//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
90//#endif
91
92#define RGB_DI_PIN F6
93#define DRIVER_LED_TOTAL 2
94#define RGB_MATRIX_DISABLE_KEYCODES
95
96/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
97#define DEBOUNCE 5
98
99/* define if matrix has ghost (lacks anti-ghosting diodes) */
100//#define MATRIX_HAS_GHOST
101
102/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
103// #define LOCKING_SUPPORT_ENABLE
104/* Locking resynchronize hack */
105// #define LOCKING_RESYNC_ENABLE
106
107/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
108 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
109 */
110//#define GRAVE_ESC_CTRL_OVERRIDE
111
112/*
113 * Force NKRO
114 *
115 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
116 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
117 * makefile for this to work.)
118 *
119 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
120 * until the next keyboard reset.
121 *
122 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
123 * fully operational during normal computer usage.
124 *
125 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
126 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
127 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
128 * power-up.
129 *
130 */
131//#define FORCE_NKRO
132
133/*
134 * Feature disable options
135 * These options are also useful to firmware size reduction.
136 */
137
138/* disable debug print */
139//#define NO_DEBUG
140
141/* disable print */
142//#define NO_PRINT
143
144/* disable action features */
145//#define NO_ACTION_LAYER
146//#define NO_ACTION_TAPPING
147//#define NO_ACTION_ONESHOT
148
149/* disable these deprecated features by default */
150#define NO_ACTION_MACRO
151#define NO_ACTION_FUNCTION
152
153/* Bootmagic Lite key configuration */
154#define BOOTMAGIC_LITE_ROW 0
155#define BOOTMAGIC_LITE_COLUMN 3
156
157
158#define ENCODERS_PAD_A { D7 }
159#define ENCODERS_PAD_B { B4 }
160
161#define ENCODERS 1
162
163#define ENCODERS_CW_KEY { { 3, 0 } }
164#define ENCODERS_CCW_KEY { { 4, 0 } }
diff --git a/keyboards/work_louder/nano/info.json b/keyboards/work_louder/nano/info.json
new file mode 100644
index 000000000..37d25531f
--- /dev/null
+++ b/keyboards/work_louder/nano/info.json
@@ -0,0 +1,16 @@
1{
2 "keyboard_name": "nano",
3 "url": "",
4 "maintainer": "Work Louder",
5 "width": 3,
6 "height": 1,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label": "k00", "x": 0, "y": 0},
11 {"label": "k01", "x": 1, "y": 0},
12 {"label": "k02", "x": 2, "y": 0},
13 ]
14 }
15 }
16}
diff --git a/keyboards/work_louder/nano/keymaps/default/keymap.c b/keyboards/work_louder/nano/keymaps/default/keymap.c
new file mode 100644
index 000000000..e1b4bbcb9
--- /dev/null
+++ b/keyboards/work_louder/nano/keymaps/default/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2021 Drashna Jael're
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
18
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 /* Base */
22 [0] = LAYOUT(
23 KC_PSCR, KC_LSFT, MO(1)
24 ),
25 [1] = LAYOUT(
26 RESET, KC_LCTL, _______
27 )
28};
29
30
31// void encoder_update_user(uint8_t index, bool clockwise) {
32// if (clockwise) {
33// tap_code(KC_PGDN);
34// } else {
35// tap_code(KC_PGUP);
36// }
37// }
diff --git a/keyboards/work_louder/nano/keymaps/default/readme.md b/keyboards/work_louder/nano/keymaps/default/readme.md
new file mode 100644
index 000000000..1ca552d72
--- /dev/null
+++ b/keyboards/work_louder/nano/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for nano
diff --git a/keyboards/work_louder/nano/keymaps/via/keymap.c b/keyboards/work_louder/nano/keymaps/via/keymap.c
new file mode 100644
index 000000000..84a54a4aa
--- /dev/null
+++ b/keyboards/work_louder/nano/keymaps/via/keymap.c
@@ -0,0 +1,38 @@
1/* Copyright 2021 Drashna Jael're
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
18
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 /* Base */
22 [0] = LAYOUT_via(
23 KC_PSCR, MACRO00, MO(1),
24 KC_PGDN, KC_PGUP
25 ),
26 [1] = LAYOUT_via(
27 RESET, MACRO01, _______,
28 _______, _______
29 ),
30 [2] = LAYOUT_via(
31 _______, _______, _______,
32 _______, _______
33 ),
34 [3] = LAYOUT_via(
35 _______, _______, _______,
36 _______, _______
37 )
38};
diff --git a/keyboards/work_louder/nano/keymaps/via/rules.mk b/keyboards/work_louder/nano/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/work_louder/nano/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/work_louder/nano/nano.c b/keyboards/work_louder/nano/nano.c
new file mode 100644
index 000000000..62d44ef13
--- /dev/null
+++ b/keyboards/work_louder/nano/nano.c
@@ -0,0 +1,42 @@
1/* Copyright 2021 Drashna Jael're
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 "nano.h"
18
19#if !defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
20bool encoder_update_kb(uint8_t index, bool clockwise) {
21 if (!encoder_update_user(index, clockwise)) { return false; }
22 if (clockwise) {
23 tap_code(KC_PGDN);
24 } else {
25 tap_code(KC_PGUP);
26 }
27 return true;
28}
29#endif
30
31#ifdef RGB_MATRIX_ENABLE
32led_config_t g_led_config = {
33 {
34 { NO_LED, 1, 0 }
35 }, {
36 { 103, 32 }, { 122, 32 }
37 }, {
38 4, 4
39 }
40};
41
42#endif
diff --git a/keyboards/work_louder/nano/nano.h b/keyboards/work_louder/nano/nano.h
new file mode 100644
index 000000000..6f7463e6a
--- /dev/null
+++ b/keyboards/work_louder/nano/nano.h
@@ -0,0 +1,42 @@
1/* Copyright 2021 Drashna Jael're
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#include "encoder_actions.h"
21#include "rgb_functions.h"
22
23/* This is a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31#define LAYOUT( \
32 k00, k01, k02 \
33) { \
34 { k00, k01, k02 } \
35}
36
37#define LAYOUT_via( \
38 k00, k01, k02, \
39 k00_a, k00_b \
40) { \
41 { k00, k01, k02, k00_a, k00_b } \
42}
diff --git a/keyboards/work_louder/nano/post_config.h b/keyboards/work_louder/nano/post_config.h
new file mode 100644
index 000000000..263818bff
--- /dev/null
+++ b/keyboards/work_louder/nano/post_config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2021 Drashna Jael're
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#ifndef TAP_CODE_DELAY
21# define TAP_CODE_DELAY 10
22#endif
diff --git a/keyboards/work_louder/nano/readme.md b/keyboards/work_louder/nano/readme.md
new file mode 100644
index 000000000..10bfcfd7e
--- /dev/null
+++ b/keyboards/work_louder/nano/readme.md
@@ -0,0 +1,26 @@
1# Work Louder Nano pad
2
3![nano](https://worklouder.cc/wp-content/uploads/2021/02/LAST-1536x960.png)
4
5A 2 key macro pad with an encoder and RGB
6
7* Keyboard Maintainer: [Work Louder](https://github.com/drashna)
8* Hardware Supported: An ATmega32u4 based macro pad with per key and underglow RGB
9* Hardware Availability: [Work Louder](https://shop.worklouder.cc/)
10
11
12Make example for this keyboard (after setting up your build environment):
13
14 make work_louder/nano:default
15
16Flashing example for this keyboard:
17
18 make work_louder/nano:default:flash
19
20Enter bootloader to flash the keyboard, you do either:
21
22 * Hold down the right most key while plugging in the keyboard (furthest from encoder)
23 * Hold the third key down, and hit the encoder.
24
25
26See 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/work_louder/nano/rules.mk b/keyboards/work_louder/nano/rules.mk
new file mode 100644
index 000000000..fc478334b
--- /dev/null
+++ b/keyboards/work_louder/nano/rules.mk
@@ -0,0 +1,27 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
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 = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
24RGB_MATRIX_ENABLE = yes
25RGB_MATRIX_DRIVER = WS2812
26
27SRC += encoder_actions.c rgb_functions.c
diff --git a/keyboards/work_louder/rgb_functions.c b/keyboards/work_louder/rgb_functions.c
new file mode 100644
index 000000000..5a2043f9b
--- /dev/null
+++ b/keyboards/work_louder/rgb_functions.c
@@ -0,0 +1,69 @@
1/* Copyright 2021 Drashna Jael're
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 QMK_KEYBOARD_H
18#include "rgb_functions.h"
19
20#if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_EANBLE)
21# undef RGB_DI_PIN
22# define RGBLIGHT_DI_PIN
23# include "ws2812.c"
24
25void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds) {
26 ws2812_setleds(start_led, num_leds);
27}
28#endif
29
30#ifdef RGB_MATRIX_ENABLE
31bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
32 if (!process_record_user(keycode, record)) { return false; }
33
34 if (record->event.pressed) {
35 switch(keycode) {
36 case RGB_MATRIX_TOGGLE: // toggle rgb matrix
37 rgb_matrix_toggle();
38 return false;
39 case RGB_MATRIX_MODE_INC:
40 rgb_matrix_step();
41 return false;
42 case RGB_MATRIX_MODE_DEC:
43 rgb_matrix_step_reverse();
44 return false;
45 case RGB_MATRIX_HUE_INC:
46 rgb_matrix_increase_hue();
47 return false;
48 case RGB_MATRIX_HUE_DEC:
49 rgb_matrix_decrease_hue();
50 return false;
51 case RGB_MATRIX_SAT_INC:
52 rgb_matrix_increase_sat();
53 return false;
54 case RGB_MATRIX_SAT_DEC:
55 rgb_matrix_decrease_sat();
56 return false;
57 case RGB_MATRIX_VAL_INC:
58 rgb_matrix_increase_val();
59 return false;
60 case RGB_MATRIX_VAL_DEC:
61 rgb_matrix_decrease_val();
62 return false;
63 default:
64 break;
65 }
66 }
67 return true;
68}
69#endif
diff --git a/keyboards/work_louder/rgb_functions.h b/keyboards/work_louder/rgb_functions.h
new file mode 100644
index 000000000..9a5cda0fc
--- /dev/null
+++ b/keyboards/work_louder/rgb_functions.h
@@ -0,0 +1,85 @@
1/* Copyright 2020 Neil Brian Ramirez
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 3 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 "quantum.h"
18
19#ifndef VIA_ENABLE
20# ifndef RGB_MATRIX_TOGGLE
21# define RGB_MATRIX_TOGGLE KC_F15
22# endif
23# ifndef RGB_MATRIX_MODE_INC
24# define RGB_MATRIX_MODE_INC KC_F16
25# endif
26# ifndef RGB_MATRIX_MODE_DEC
27# define RGB_MATRIX_MODE_DEC KC_F17
28# endif
29# ifndef RGB_MATRIX_HUE_INC
30# define RGB_MATRIX_HUE_INC KC_F18
31# endif
32# ifndef RGB_MATRIX_HUE_DEC
33# define RGB_MATRIX_HUE_DEC KC_F19
34# endif
35# ifndef RGB_MATRIX_SAT_INC
36# define RGB_MATRIX_SAT_INC KC_F20
37# endif
38# ifndef RGB_MATRIX_SAT_DEC
39# define RGB_MATRIX_SAT_DEC KC_F21
40# endif
41# ifndef RGB_MATRIX_VAL_INC
42# define RGB_MATRIX_VAL_INC KC_F22
43# endif
44# ifndef RGB_MATRIX_VAL_DEC
45# define RGB_MATRIX_VAL_DEC KC_F23
46# endif
47#else
48# ifndef RGB_MATRIX_TOGGLE
49# define RGB_MATRIX_TOGGLE USER00
50# endif
51# ifndef RGB_MATRIX_MODE_INC
52# define RGB_MATRIX_MODE_INC USER01
53# endif
54# ifndef RGB_MATRIX_MODE_DEC
55# define RGB_MATRIX_MODE_DEC USER02
56# endif
57# ifndef RGB_MATRIX_HUE_INC
58# define RGB_MATRIX_HUE_INC USER03
59# endif
60# ifndef RGB_MATRIX_HUE_DEC
61# define RGB_MATRIX_HUE_DEC USER04
62# endif
63# ifndef RGB_MATRIX_SAT_INC
64# define RGB_MATRIX_SAT_INC USER05
65# endif
66# ifndef RGB_MATRIX_SAT_DEC
67# define RGB_MATRIX_SAT_DEC USER06
68# endif
69# ifndef RGB_MATRIX_VAL_INC
70# define RGB_MATRIX_VAL_INC USER07
71# endif
72# ifndef RGB_MATRIX_VAL_DEC
73# define RGB_MATRIX_VAL_DEC USER08
74# endif
75#endif
76
77#define R_M_TOG RGB_MATRIX_TOGGLE
78#define R_M_MOD RGB_MATRIX_MODE_INC
79#define R_M_RMOD RGB_MATRIX_MODE_DEC
80#define R_M_HUI RGB_MATRIX_HUE_INC
81#define R_M_HUD RGB_MATRIX_HUE_DEC
82#define R_M_SAI RGB_MATRIX_SAT_INC
83#define R_M_SAD RGB_MATRIX_SAT_DEC
84#define R_M_VAI RGB_MATRIX_VAL_INC
85#define R_M_VAD RGB_MATRIX_VAL_DEC
diff --git a/keyboards/work_louder/work_board/config.h b/keyboards/work_louder/work_board/config.h
new file mode 100644
index 000000000..2ccc1be4c
--- /dev/null
+++ b/keyboards/work_louder/work_board/config.h
@@ -0,0 +1,159 @@
1/*
2Copyright 2021 Drashna Jael're
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 0x574C
24#define PRODUCT_ID 0xDCD0
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Work Louder
27#define PRODUCT Work Board
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 13
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 { F0, F1, F4, F5 }
44#define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6, E6 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50#define LED_NUM_LOCK_PIN B2
51#define LED_CAPS_LOCK_PIN B3
52#define LED_SCROLL_LOCK_PIN B7
53//#define LED_COMPOSE_PIN B3
54//#define LED_KANA_PIN B4
55
56//#define BACKLIGHT_PIN B7
57//#define BACKLIGHT_LEVELS 3
58//#define BACKLIGHT_BREATHING
59
60#define RGBLIGHT_DI_PIN D2
61# define RGBLED_NUM 26
62//# define RGBLIGHT_HUE_STEP 8
63//# define RGBLIGHT_SAT_STEP 8
64//# define RGBLIGHT_VAL_STEP 8
65# define RGBLIGHT_LIMIT_VAL 100 /* The maximum brightness level */
66# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
67/*== all animations enable ==*/
68# define RGBLIGHT_ANIMATIONS
69/*== or choose animations ==*/
70//# define RGBLIGHT_EFFECT_BREATHING
71//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
72//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
73//# define RGBLIGHT_EFFECT_SNAKE
74//# define RGBLIGHT_EFFECT_KNIGHT
75//# define RGBLIGHT_EFFECT_CHRISTMAS
76//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
77//# define RGBLIGHT_EFFECT_RGB_TEST
78//# define RGBLIGHT_EFFECT_ALTERNATING
79/*== customize breathing effect ==*/
80/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
81//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
82/*==== use exp() and sin() ====*/
83//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
84//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
85//#endif
86
87#define RGB_DI_PIN D0
88#define DRIVER_LED_TOTAL 50
89#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100
90#define RGB_MATRIX_DISABLE_KEYCODES
91
92/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
93#define DEBOUNCE 5
94
95/* define if matrix has ghost (lacks anti-ghosting diodes) */
96//#define MATRIX_HAS_GHOST
97
98/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
99// #define LOCKING_SUPPORT_ENABLE
100/* Locking resynchronize hack */
101// #define LOCKING_RESYNC_ENABLE
102
103/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
104 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
105 */
106//#define GRAVE_ESC_CTRL_OVERRIDE
107
108/*
109 * Force NKRO
110 *
111 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
112 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
113 * makefile for this to work.)
114 *
115 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
116 * until the next keyboard reset.
117 *
118 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
119 * fully operational during normal computer usage.
120 *
121 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
122 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
123 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
124 * power-up.
125 *
126 */
127//#define FORCE_NKRO
128
129/*
130 * Feature disable options
131 * These options are also useful to firmware size reduction.
132 */
133
134/* disable debug print */
135//#define NO_DEBUG
136
137/* disable print */
138//#define NO_PRINT
139
140/* disable action features */
141//#define NO_ACTION_LAYER
142//#define NO_ACTION_TAPPING
143//#define NO_ACTION_ONESHOT
144
145/* disable these deprecated features by default */
146#define NO_ACTION_MACRO
147#define NO_ACTION_FUNCTION
148
149#define ENCODERS_PAD_A { B0 }
150#define ENCODERS_PAD_B { B1 }
151
152#define ENCODERS 1
153
154#define ENCODERS_CW_KEY { { 12, 1 } }
155#define ENCODERS_CCW_KEY { { 12, 2 } }
156
157/* Bootmagic Lite key configuration */
158//#define BOOTMAGIC_LITE_ROW 0
159//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/work_louder/work_board/info.json b/keyboards/work_louder/work_board/info.json
new file mode 100644
index 000000000..a3313cd7b
--- /dev/null
+++ b/keyboards/work_louder/work_board/info.json
@@ -0,0 +1,114 @@
1{
2 "keyboard_name": "work board",
3 "url": "",
4 "maintainer": "Work Louder",
5 "width": 13,
6 "height": 4,
7 "layouts": {
8 "LAYOUT_2u_space": {
9 "layout": [
10 { "x": 0, "y": 0 },
11 { "x": 1, "y": 0 },
12 { "x": 2, "y": 0 },
13 { "x": 3, "y": 0 },
14 { "x": 4, "y": 0 },
15 { "x": 5, "y": 0 },
16 { "x": 6, "y": 0 },
17 { "x": 7, "y": 0 },
18 { "x": 8, "y": 0 },
19 { "x": 9, "y": 0 },
20 { "x": 10, "y": 0 },
21 { "x": 11, "y": 0 },
22 { "x": 12, "y": 0 },
23 { "x": 0, "y": 1 },
24 { "x": 1, "y": 1 },
25 { "x": 2, "y": 1 },
26 { "x": 3, "y": 1 },
27 { "x": 4, "y": 1 },
28 { "x": 5, "y": 1 },
29 { "x": 6, "y": 1 },
30 { "x": 7, "y": 1 },
31 { "x": 8, "y": 1 },
32 { "x": 9, "y": 1 },
33 { "x": 10, "y": 1 },
34 { "x": 11, "y": 1 },
35 { "x": 0, "y": 2 },
36 { "x": 1, "y": 2 },
37 { "x": 2, "y": 2 },
38 { "x": 3, "y": 2 },
39 { "x": 4, "y": 2 },
40 { "x": 5, "y": 2 },
41 { "x": 6, "y": 2 },
42 { "x": 7, "y": 2 },
43 { "x": 8, "y": 2 },
44 { "x": 9, "y": 2 },
45 { "x": 10, "y": 2 },
46 { "x": 11, "y": 2 },
47 { "x": 0, "y": 3 },
48 { "x": 1, "y": 3 },
49 { "x": 2, "y": 3 },
50 { "x": 3, "y": 3 },
51 { "x": 4, "y": 3 },
52 { "x": 5, "y": 3, "w": 2 },
53 { "x": 7, "y": 3 },
54 { "x": 8, "y": 3 },
55 { "x": 9, "y": 3 },
56 { "x": 10, "y": 3 },
57 { "x": 11, "y": 3 }
58 ]
59 },
60 "LAYOUT": {
61 "layout": [
62 { "x": 0, "y": 0 },
63 { "x": 1, "y": 0 },
64 { "x": 2, "y": 0 },
65 { "x": 3, "y": 0 },
66 { "x": 4, "y": 0 },
67 { "x": 5, "y": 0 },
68 { "x": 6, "y": 0 },
69 { "x": 7, "y": 0 },
70 { "x": 8, "y": 0 },
71 { "x": 9, "y": 0 },
72 { "x": 10, "y": 0 },
73 { "x": 11, "y": 0 },
74 { "x": 12, "y": 0 },
75 { "x": 0, "y": 1 },
76 { "x": 1, "y": 1 },
77 { "x": 2, "y": 1 },
78 { "x": 3, "y": 1 },
79 { "x": 4, "y": 1 },
80 { "x": 5, "y": 1 },
81 { "x": 6, "y": 1 },
82 { "x": 7, "y": 1 },
83 { "x": 8, "y": 1 },
84 { "x": 9, "y": 1 },
85 { "x": 10, "y": 1 },
86 { "x": 11, "y": 1 },
87 { "x": 0, "y": 2 },
88 { "x": 1, "y": 2 },
89 { "x": 2, "y": 2 },
90 { "x": 3, "y": 2 },
91 { "x": 4, "y": 2 },
92 { "x": 5, "y": 2 },
93 { "x": 6, "y": 2 },
94 { "x": 7, "y": 2 },
95 { "x": 8, "y": 2 },
96 { "x": 9, "y": 2 },
97 { "x": 10, "y": 2 },
98 { "x": 11, "y": 2 },
99 { "x": 0, "y": 3 },
100 { "x": 1, "y": 3 },
101 { "x": 2, "y": 3 },
102 { "x": 3, "y": 3 },
103 { "x": 4, "y": 3 },
104 { "x": 5, "y": 3 },
105 { "x": 6, "y": 3 },
106 { "x": 7, "y": 3 },
107 { "x": 8, "y": 3 },
108 { "x": 9, "y": 3 },
109 { "x": 10, "y": 3 },
110 { "x": 11, "y": 3 }
111 ]
112 }
113 }
114}
diff --git a/keyboards/work_louder/work_board/keymaps/default/keymap.c b/keyboards/work_louder/work_board/keymaps/default/keymap.c
new file mode 100644
index 000000000..a3415d1e1
--- /dev/null
+++ b/keyboards/work_louder/work_board/keymaps/default/keymap.c
@@ -0,0 +1,207 @@
1/* Copyright 2015-2017 Jack Humbert
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 QMK_KEYBOARD_H
18
19enum planck_layers {
20 _QWERTY,
21 _COLEMAK,
22 _DVORAK,
23 _LOWER,
24 _RAISE,
25 _ADJUST
26};
27
28enum planck_keycodes {
29 QWERTY = SAFE_RANGE,
30 COLEMAK,
31 DVORAK,
32};
33
34enum tap_dances {
35 ENC_TAP,
36};
37
38#define LOWER MO(_LOWER)
39#define RAISE MO(_RAISE)
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42
43/* Qwerty
44 * ,-----------------------------------------------------------------------------------.
45 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
46 * |------+------+------+------+------+------+------+------+------+------+------+------|
47 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
48 * |------+------+------+------+------+------+------+------+------+------+------+------|
49 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
50 * |------+------+------+------+------+------+------+------+------+------+------+------|
51 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
52 * `-----------------------------------------------------------------------------------'
53 */
54[_QWERTY] = LAYOUT(
55 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, TD(ENC_TAP),
56 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
57 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
58 KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
59),
60
61/* Colemak
62 * ,-----------------------------------------------------------------------------------.
63 * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
64 * |------+------+------+------+------+------+------+------+------+------+------+------|
65 * | Esc | A | R | S | T | D | H | N | E | I | O | " |
66 * |------+------+------+------+------+------+------+------+------+------+------+------|
67 * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
68 * |------+------+------+------+------+------+------+------+------+------+------+------|
69 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
70 * `-----------------------------------------------------------------------------------'
71 */
72[_COLEMAK] = LAYOUT(
73 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, _______,
74 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
75 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
76 KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
77),
78
79/* Dvorak
80 * ,-----------------------------------------------------------------------------------.
81 * | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp |
82 * |------+------+------+------+------+------+------+------+------+------+------+------|
83 * | Esc | A | O | E | U | I | D | H | T | N | S | / |
84 * |------+------+------+------+------+------+------+------+------+------+------+------|
85 * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter |
86 * |------+------+------+------+------+------+------+------+------+------+------+------|
87 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
88 * `-----------------------------------------------------------------------------------'
89 */
90[_DVORAK] = LAYOUT(
91 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, _______,
92 KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
93 KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT ,
94 KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
95),
96
97/* Lower
98 * ,-----------------------------------------------------------------------------------.
99 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
100 * |------+------+------+------+------+------+------+------+------+------+------+------|
101 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
102 * |------+------+------+------+------+------+------+------+------+------+------+------|
103 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
104 * |------+------+------+------+------+------+------+------+------+------+------+------|
105 * | | | | | | | | Next | Vol- | Vol+ | Play |
106 * `-----------------------------------------------------------------------------------'
107 */
108[_LOWER] = LAYOUT(
109 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, _______,
110 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
111 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
112 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
113),
114
115/* Raise
116 * ,-----------------------------------------------------------------------------------.
117 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
118 * |------+------+------+------+------+------+------+------+------+------+------+------|
119 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
120 * |------+------+------+------+------+------+------+------+------+------+------+------|
121 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
122 * |------+------+------+------+------+------+------+------+------+------+------+------|
123 * | | | | | | | | Next | Vol- | Vol+ | Play |
124 * `-----------------------------------------------------------------------------------'
125 */
126[_RAISE] = LAYOUT(
127 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, _______,
128 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
129 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
130 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
131),
132
133
134/* Adjust (Lower + Raise)
135 * v------------------------RGB CONTROL--------------------v
136 * ,-----------------------------------------------------------------------------------.
137 * | | Reset|Debug | RGB |RGBMOD| HUE+ | HUE- | SAT+ | SAT- |BRGTH+|BRGTH-| Del |
138 * |------+------+------+------+------+------+------+------+------+------+------+------|
139 * | | |MUSmod|Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak|Plover| |
140 * |------+------+------+------+------+------+------+------+------+------+------+------|
141 * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof|TermOn|TermOf| | | |
142 * |------+------+------+------+------+------+------+------+------+------+------+------|
143 * | | | | | | | | | | | |
144 * `-----------------------------------------------------------------------------------'
145 */
146[_ADJUST] = LAYOUT(
147 _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , _______,
148 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______,
149 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______,
150 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
151)
152
153};
154
155
156void dance_enc_finished(qk_tap_dance_state_t *state, void *user_data) {
157 if (state->count == 1) {
158 register_code(KC_MPLY);
159 } else if (state->count == 2) {
160 register_code(KC_MNXT);
161 } else {
162 register_code(KC_MPRV);
163 }
164}
165
166void dance_enc_reset(qk_tap_dance_state_t *state, void *user_data) {
167 if (state->count == 1) {
168 unregister_code(KC_MPLY);
169 } else if (state->count == 2) {
170 unregister_code(KC_MNXT);
171 } else {
172 unregister_code(KC_MPRV);
173 }
174}
175
176// Tap Dance definitions
177qk_tap_dance_action_t tap_dance_actions[] = {
178 [ENC_TAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_enc_finished, dance_enc_reset),
179};
180
181layer_state_t layer_state_set_user(layer_state_t state) {
182 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
183}
184
185bool process_record_user(uint16_t keycode, keyrecord_t *record) {
186 switch (keycode) {
187 case QWERTY:
188 if (record->event.pressed) {
189 set_single_persistent_default_layer(_QWERTY);
190 }
191 return false;
192 break;
193 case COLEMAK:
194 if (record->event.pressed) {
195 set_single_persistent_default_layer(_COLEMAK);
196 }
197 return false;
198 break;
199 case DVORAK:
200 if (record->event.pressed) {
201 set_single_persistent_default_layer(_DVORAK);
202 }
203 return false;
204 break;
205 }
206 return true;
207}
diff --git a/keyboards/work_louder/work_board/keymaps/default/readme.md b/keyboards/work_louder/work_board/keymaps/default/readme.md
new file mode 100644
index 000000000..3b2d89b9a
--- /dev/null
+++ b/keyboards/work_louder/work_board/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for work
diff --git a/keyboards/work_louder/work_board/keymaps/default/rules.mk b/keyboards/work_louder/work_board/keymaps/default/rules.mk
new file mode 100644
index 000000000..e5ddcae8d
--- /dev/null
+++ b/keyboards/work_louder/work_board/keymaps/default/rules.mk
@@ -0,0 +1 @@
TAP_DANCE_ENABLE = yes
diff --git a/keyboards/work_louder/work_board/keymaps/via/keymap.c b/keyboards/work_louder/work_board/keymaps/via/keymap.c
new file mode 100644
index 000000000..6bdc75ac2
--- /dev/null
+++ b/keyboards/work_louder/work_board/keymaps/via/keymap.c
@@ -0,0 +1,95 @@
1/* Copyright 2015-2017 Jack Humbert
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 QMK_KEYBOARD_H
18
19enum planck_layers {
20 _QWERTY,
21 _LOWER,
22 _RAISE,
23 _ADJUST
24};
25
26enum tap_dances {
27 ENC_TAP,
28};
29
30#define LOWER KC_FN13
31#define RAISE KC_FN23
32
33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
34 [_QWERTY] = LAYOUT_via(
35 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, USER09,
36 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_VOLD,
37 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , KC_VOLU,
38 KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
39 ),
40
41 [_LOWER] = LAYOUT_via(
42 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, _______,
43 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_PGDN,
44 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, KC_PGUP,
45 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
46 ),
47
48 [_RAISE] = LAYOUT_via(
49 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, _______,
50 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_DOWN,
51 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, KC_UP,
52 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
53 ),
54
55 [_ADJUST] = LAYOUT_via(
56 _______, RESET, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , R_M_TOG,
57 _______, _______, MU_MOD, R_M_TOG, R_M_MOD, R_M_HUI, R_M_HUD, R_M_SAI, R_M_SAD, R_M_VAI, R_M_VAD, _______, R_M_HUI,
58 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, R_M_HUD,
59 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
60 )
61};
62
63
64void dance_enc_finished(qk_tap_dance_state_t *state, void *user_data) {
65 if (state->count == 1) {
66 register_code(KC_MPLY);
67 } else if (state->count == 2) {
68 register_code(KC_MNXT);
69 } else {
70 register_code(KC_MPRV);
71 }
72}
73
74void dance_enc_reset(qk_tap_dance_state_t *state, void *user_data) {
75 if (state->count == 1) {
76 unregister_code(KC_MPLY);
77 } else if (state->count == 2) {
78 unregister_code(KC_MNXT);
79 } else {
80 unregister_code(KC_MPRV);
81 }
82}
83
84// Tap Dance definitions
85qk_tap_dance_action_t tap_dance_actions[] = {
86 [ENC_TAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_enc_finished, dance_enc_reset),
87};
88
89bool process_record_user(uint16_t keycode, keyrecord_t *record) {
90 if (keycode == USER09) {
91 preprocess_tap_dance(TD(ENC_TAP), record);
92 return process_tap_dance(TD(ENC_TAP), record);
93 }
94 return true;
95}
diff --git a/keyboards/work_louder/work_board/keymaps/via/rules.mk b/keyboards/work_louder/work_board/keymaps/via/rules.mk
new file mode 100644
index 000000000..791d5ab50
--- /dev/null
+++ b/keyboards/work_louder/work_board/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2TAP_DANCE_ENABLE = yes
diff --git a/keyboards/work_louder/work_board/post_config.h b/keyboards/work_louder/work_board/post_config.h
new file mode 100644
index 000000000..263818bff
--- /dev/null
+++ b/keyboards/work_louder/work_board/post_config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2021 Drashna Jael're
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#ifndef TAP_CODE_DELAY
21# define TAP_CODE_DELAY 10
22#endif
diff --git a/keyboards/work_louder/work_board/readme.md b/keyboards/work_louder/work_board/readme.md
new file mode 100644
index 000000000..3e7cd9631
--- /dev/null
+++ b/keyboards/work_louder/work_board/readme.md
@@ -0,0 +1,24 @@
1# Work Louder Work Board
2
3![work](https://worklouder.cc/wp-content/uploads/2021/02/LAST-1536x960.png)
4
5A 40% ortho keyboard with an encoder and per key and underglow RGB
6
7* Keyboard Maintainer: [Work Louder](https://github.com/drashna)
8* Hardware Supported: An ATmega32u4 based 40% with per key and underglow RGB
9* Hardware Availability: [Work Louder](https://shop.worklouder.cc/)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make work_louder/work:default
14
15Flashing example for this keyboard:
16
17 make work_louder/work:default:flash
18
19Enter bootloader to flash the keyboard, you do either:
20
21 * Hold down the key in the left and top most position while plugging in the keyboard
22 * Hold the RAISE and LOWER keys and hit Q
23
24See 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/work_louder/work_board/rules.mk b/keyboards/work_louder/work_board/rules.mk
new file mode 100644
index 000000000..0731edd41
--- /dev/null
+++ b/keyboards/work_louder/work_board/rules.mk
@@ -0,0 +1,29 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
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 = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
24LTO_ENABLE = yes
25
26RGB_MATRIX_ENABLE = yes
27RGB_MATRIX_DRIVER = WS2812
28
29SRC += encoder_actions.c rgb_functions.c
diff --git a/keyboards/work_louder/work_board/work_board.c b/keyboards/work_louder/work_board/work_board.c
new file mode 100644
index 000000000..32d36e940
--- /dev/null
+++ b/keyboards/work_louder/work_board/work_board.c
@@ -0,0 +1,93 @@
1/* Copyright 2021 Drashna Jael're
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 "work_board.h"
18
19#if !defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
20bool encoder_update_kb(uint8_t index, bool clockwise) {
21 if (!encoder_update_user(index, clockwise)) { return false; }
22 if (clockwise) {
23 tap_code(KC_VOLD);
24 } else {
25 tap_code(KC_VOLU);
26 }
27 return true;
28}
29#endif
30
31#ifdef OLED_DRIVER_ENABLE
32# ifdef RGB_MATRIX_ENABLE
33# error Cannot run OLED and Per Key RGB at the same time due to pin conflicts
34# endif
35__attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_90; }
36
37__attribute__((weak)) void oled_task_user(void) {
38 oled_write_P(PSTR("LAYER"), false);
39 oled_write_P(PSTR("Lower"), layer_state_is(3));
40 oled_write_P(PSTR("Raise"), layer_state_is(4));
41 oled_write_P(PSTR("Adjst"), layer_state_is(5));
42
43 led_t led_usb_state = host_keyboard_led_state();
44 oled_write_P(PSTR("Lock:"), false);
45 oled_write_P(PSTR(" "), false);
46 oled_write_P(PSTR("N"), led_usb_state.num_lock);
47 oled_write_P(PSTR("C"), led_usb_state.caps_lock);
48 oled_write_ln_P(PSTR("S"), led_usb_state.scroll_lock);
49
50 uint8_t modifiers = get_mods() | get_oneshot_mods();
51 oled_write_P(PSTR("Mods:"), false);
52 oled_write_P(PSTR(" "), false);
53 oled_write_P(PSTR("S"), (modifiers & MOD_MASK_SHIFT));
54 oled_write_P(PSTR("C"), (modifiers & MOD_MASK_CTRL));
55 oled_write_P(PSTR("A"), (modifiers & MOD_MASK_ALT));
56 oled_write_P(PSTR("G"), (modifiers & MOD_MASK_GUI));
57
58 /* Show Ctrl-Gui Swap options */
59 static const char PROGMEM logo[][2][3] = {
60 {{0x97, 0x98, 0}, {0xb7, 0xb8, 0}},
61 {{0x95, 0x96, 0}, {0xb5, 0xb6, 0}},
62 };
63 oled_write_P(PSTR("BTMGK"), false);
64 oled_write_P(PSTR(" "), false);
65 oled_write_P(logo[0][0], !keymap_config.swap_lctl_lgui);
66 oled_write_P(logo[1][0], keymap_config.swap_lctl_lgui);
67 oled_write_P(PSTR(" "), false);
68 oled_write_P(logo[0][1], !keymap_config.swap_lctl_lgui);
69 oled_write_P(logo[1][1], keymap_config.swap_lctl_lgui);
70 oled_write_P(PSTR(" NKRO"), keymap_config.nkro);
71}
72#endif
73
74
75#ifdef RGB_MATRIX_ENABLE
76led_config_t g_led_config = { {
77 { 49, 48, 47, 46, 45, 43, 42, 41, 40, 39, 38, 37},
78 { 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 },
79 { 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13 },
80 { 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12 },
81}, {
82 { 223, 63 }, { 203, 63 }, { 183, 63 }, { 162, 63 }, { 142, 63 }, { 122, 63 }, { 101, 63 }, { 81, 63 }, { 61, 63 }, { 40, 63 }, { 20, 63 }, { 0, 63 },
83 { 0, 42 }, { 20, 42 }, { 40, 42 }, { 61, 42 }, { 81, 42 }, { 101, 42 }, { 122, 42 }, { 142, 42 }, { 162, 42 }, { 183, 42 }, { 203, 42 }, { 223, 42 },
84 { 223, 21 }, { 203, 21 }, { 183, 21 }, { 162, 21 }, { 142, 21 }, { 122, 21 }, { 101, 21 }, { 81, 21 }, { 61, 21 }, { 40, 21 }, { 20, 21 }, { 0, 21 },
85 { 0, 0 }, { 20, 0 }, { 40, 0 }, { 61, 0 }, { 81, 0 }, { 101, 0 }, { 122, 0 }, { 132, 0 }, { 142, 0 }, { 162, 0 }, { 183, 0 }, { 203, 0 }, { 223, 0 },
86}, {
87 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
88 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
89 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
90 1, 1, 1, 1, 1, 4,4,4, 1, 1, 1, 1, 1
91} };
92
93#endif
diff --git a/keyboards/work_louder/work_board/work_board.h b/keyboards/work_louder/work_board/work_board.h
new file mode 100644
index 000000000..25a881a19
--- /dev/null
+++ b/keyboards/work_louder/work_board/work_board.h
@@ -0,0 +1,83 @@
1/* Copyright 2021 Drashna Jael're
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#include "encoder_actions.h"
21#include "rgb_functions.h"
22
23#define ___ KC_NO
24
25/* This is a shortcut to help you visually see your layout.
26 *
27 * The first section contains all of the arguments representing the physical
28 * layout of the board and position of the keys.
29 *
30 * The second converts the arguments into a two-dimensional array which
31 * represents the switch matrix.
32 */
33#define LAYOUT_2u_space( \
34 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \
35 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
36 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
37 k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \
38) \
39{ \
40 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c }, \
41 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, ___ }, \
42 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, ___ }, \
43 { k30, k31, k32, k33, k34, k35, ___, k37, k38, k39, k3a, k3b, ___ } \
44}
45
46#define LAYOUT( \
47 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \
48 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
49 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
50 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \
51) \
52{ \
53 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c }, \
54 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, ___ }, \
55 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, ___ }, \
56 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, ___ } \
57}
58
59#define LAYOUT_2u_space_via( \
60 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \
61 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k0c_a, \
62 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k0c_b, \
63 k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \
64) \
65{ \
66 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c }, \
67 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k0c_a }, \
68 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k0c_b }, \
69 { k30, k31, k32, k33, k34, k35, ___, k37, k38, k39, k3a, k3b, ___ } \
70}
71
72#define LAYOUT_via( \
73 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \
74 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k0c_a, \
75 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k0c_b, \
76 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \
77) \
78{ \
79 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c }, \
80 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k0c_a }, \
81 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k0c_b }, \
82 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, ___ } \
83}