aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mio
diff options
context:
space:
mode:
authorNaoto Takai <takai@recompile.net>2021-02-21 13:48:52 +0900
committerGitHub <noreply@github.com>2021-02-20 20:48:52 -0800
commitf6e909600d711c60e2ac3042131d4e20bbe8b7c4 (patch)
tree4bb5cf4e817292538f65480a41b7aa201a530662 /keyboards/mio
parentfe4f7e6c731bb3b64810dfe6952908759b819df2 (diff)
downloadqmk_firmware-f6e909600d711c60e2ac3042131d4e20bbe8b7c4.tar.gz
qmk_firmware-f6e909600d711c60e2ac3042131d4e20bbe8b7c4.zip
[Keyboard] Add MIO keyboard (#11852)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mio')
-rw-r--r--keyboards/mio/config.h67
-rw-r--r--keyboards/mio/info.json54
-rw-r--r--keyboards/mio/keymaps/default/keymap.c42
-rw-r--r--keyboards/mio/keymaps/default/readme.md5
-rw-r--r--keyboards/mio/keymaps/via/keymap.c51
-rw-r--r--keyboards/mio/keymaps/via/rules.mk2
-rw-r--r--keyboards/mio/mio.c17
-rw-r--r--keyboards/mio/mio.h44
-rw-r--r--keyboards/mio/readme.md23
-rw-r--r--keyboards/mio/rules.mk22
10 files changed, 327 insertions, 0 deletions
diff --git a/keyboards/mio/config.h b/keyboards/mio/config.h
new file mode 100644
index 000000000..7eab9ea59
--- /dev/null
+++ b/keyboards/mio/config.h
@@ -0,0 +1,67 @@
1/*
2Copyright 2021 recompile keys
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 0x524B // recompile keys
24#define PRODUCT_ID 0x4D41 // MIO
25#define DEVICE_VER 0x0001
26#define MANUFACTURER recompile keys
27#define PRODUCT MIO
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 8
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 { F1, F0, F4, F7, F6, F5 }
44#define MATRIX_COL_PINS { C7, C6, B6, B5, B4, D7, D6, D4}
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50#define RGB_DI_PIN B3
51#ifdef RGB_DI_PIN
52# define RGBLED_NUM 8
53# define RGBLIGHT_HUE_STEP 8
54# define RGBLIGHT_SAT_STEP 8
55# define RGBLIGHT_VAL_STEP 8
56# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
57# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
58# define RGBLIGHT_ANIMATIONS
59#endif
60
61/* disable these deprecated features by default */
62#define NO_ACTION_MACRO
63#define NO_ACTION_FUNCTION
64
65/* Bootmagic Lite key configuration */
66#define BOOTMAGIC_LITE_ROW 0
67#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/mio/info.json b/keyboards/mio/info.json
new file mode 100644
index 000000000..d5afdbf79
--- /dev/null
+++ b/keyboards/mio/info.json
@@ -0,0 +1,54 @@
1{
2 "keyboard_name": "MIO",
3 "url": "https://keys.recompile.net/projects/mio/",
4 "maintainer": "recompile keys",
5 "width": 8.25,
6 "height": 7.5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label": "Esc", "x": 0, "y": 0 },
11 {"label": "F1", "x": 2, "y": 0 },
12 {"label": "F2", "x": 3, "y": 0 },
13 {"label": "F3", "x": 4, "y": 0 },
14 {"label": "F4", "x": 5, "y": 0 },
15 {"label": "F5", "x": 6.25, "y": 0 },
16 {"label": "F6", "x": 7.25, "y": 0 },
17 {"label": "~", "x": 0, "y": 1.25 },
18 {"label": "!", "x": 1, "y": 1.25 },
19 {"label": "@", "x": 2, "y": 1.25 },
20 {"label": "#", "x": 3, "y": 1.25 },
21 {"label": "$", "x": 4, "y": 1.25 },
22 {"label": "%", "x": 5, "y": 1.25 },
23 {"label": "^", "x": 6, "y": 1.25 },
24 {"label": "&", "x": 7, "y": 1.25 },
25 {"label": "Tab", "x": 0, "y": 2.25, "w": 1.5 },
26 {"label": "Q", "x": 1.5, "y": 2.25 },
27 {"label": "W", "x": 2.5, "y": 2.25 },
28 {"label": "E", "x": 3.5, "y": 2.25 },
29 {"label": "R", "x": 4.5, "y": 2.25 },
30 {"label": "T", "x": 5.5, "y": 2.25 },
31 {"label": "Y", "x": 6.5, "y": 2.25 },
32 {"label": "Caps Lock", "x": 0, "y": 3.25, "w": 1.75 },
33 {"label": "A", "x": 1.75, "y": 3.25 },
34 {"label": "S", "x": 2.75, "y": 3.25 },
35 {"label": "D", "x": 3.75, "y": 3.25 },
36 {"label": "F", "x": 4.75, "y": 3.25 },
37 {"label": "G", "x": 5.75, "y": 3.25 },
38 {"label": "H", "x": 6.75, "y": 3.25 },
39 {"label": "Shift", "x": 0, "y": 4.25, "w": 2.25 },
40 {"label": "Z", "x": 2.25, "y": 4.25 },
41 {"label": "X", "x": 3.25, "y": 4.25 },
42 {"label": "C", "x": 4.25, "y": 4.25 },
43 {"label": "V", "x": 5.25, "y": 4.25 },
44 {"label": "B", "x": 6.25, "y": 4.25 },
45 {"label": "N", "x": 7.25, "y": 4.25 },
46 {"label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
47 {"label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
48 {"x": 4, "y": 5.25, "w": 1.5 },
49 {"x": 5.5, "y": 5.25, "w": 2.75 },
50 {"x": 7, "y": 6.5, "w": 1.25 }
51 ]
52 }
53 }
54}
diff --git a/keyboards/mio/keymaps/default/keymap.c b/keyboards/mio/keymaps/default/keymap.c
new file mode 100644
index 000000000..39223f537
--- /dev/null
+++ b/keyboards/mio/keymaps/default/keymap.c
@@ -0,0 +1,42 @@
1/* Copyright 2021 recompile keys
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// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN
22};
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 /* Base */
26 [_BASE] = LAYOUT(
27 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
28 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7,
29 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y,
30 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H,
31 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N,
32 MO(_FN), KC_LCTL, KC_LALT, KC_SPC, KC_ENT
33 ),
34 [_FN] = LAYOUT(
35 RESET, _______, _______, _______, _______, _______, _______,
36 RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______,
37 _______, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______
41 )
42};
diff --git a/keyboards/mio/keymaps/default/readme.md b/keyboards/mio/keymaps/default/readme.md
new file mode 100644
index 000000000..688c51473
--- /dev/null
+++ b/keyboards/mio/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1![MIO Layout Image](https://i.imgur.com/vihNDjn.png)
2
3# Default MIO Layout
4
5This layout is the default keymap for MIO.
diff --git a/keyboards/mio/keymaps/via/keymap.c b/keyboards/mio/keymaps/via/keymap.c
new file mode 100644
index 000000000..b521df997
--- /dev/null
+++ b/keyboards/mio/keymaps/via/keymap.c
@@ -0,0 +1,51 @@
1/* Copyright 2021 recompile keys
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 [0] = LAYOUT(
20 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
21 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7,
22 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y,
23 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H,
24 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N,
25 MO(1), KC_LCTL, KC_LALT, KC_SPC, KC_ENT
26 ),
27 [1] = LAYOUT(
28 RESET, _______, _______, _______, _______, _______, _______,
29 RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______,
30 _______, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______,
33 _______, _______, _______, _______, _______
34 ),
35 [2] = LAYOUT(
36 _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______
42 ),
43 [3] = LAYOUT(
44 _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______
50 )
51};
diff --git a/keyboards/mio/keymaps/via/rules.mk b/keyboards/mio/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/mio/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/mio/mio.c b/keyboards/mio/mio.c
new file mode 100644
index 000000000..154a89d26
--- /dev/null
+++ b/keyboards/mio/mio.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 recompile keys
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 "mio.h"
diff --git a/keyboards/mio/mio.h b/keyboards/mio/mio.h
new file mode 100644
index 000000000..da6dc3229
--- /dev/null
+++ b/keyboards/mio/mio.h
@@ -0,0 +1,44 @@
1/* Copyright 2021 recompile keys
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 K000, K002, K003, K004, K005, K006, K007, \
31 K100, K101, K102, K103, K104, K105, K106, K107, \
32 K200, K201, K202, K203, K204, K205, K206, \
33 K300, K301, K302, K303, K304, K305, K306, \
34 K400, K401, K402, K403, K404, K405, K406, \
35 K500, K501, K502, K505, K506 \
36) \
37{ \
38 { K000, KC_NO, K002, K003, K004, K005, K006, K007 }, \
39 { K100, K101, K102, K103, K104, K105, K106, K107 }, \
40 { K200, K201, K202, K203, K204, K205, K206, KC_NO }, \
41 { K300, K301, K302, K303, K304, K305, K306, KC_NO }, \
42 { K400, K401, K402, K403, K404, K405, K406, KC_NO }, \
43 { K500, K501, K502, KC_NO, KC_NO, K505, K506, KC_NO }, \
44}
diff --git a/keyboards/mio/readme.md b/keyboards/mio/readme.md
new file mode 100644
index 000000000..6ae4fd049
--- /dev/null
+++ b/keyboards/mio/readme.md
@@ -0,0 +1,23 @@
1# MIO
2
3![MIO](https://keys.recompile.net/images/mio-01@600w.jpg)
4
5High-end custom gaming keyboard.
6
7* Keyboard Maintainer: [Naoto Takai](https://github.com/takai)
8* Hardware Supported: Original MIO PCB
9* Hardware Availability: https://keys.recompile.net/projects/mio/
10
11Make example for this keyboard (after setting up your build environment):
12
13 make mio:default
14
15Flashing example for this keyboard:
16
17 make mio: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).
20
21## Bootloader Mode
22
23In order to flash the firmware, you need to put the keyboard into bootloader mode. To enable the bootloader mode, press the reset button (SW1) on the underside of the PCB.
diff --git a/keyboards/mio/rules.mk b/keyboards/mio/rules.mk
new file mode 100644
index 000000000..38ce53e30
--- /dev/null
+++ b/keyboards/mio/rules.mk
@@ -0,0 +1,22 @@
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 = no # 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