mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-17 17:35:30 +00:00
[Keyboard] Momokai Tap Trio (#16463)
* add winry3m3w * change name to Momokai Tap Trio * Delete settings.json * add rgb effects * amend default keymap * add limited RGB controls to default keymap * fix VAD * Update keyboards/momokai/tap_trio/tap_trio.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/momokai/tap_trio/tap_trio.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/momokai/tap_trio/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/momokai/tap_trio/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * implement RGB matrix, change default keymap * change keymaps * change rgb effects * comment out the RGB matrix and switch back to RGB light due to VIA not playing ball Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
f3fdd6ae5d
commit
371499c3a7
9 changed files with 304 additions and 0 deletions
126
keyboards/momokai/tap_trio/config.h
Normal file
126
keyboards/momokai/tap_trio/config.h
Normal file
|
@ -0,0 +1,126 @@
|
|||
/* Copyright 2022 Momokai
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x69F9 // "69" + "Popular Racing Movie 9" = Momokai (?)
|
||||
#define PRODUCT_ID 0x0006
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Momokai
|
||||
#define PRODUCT Tap Trio
|
||||
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 6
|
||||
|
||||
#define MATRIX_ROW_PINS { E0 }
|
||||
#define MATRIX_COL_PINS { E6, B2, B7, D1, D2, D3 }
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
|
||||
//TODO: implement RGB Matrix
|
||||
#define RGB_DI_PIN F0
|
||||
#define RGBLED_NUM 5
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
|
||||
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL
|
||||
|
||||
|
||||
/*== all animations enable ==*/
|
||||
// #define RGBLIGHT_ANIMATIONS
|
||||
/*== or choose animations ==*/
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
#define RGBLIGHT_EFFECT_SNAKE
|
||||
#define RGBLIGHT_EFFECT_KNIGHT
|
||||
#define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
#define RGBLIGHT_EFFECT_RGB_TEST
|
||||
#define RGBLIGHT_EFFECT_ALTERNATING
|
||||
/*== customize breathing effect ==*/
|
||||
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
||||
#define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
||||
/*==== use exp() and sin() ====*/
|
||||
#define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
|
||||
#define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
||||
|
||||
|
||||
// #ifdef RGB_DI_PIN
|
||||
// #define DRIVER_LED_TOTAL 5
|
||||
|
||||
// #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
// // # define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
|
||||
// #endif
|
||||
// #ifdef RGB_MATRIX_ENABLE
|
||||
// // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
|
||||
// // RGB Matrix Animation modes. Explicitly enabled
|
||||
// // For full list of effects, see:
|
||||
// // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
|
||||
// #define ENABLE_RGB_MATRIX_SOLID_COLOR
|
||||
// #define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
// #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
// #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
// #define ENABLE_RGB_MATRIX_BREATHING
|
||||
// // #define ENABLE_RGB_MATRIX_BAND_SAT
|
||||
// // #define ENABLE_RGB_MATRIX_BAND_VAL
|
||||
// // #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
// // #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
// // #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
// // #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
// #define ENABLE_RGB_MATRIX_CYCLE_ALL
|
||||
// #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
// #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
// // #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
// #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
// // #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
// #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
// #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
// // #define ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
// #define ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
// // #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
// #define ENABLE_RGB_MATRIX_RAINDROPS
|
||||
// #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
// #define ENABLE_RGB_MATRIX_HUE_BREATHING
|
||||
// #define ENABLE_RGB_MATRIX_HUE_PENDULUM
|
||||
// #define ENABLE_RGB_MATRIX_HUE_WAVE
|
||||
// #define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
// #define ENABLE_RGB_MATRIX_PIXEL_FLOW
|
||||
// #define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
|
||||
// // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
|
||||
// // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
// // #define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
|
||||
// // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
|
||||
// // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
// // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
// // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
// // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
// // #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
// #define ENABLE_RGB_MATRIX_SPLASH
|
||||
// // #define ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
// #define ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
// // #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
// #endif
|
18
keyboards/momokai/tap_trio/info.json
Normal file
18
keyboards/momokai/tap_trio/info.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"keyboard_name": "Momokai Tap Trio",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "label": "K00 (E0,E6)", "x": 0, "y": 0, "w": 1.5, "h": 1.5 },
|
||||
{ "label": "K01 (E0,B2)", "x": 2.25, "y": 0, "w": 1.5, "h": 1.5 },
|
||||
{ "label": "K02 (E0,B7)", "x": 4.5, "y": 0, "w": 1.5, "h": 1.5 },
|
||||
{ "label": "K03 (E0,D1)", "x": 2.25, "y": 2.5 },
|
||||
{ "label": "K04 (E0,D2)", "x": 3.75, "y": 2.5 },
|
||||
{ "label": "K05 (E0,D3)", "x": 5.25, "y": 2.5 }
|
||||
]
|
||||
}
|
||||
}
|
||||
,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
|
||||
}
|
27
keyboards/momokai/tap_trio/keymaps/default/keymap.c
Normal file
27
keyboards/momokai/tap_trio/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* Copyright 2022 Momokai
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_Z, KC_X, KC_C,
|
||||
KC_GRV, KC_ESC, KC_F2
|
||||
),
|
||||
|
||||
|
||||
};
|
42
keyboards/momokai/tap_trio/keymaps/via/keymap.c
Normal file
42
keyboards/momokai/tap_trio/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,42 @@
|
|||
/* Copyright 2022 Momokai
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_Z, KC_X, KC_C,
|
||||
KC_GRV, KC_ESC, KC_F2
|
||||
),
|
||||
|
||||
[1] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
[2] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
[3] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
|
||||
};
|
2
keyboards/momokai/tap_trio/keymaps/via/rules.mk
Normal file
2
keyboards/momokai/tap_trio/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
12
keyboards/momokai/tap_trio/readme.md
Normal file
12
keyboards/momokai/tap_trio/readme.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Momokai tap trio
|
||||
|
||||
|
||||
* Keyboard Maintainer: [peepeetee](https://github.com/peepeetee)
|
||||
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make momokai/tap_trio:default
|
||||
|
||||
|
||||
See 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
keyboards/momokai/tap_trio/rules.mk
Normal file
20
keyboards/momokai/tap_trio/rules.mk
Normal file
|
@ -0,0 +1,20 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
LTO_ENABLE = yes
|
31
keyboards/momokai/tap_trio/tap_trio.c
Normal file
31
keyboards/momokai/tap_trio/tap_trio.c
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* Copyright 2022 Momokai
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "tap_trio.h"
|
||||
|
||||
// #ifdef RGB_MATRIX_ENABLE
|
||||
// led_config_t g_led_config = { {
|
||||
// // Key Matrix to LED Index
|
||||
// { 0, 1, 2, NO_LED, NO_LED, NO_LED}
|
||||
// }, {
|
||||
// // LED Index to Physical Position
|
||||
// { 56, 0}, { 112, 0}, { 168, 0}, { 0, 64}, { 224, 64}
|
||||
// }, {
|
||||
// // LED Index to Flag
|
||||
// 4,4,4,2,2
|
||||
// } };
|
||||
|
||||
// #endif
|
26
keyboards/momokai/tap_trio/tap_trio.h
Normal file
26
keyboards/momokai/tap_trio/tap_trio.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* Copyright 2022 Momokai
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
K00, K01, K02, \
|
||||
K03, K04, K05 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05 } \
|
||||
}
|
||||
|
Loading…
Reference in a new issue