aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mechwild
diff options
context:
space:
mode:
authorKyle McCreery <mccreery.kyle@gmail.com>2021-12-11 01:41:25 -0500
committerGitHub <noreply@github.com>2021-12-10 22:41:25 -0800
commit0dc2bdbcb0fda1dd9576ddcb1d1774d91a46a17c (patch)
treef7b96e3d245c83f8159d2f171e7360c556a8c6b8 /keyboards/mechwild
parent80708c64a1b258f39346083cfb81b930a501499c (diff)
downloadqmk_firmware-0dc2bdbcb0fda1dd9576ddcb1d1774d91a46a17c.tar.gz
qmk_firmware-0dc2bdbcb0fda1dd9576ddcb1d1774d91a46a17c.zip
[Keyboard] Add Waka60 keyboard (#15173)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mechwild')
-rw-r--r--keyboards/mechwild/waka60/config.h143
-rw-r--r--keyboards/mechwild/waka60/f401/halconf.h25
-rw-r--r--keyboards/mechwild/waka60/f401/mcuconf.h27
-rw-r--r--keyboards/mechwild/waka60/f401/rules.mk5
-rw-r--r--keyboards/mechwild/waka60/f411/halconf.h22
-rw-r--r--keyboards/mechwild/waka60/f411/mcuconf.h23
-rw-r--r--keyboards/mechwild/waka60/f411/rules.mk5
-rw-r--r--keyboards/mechwild/waka60/info.json73
-rw-r--r--keyboards/mechwild/waka60/keymaps/audio/config.h23
-rw-r--r--keyboards/mechwild/waka60/keymaps/audio/keymap.c57
-rw-r--r--keyboards/mechwild/waka60/keymaps/audio/rules.mk3
-rw-r--r--keyboards/mechwild/waka60/keymaps/default/keymap.c57
-rw-r--r--keyboards/mechwild/waka60/keymaps/via/keymap.c57
-rw-r--r--keyboards/mechwild/waka60/keymaps/via/rules.mk2
-rw-r--r--keyboards/mechwild/waka60/readme.md19
-rw-r--r--keyboards/mechwild/waka60/rules.mk17
-rw-r--r--keyboards/mechwild/waka60/waka60.c37
-rw-r--r--keyboards/mechwild/waka60/waka60.h49
18 files changed, 644 insertions, 0 deletions
diff --git a/keyboards/mechwild/waka60/config.h b/keyboards/mechwild/waka60/config.h
new file mode 100644
index 000000000..636e13de3
--- /dev/null
+++ b/keyboards/mechwild/waka60/config.h
@@ -0,0 +1,143 @@
1/*
2Copyright 2021 Kyle McCreery
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 0x6D77 // mw = "MechWild"
24#define PRODUCT_ID 0x1709
25#define DEVICE_VER 0x0101
26#define MANUFACTURER MechWild
27#define PRODUCT Waka60
28
29/* key matrix size */
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 7
32
33#define EEPROM_I2C_24LC64
34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 *
44 */
45#define MATRIX_ROW_PINS { B8, B4, B3, B9, A15, B12, B13, B14, B15, A8 }
46#define MATRIX_COL_PINS { B10, B1, B0, A7, A6, A5, A4 }
47#define UNUSED_PINS
48
49/* encoder pins */
50#define ENCODERS_PAD_A { A3 }
51#define ENCODERS_PAD_B { A2 }
52
53/* encoder resolution */
54#define ENCODER_RESOLUTION 4
55#define TAP_CODE_DELAY 10
56
57/* COL2ROW, ROW2COL */
58#define DIODE_DIRECTION COL2ROW
59
60/* RGB settings, uncomment this define to enable RGB */
61#define RGB_DI_PIN A1
62#ifdef RGB_DI_PIN
63# define RGBLED_NUM 3
64# define RGBLIGHT_HUE_STEP 8
65# define RGBLIGHT_SAT_STEP 8
66# define RGBLIGHT_VAL_STEP 8
67# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
68# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
69#define RGBLIGHT_EFFECT_BREATHING
70#define RGBLIGHT_EFFECT_RAINBOW_MOOD
71#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
72#define RGBLIGHT_EFFECT_SNAKE
73#define RGBLIGHT_EFFECT_KNIGHT
74#define RGBLIGHT_EFFECT_CHRISTMAS
75#define RGBLIGHT_EFFECT_STATIC_GRADIENT
76#define RGBLIGHT_EFFECT_RGB_TEST
77#define RGBLIGHT_EFFECT_ALTERNATING
78#define RGBLIGHT_EFFECT_TWINKLE
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/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
88#define DEBOUNCE 5
89
90/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
91#define LOCKING_SUPPORT_ENABLE
92/* Locking resynchronize hack */
93#define LOCKING_RESYNC_ENABLE
94
95/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
96 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
97 */
98//#define GRAVE_ESC_CTRL_OVERRIDE
99
100/*
101 * Force NKRO
102 *
103 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
104 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
105 * makefile for this to work.)
106 *
107 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
108 * until the next keyboard reset.
109 *
110 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
111 * fully operational during normal computer usage.
112 *
113 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
114 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
115 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
116 * power-up.
117 *
118 */
119//#define FORCE_NKRO
120
121/*
122 * Feature disable options
123 * These options are also useful to firmware size reduction.
124 */
125
126/* disable debug print */
127//#define NO_DEBUG
128
129/* disable print */
130//#define NO_PRINT
131
132/* disable action features */
133//#define NO_ACTION_LAYER
134//#define NO_ACTION_TAPPING
135//#define NO_ACTION_ONESHOT
136
137/* disable these deprecated features by default */
138#define NO_ACTION_MACRO
139#define NO_ACTION_FUNCTION
140
141/* Bootmagic Lite key configuration */
142//#define BOOTMAGIC_LITE_ROW 0
143//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/mechwild/waka60/f401/halconf.h b/keyboards/mechwild/waka60/f401/halconf.h
new file mode 100644
index 000000000..25309fc70
--- /dev/null
+++ b/keyboards/mechwild/waka60/f401/halconf.h
@@ -0,0 +1,25 @@
1/* Copyright 2021 Kyle McCreery
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#define HAL_USE_I2C TRUE
20#define HAL_USE_PWM TRUE
21#define HAL_USE_PAL TRUE
22#define HAL_USE_GPT TRUE
23
24#include_next <halconf.h>
25
diff --git a/keyboards/mechwild/waka60/f401/mcuconf.h b/keyboards/mechwild/waka60/f401/mcuconf.h
new file mode 100644
index 000000000..95339690c
--- /dev/null
+++ b/keyboards/mechwild/waka60/f401/mcuconf.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 Kyle McCreery
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_next <mcuconf.h>
20
21#undef STM32_I2C_USE_I2C1
22#define STM32_I2C_USE_I2C1 TRUE
23
24#undef STM32_PWM_USE_TIM1
25#define STM32_PWM_USE_TIM1 TRUE
26#undef STM32_GPT_USE_TIM4
27#define STM32_GPT_USE_TIM4 TRUE \ No newline at end of file
diff --git a/keyboards/mechwild/waka60/f401/rules.mk b/keyboards/mechwild/waka60/f401/rules.mk
new file mode 100644
index 000000000..f1304648f
--- /dev/null
+++ b/keyboards/mechwild/waka60/f401/rules.mk
@@ -0,0 +1,5 @@
1# MCU name
2MCU = STM32F401
3
4# Bootloader selection
5BOOTLOADER = stm32-dfu
diff --git a/keyboards/mechwild/waka60/f411/halconf.h b/keyboards/mechwild/waka60/f411/halconf.h
new file mode 100644
index 000000000..b57977316
--- /dev/null
+++ b/keyboards/mechwild/waka60/f411/halconf.h
@@ -0,0 +1,22 @@
1/* Copyright 2021 Kyle McCreery
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#define HAL_USE_I2C TRUE
20
21#include_next <halconf.h>
22
diff --git a/keyboards/mechwild/waka60/f411/mcuconf.h b/keyboards/mechwild/waka60/f411/mcuconf.h
new file mode 100644
index 000000000..a00131aca
--- /dev/null
+++ b/keyboards/mechwild/waka60/f411/mcuconf.h
@@ -0,0 +1,23 @@
1/* Copyright 2021 Kyle McCreery
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_next <mcuconf.h>
20
21#undef STM32_I2C_USE_I2C1
22#define STM32_I2C_USE_I2C1 TRUE
23
diff --git a/keyboards/mechwild/waka60/f411/rules.mk b/keyboards/mechwild/waka60/f411/rules.mk
new file mode 100644
index 000000000..b32a8b7f5
--- /dev/null
+++ b/keyboards/mechwild/waka60/f411/rules.mk
@@ -0,0 +1,5 @@
1# MCU name
2MCU = STM32F411
3
4# Bootloader selection
5BOOTLOADER = stm32-dfu
diff --git a/keyboards/mechwild/waka60/info.json b/keyboards/mechwild/waka60/info.json
new file mode 100644
index 000000000..87549849b
--- /dev/null
+++ b/keyboards/mechwild/waka60/info.json
@@ -0,0 +1,73 @@
1{
2 "keyboard_name": "MechWild Waka60",
3 "url": "mechwild.com",
4 "maintainer": "Kyle McCreery",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label": "k00", "x": 0, "y": 0},
9 {"label": "k01", "x": 1, "y": 0},
10 {"label": "k02", "x": 2, "y": 0},
11 {"label": "k03", "x": 3, "y": 0},
12 {"label": "k04", "x": 4, "y": 0},
13 {"label": "k05", "x": 5, "y": 0},
14 {"label": "k50", "x": 7, "y": 0},
15 {"label": "k51", "x": 8, "y": 0},
16 {"label": "k52", "x": 9, "y": 0},
17 {"label": "k53", "x": 10, "y": 0},
18 {"label": "k54", "x": 11, "y": 0},
19 {"label": "k55", "x": 12, "y": 0},
20 {"label": "k10", "x": 0, "y": 1},
21 {"label": "k11", "x": 1, "y": 1},
22 {"label": "k12", "x": 2, "y": 1},
23 {"label": "k13", "x": 3, "y": 1},
24 {"label": "k14", "x": 4, "y": 1},
25 {"label": "k15", "x": 5, "y": 1},
26 {"label": "k60", "x": 7, "y": 1},
27 {"label": "k61", "x": 8, "y": 1},
28 {"label": "k62", "x": 9, "y": 1},
29 {"label": "k63", "x": 10, "y": 1},
30 {"label": "k64", "x": 11, "y": 1},
31 {"label": "k65", "x": 12, "y": 1},
32 {"label": "k20", "x": 0, "y": 2},
33 {"label": "k21", "x": 1, "y": 2},
34 {"label": "k22", "x": 2, "y": 2},
35 {"label": "k23", "x": 3, "y": 2},
36 {"label": "k24", "x": 4, "y": 2},
37 {"label": "k25", "x": 5, "y": 2},
38 {"label": "k70", "x": 7, "y": 2},
39 {"label": "k71", "x": 8, "y": 2},
40 {"label": "k72", "x": 9, "y": 2},
41 {"label": "k73", "x": 10, "y": 2},
42 {"label": "k74", "x": 11, "y": 2},
43 {"label": "k75", "x": 12, "y": 2},
44 {"label": "k30", "x": 0, "y": 3},
45 {"label": "k31", "x": 1, "y": 3},
46 {"label": "k32", "x": 2, "y": 3},
47 {"label": "k33", "x": 3, "y": 3},
48 {"label": "k34", "x": 4, "y": 3},
49 {"label": "k35", "x": 5, "y": 3},
50 {"label": "k36", "x": 6, "y": 3},
51 {"label": "k80", "x": 7, "y": 3},
52 {"label": "k81", "x": 8, "y": 3},
53 {"label": "k82", "x": 9, "y": 3},
54 {"label": "k83", "x": 10, "y": 3},
55 {"label": "k84", "x": 11, "y": 3},
56 {"label": "k85", "x": 12, "y": 3},
57 {"label": "k40", "x": 0, "y": 4},
58 {"label": "k41", "x": 1, "y": 4},
59 {"label": "k42", "x": 2, "y": 4},
60 {"label": "k43", "x": 3, "y": 4},
61 {"label": "k44", "x": 4, "y": 4},
62 {"label": "k45", "x": 5, "y": 4},
63 {"label": "k46", "x": 6, "y": 4},
64 {"label": "k90", "x": 7, "y": 4},
65 {"label": "k91", "x": 8, "y": 4},
66 {"label": "k92", "x": 9, "y": 4},
67 {"label": "k93", "x": 10, "y": 4},
68 {"label": "k94", "x": 11, "y": 4},
69 {"label": "k95", "x": 12, "y": 4}
70 ]
71 }
72 }
73}
diff --git a/keyboards/mechwild/waka60/keymaps/audio/config.h b/keyboards/mechwild/waka60/keymaps/audio/config.h
new file mode 100644
index 000000000..095242a16
--- /dev/null
+++ b/keyboards/mechwild/waka60/keymaps/audio/config.h
@@ -0,0 +1,23 @@
1/*
2Copyright 2021 Kyle McCreery
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#define AUDIO_PIN B5
21#define AUDIO_PWM_DRIVER PWMD1
22#define AUDIO_PWM_CHANNEL 1
23#define AUDIO_STATE_TIMER GPTD4
diff --git a/keyboards/mechwild/waka60/keymaps/audio/keymap.c b/keyboards/mechwild/waka60/keymaps/audio/keymap.c
new file mode 100644
index 000000000..6f36d7549
--- /dev/null
+++ b/keyboards/mechwild/waka60/keymaps/audio/keymap.c
@@ -0,0 +1,57 @@
1/* Copyright 2021 Kyle McCreery
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
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE,
22 _FN1,
23 _FN2,
24 _FN3
25};
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 /* Base */
29 [_BASE] = LAYOUT(
30 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
31 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
32 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT,
33 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
34 KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, MO(1), KC_RALT, KC_RGUI, KC_RCTL
35 ),
36 [_FN1] = LAYOUT(
37 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
38 KC_TRNS, AU_TOG, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, MU_TOG, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, MU_MOD, RGB_RMOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
42 ),
43 [_FN2] = LAYOUT(
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
49 ),
50 [_FN3] = LAYOUT(
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
55 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
56 )
57};
diff --git a/keyboards/mechwild/waka60/keymaps/audio/rules.mk b/keyboards/mechwild/waka60/keymaps/audio/rules.mk
new file mode 100644
index 000000000..59d40ea4d
--- /dev/null
+++ b/keyboards/mechwild/waka60/keymaps/audio/rules.mk
@@ -0,0 +1,3 @@
1VIA_ENABLE = yes
2AUDIO_ENABLE = yes
3AUDIO_DRIVER = pwm_software \ No newline at end of file
diff --git a/keyboards/mechwild/waka60/keymaps/default/keymap.c b/keyboards/mechwild/waka60/keymaps/default/keymap.c
new file mode 100644
index 000000000..54f2a32a7
--- /dev/null
+++ b/keyboards/mechwild/waka60/keymaps/default/keymap.c
@@ -0,0 +1,57 @@
1/* Copyright 2021 Kyle McCreery
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
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE,
22 _FN1,
23 _FN2,
24 _FN3
25};
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 /* Base */
29 [_BASE] = LAYOUT(
30 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
31 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
32 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT,
33 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
34 KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, MO(1), KC_RALT, KC_RGUI, KC_RCTL
35 ),
36 [_FN1] = LAYOUT(
37 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
38 KC_TRNS, KC_TRNS, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, RGB_RMOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
42 ),
43 [_FN2] = LAYOUT(
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
49 ),
50 [_FN3] = LAYOUT(
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
55 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
56 )
57};
diff --git a/keyboards/mechwild/waka60/keymaps/via/keymap.c b/keyboards/mechwild/waka60/keymaps/via/keymap.c
new file mode 100644
index 000000000..6f36d7549
--- /dev/null
+++ b/keyboards/mechwild/waka60/keymaps/via/keymap.c
@@ -0,0 +1,57 @@
1/* Copyright 2021 Kyle McCreery
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
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE,
22 _FN1,
23 _FN2,
24 _FN3
25};
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 /* Base */
29 [_BASE] = LAYOUT(
30 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
31 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
32 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT,
33 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
34 KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, MO(1), KC_RALT, KC_RGUI, KC_RCTL
35 ),
36 [_FN1] = LAYOUT(
37 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
38 KC_TRNS, AU_TOG, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, MU_TOG, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, MU_MOD, RGB_RMOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
42 ),
43 [_FN2] = LAYOUT(
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
49 ),
50 [_FN3] = LAYOUT(
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
55 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
56 )
57};
diff --git a/keyboards/mechwild/waka60/keymaps/via/rules.mk b/keyboards/mechwild/waka60/keymaps/via/rules.mk
new file mode 100644
index 000000000..16d33cd89
--- /dev/null
+++ b/keyboards/mechwild/waka60/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2
diff --git a/keyboards/mechwild/waka60/readme.md b/keyboards/mechwild/waka60/readme.md
new file mode 100644
index 000000000..7e6d9cefc
--- /dev/null
+++ b/keyboards/mechwild/waka60/readme.md
@@ -0,0 +1,19 @@
1# Waka60
2
3![waka](https://i.imgur.com/ohyE83Sh.png)
4
5An affordable Ortholinear keyboard kit featuring a speaker, top-facing RGB LEDs, a center encoder, spacing between the halves, and powered by the STM32 Blackpill.
6
7* Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery)
8* Hardware Supported: Waka60 v1.1
9* Hardware Availability: [Waka60 on MechWild](https://mechwild.com/product/waka/)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make mechwild/waka60:default
14
15Flashing example for this keyboard:
16
17 make mechwild/waka60:default:flash
18
19See 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/mechwild/waka60/rules.mk b/keyboards/mechwild/waka60/rules.mk
new file mode 100644
index 000000000..5b058057f
--- /dev/null
+++ b/keyboards/mechwild/waka60/rules.mk
@@ -0,0 +1,17 @@
1# Build Options
2# change yes to no to disable
3#
4BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
5MOUSEKEY_ENABLE = yes # Mouse keys
6EXTRAKEY_ENABLE = yes # Audio control and System control
7CONSOLE_ENABLE = no # Console for debug
8COMMAND_ENABLE = no # Commands for debug and configuration
9NKRO_ENABLE = no # Enable N-Key Rollover
10BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
11RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
12AUDIO_ENABLE = no # Audio output
13ENCODER_ENABLE = yes # Encoder Enabled
14
15EEPROM_DRIVER = i2c
16
17DEFAULT_FOLDER = mechwild/waka60/f401
diff --git a/keyboards/mechwild/waka60/waka60.c b/keyboards/mechwild/waka60/waka60.c
new file mode 100644
index 000000000..1b6eec1f4
--- /dev/null
+++ b/keyboards/mechwild/waka60/waka60.c
@@ -0,0 +1,37 @@
1/* Copyright 2021 Kyle McCreery
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 "waka60.h"
18void board_init(void) {
19 // B9 is configured as I2C1_SDA in the board file; that function must be
20 // disabled before using B7 as I2C1_SDA.
21 setPinInputHigh(B9);
22}
23#ifdef ENCODER_ENABLE
24bool encoder_update_kb(uint8_t index, bool clockwise) {
25 if (!encoder_update_user(index, clockwise)) { return false; }
26 switch (index) {
27 case 0:
28 if (clockwise) {
29 tap_code(KC_VOLU);
30 } else {
31 tap_code(KC_VOLD);
32 }
33 break;
34 }
35 return true;
36}
37#endif
diff --git a/keyboards/mechwild/waka60/waka60.h b/keyboards/mechwild/waka60/waka60.h
new file mode 100644
index 000000000..4e7d82e92
--- /dev/null
+++ b/keyboards/mechwild/waka60/waka60.h
@@ -0,0 +1,49 @@
1/* Copyright 2021 Kyle McCreery
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#define ___ KC_NO
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
32#define LAYOUT( \
33 k00, k01, k02, k03, k04, k05, k50, k51, k52, k53, k54, k55, \
34 k10, k11, k12, k13, k14, k15, k60, k61, k62, k63, k64, k65, \
35 k20, k21, k22, k23, k24, k25, k70, k71, k72, k73, k74, k75, \
36 k30, k31, k32, k33, k34, k35, k36, k80, k81, k82, k83, k84, k85, \
37 k40, k41, k42, k43, k44, k45, k46, k90, k91, k92, k93, k94, k95 \
38) { \
39 { k00, k01, k02, k03, k04, k05, ___}, \
40 { k10, k11, k12, k13, k14, k15, ___}, \
41 { k20, k21, k22, k23, k24, k25, ___}, \
42 { k30, k31, k32, k33, k34, k35, k36}, \
43 { k40, k41, k42, k43, k44, k45, k46}, \
44 { k50, k51, k52, k53, k54, k55, ___}, \
45 { k60, k61, k62, k63, k64, k65, ___}, \
46 { k70, k71, k72, k73, k74, k75, ___}, \
47 { k80, k81, k82, k83, k84, k85, ___}, \
48 { k90, k91, k92, k93, k94, k95, ___} \
49}