@ -1,6 +1,6 @@ | |||||
#include "quantum.h" | |||||
#include "backlight.h" | #include "backlight.h" | ||||
#include "backlight_driver_common.h" | #include "backlight_driver_common.h" | ||||
#include "util.h" | |||||
#ifdef BACKLIGHT_BREATHING | #ifdef BACKLIGHT_BREATHING | ||||
# error "Backlight breathing is not available for software PWM. Please disable." | # error "Backlight breathing is not available for software PWM. Please disable." |
@ -0,0 +1,70 @@ | |||||
/* Copyright 2023 Ziptyze | |||||
* | |||||
* 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 | |||||
#define RGB_MATRIX_LED_COUNT 32 | |||||
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses | |||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended | |||||
// 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_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 |
@ -0,0 +1,96 @@ | |||||
{ | |||||
"manufacturer": "1upkeyboards", | |||||
"keyboard_name": "1upocarina", | |||||
"maintainer": "ziptyze", | |||||
"processor": "RP2040", | |||||
"bootloader": "rp2040", | |||||
"board": "GENERIC_RP_RP2040", | |||||
"usb": { | |||||
"device_version": "1.0.0", | |||||
"pid": "0x5607", | |||||
"vid": "0x6F75" | |||||
}, | |||||
"dynamic_keymap": { | |||||
"layer_count": 10 | |||||
}, | |||||
"features": { | |||||
"bootmagic": true, | |||||
"command": false, | |||||
"console": false, | |||||
"encoder": true, | |||||
"extrakey": true, | |||||
"mousekey": true, | |||||
"nkro": false, | |||||
"rgb_matrix": true | |||||
}, | |||||
"encoder": { | |||||
"enabled": true, | |||||
"rotary": [ | |||||
{ | |||||
"pin_a": "GP25", "pin_b": "GP26" | |||||
} | |||||
] | |||||
}, | |||||
"matrix_pins": { | |||||
"direct": [ | |||||
["GP28", "GP29", "GP27", "GP1", "GP2"] | |||||
] | |||||
}, | |||||
"ws2812": { | |||||
"pin": "GP24" | |||||
}, | |||||
"rgb_matrix": { | |||||
"driver": "WS2812", | |||||
"layout": [ | |||||
{ "flags": 4, "matrix": [0, 0], "x": 23, "y": 26 }, | |||||
{ "flags": 4, "matrix": [0, 1], "x": 62, "y": 26 }, | |||||
{ "flags": 4, "matrix": [0, 2], "x": 112, "y": 34 }, | |||||
{ "flags": 4, "matrix": [0, 3], "x": 161, "y": 26 }, | |||||
{ "flags": 4, "matrix": [0, 4], "x": 200, "y": 26 }, | |||||
{ "flags": 2, "x": 133, "y": 3 }, | |||||
{ "flags": 2, "x": 154, "y": 3 }, | |||||
{ "flags": 2, "x": 174, "y": 3 }, | |||||
{ "flags": 2, "x": 194, "y": 3 }, | |||||
{ "flags": 2, "x": 218, "y": 5 }, | |||||
{ "flags": 2, "x": 221, "y": 19 }, | |||||
{ "flags": 2, "x": 221, "y": 31 }, | |||||
{ "flags": 2, "x": 221, "y": 44 }, | |||||
{ "flags": 2, "x": 217, "y": 58 }, | |||||
{ "flags": 2, "x": 195, "y": 61 }, | |||||
{ "flags": 2, "x": 174, "y": 61 }, | |||||
{ "flags": 2, "x": 154, "y": 61 }, | |||||
{ "flags": 2, "x": 133, "y": 61 }, | |||||
{ "flags": 2, "x": 112, "y": 61 }, | |||||
{ "flags": 2, "x": 91, "y": 61 }, | |||||
{ "flags": 2, "x": 70, "y": 61 }, | |||||
{ "flags": 2, "x": 49, "y": 61 }, | |||||
{ "flags": 2, "x": 28, "y": 61 }, | |||||
{ "flags": 2, "x": 5, "y": 58 }, | |||||
{ "flags": 2, "x": 2, "y": 44 }, | |||||
{ "flags": 2, "x": 2, "y": 31 }, | |||||
{ "flags": 2, "x": 2, "y": 19 }, | |||||
{ "flags": 2, "x": 5, "y": 5 }, | |||||
{ "flags": 2, "x": 28, "y": 3 }, | |||||
{ "flags": 2, "x": 49, "y": 3 }, | |||||
{ "flags": 2, "x": 70, "y": 3 }, | |||||
{ "flags": 2, "x": 91, "y": 3 } | |||||
] | |||||
}, | |||||
"layouts": { | |||||
"LAYOUT_1x5": { | |||||
"layout": [ | |||||
{ "label": "z", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 }, | |||||
{ "label": "x", "matrix": [0, 1], "w": 1, "x": 1, "y": 0 }, | |||||
{ "label": "esc", "matrix": [0, 2], "w": 1, "x": 2, "y": 0 }, | |||||
{ "label": "c", "matrix": [0, 3], "w": 1, "x": 3, "y": 0 }, | |||||
{ "label": "v", "matrix": [0, 4], "w": 1, "x": 4, "y": 0 } | |||||
] | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,34 @@ | |||||
/* Copyright 2023 ziptyze | |||||
* | |||||
* 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_1x5( | |||||
KC_Z, KC_X, LT(1, KC_ESC), KC_C, KC_V | |||||
), | |||||
[1] = LAYOUT_1x5( | |||||
RGB_TOG, RGB_MOD, KC_TRNS, RGB_VAD, RGB_VAI | |||||
) | |||||
}; | |||||
#if defined(ENCODER_MAP_ENABLE) | |||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | |||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, | |||||
[1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS)} | |||||
}; | |||||
#endif |
@ -0,0 +1 @@ | |||||
ENCODER_MAP_ENABLE = yes |
@ -0,0 +1,34 @@ | |||||
/* Copyright 2023 ziptyze | |||||
* | |||||
* 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_1x5( | |||||
KC_Z, KC_X, LT(1, KC_ESC), KC_C, KC_V | |||||
), | |||||
[1] = LAYOUT_1x5( | |||||
RGB_TOG, RGB_MOD, KC_TRNS, RGB_VAD, RGB_VAI | |||||
) | |||||
}; | |||||
#if defined(ENCODER_MAP_ENABLE) | |||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | |||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, | |||||
[1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS)} | |||||
}; | |||||
#endif |
@ -0,0 +1,4 @@ | |||||
VIA_ENABLE = yes | |||||
LTO_ENABLE = yes | |||||
ENCODER_MAP_ENABLE = yes |
@ -0,0 +1,22 @@ | |||||
# 1upocarina | |||||
This keyboard is the Ocarina from 1upkeyboards. It is a five button keypad designed for osu. There is an option to add an encoder to the center position, and the keypad features in-switch per-key addressable RGB leds, as well as 27 right angle underglow RGB leds for very bright and smooth lighting effects. | |||||
* Keyboard Maintainer: [ziptyze](https://github.com/ziptyze) | |||||
Make example for this keyboard (after setting up your build environment): | |||||
make 1upkeyboards/1upocarina:default | |||||
Flashing example for this keyboard: | |||||
make 1upkeyboards/1upocarina:default:flash | |||||
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). | |||||
## Bootloader | |||||
Enter the bootloader in 2 ways: | |||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | |||||
* **Physical reset button**: Hold the button on the back of the PCB and plug in the keyboard |
@ -0,0 +1 @@ | |||||
WS2812_DRIVER = vendor |
@ -0,0 +1,13 @@ | |||||
// Copyright 2023 @miketronic -- Mike B <mxb540@gmail.com> | |||||
// SPDX-License-Identifier: GPL-2.0+ | |||||
#pragma once | |||||
# define TAPPING_TERM 160 | |||||
# define TAPPING_TERM_PER_KEY | |||||
# define HOLD_ON_OTHER_KEY_PRESS | |||||
# define QUICK_TAP_TERM TAPPING_TERM / 2 | |||||
# define QUICK_TAP_TERM_PER_KEY | |||||
@ -0,0 +1,290 @@ | |||||
// Copyright 2023 @miketronic -- Mike B <mxb540@gmail.com> | |||||
// SPDX-License-Identifier: GPL-2.0+ | |||||
#include "miketronic.h" | |||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||||
/* Workman | |||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐ | |||||
* │ TAB │ Q │ D │ R │ W │ B │ │ J │ F │ U │ P │ BSPC│ BSPC│ | |||||
* │ ESC │ ESC │ │ │ │ SYM │ │ SYM │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╆━━━━━╅─────┤ ├─────╆━━━━━╅─────┼─────┼─────┼─────┤ | |||||
* │ TAB │ A │ S │ H ┃ T ┃ G │ │ Y ┃ N ┃ E │ O │ I │ │ | |||||
* │SHIFT│ │ │ ┃ EX ┃ │ │ ┃ ┃ │ │ENTER│ENTER│ | |||||
* ├─────┼─────┼─────┼─────╄━━━━━╃─────┤ ├─────╄━━━━━╃─────┼─────┼─────┼─────┤ | |||||
* │SHIFT| Z │ X │ M │ C │ V │ │ K │ L │ SPC │ SPC │ / │ UP | | |||||
* │ │ │ │ │ │ │ │ │ │ , │ . │ │RIGHT| | |||||
* ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤ | |||||
* │ FN │CTRL │ OS │ ALT │LOWER│ │ │ │RAISE│ SS │CLIP │COPY │ DN │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │PASTE│LEFT │ | |||||
* └─────┴─────┴─────┴─────┴─────┴─────┘ └─────┴─────┴─────┴─────┴─────┴─────┘ | |||||
*/ | |||||
[_WM] = LAYOUT_ortho_4x12_wrapper ( | |||||
RGB_TOG, | |||||
_____________WORKMAN_412_001_L_____________, _____________WORKMAN_412_001_R_____________, | |||||
_____________WORKMAN_412_002_L_____________, _____________WORKMAN_412_002_R_____________, | |||||
_____________WORKMAN_412_003_L_____________, _____________WORKMAN_412_003_R_____________, | |||||
_____________WORKMAN_412_004_L_____________, _____________WORKMAN_412_004_R_____________ | |||||
), | |||||
[_QW] = LAYOUT_ortho_4x12_wrapper ( | |||||
RGB_TOG, | |||||
KC_TAB, _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, KC_BSPC, | |||||
KC_ESC, _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, KC_QUOT, | |||||
KC_LSFT, _________________QWERTY_L3_________________, _________________QWERTY_R3_________________, KC_ENT, | |||||
_____________WORKMAN_412_004_L_____________, _____________WORKMAN_412_004_R_____________ | |||||
), | |||||
/* Lower | |||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐ | |||||
* │ │ () │ [] │ /\ │ │ │ │ │ 7 │ 8 │ 9 │ │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╆━━━━━╅─────┤ ├─────╆━━━━━╅─────┼─────┼─────┼─────┤ | |||||
* │ │ @ # │ & % │ ┃ ┃ │ │ ┃ 4 ┃ 5 │ 6 │ │ │ | |||||
* │ │ │ │ ┃ ┃ │ │ ┃ ┃ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╄━━━━━╃─────┤ ├─────╄━━━━━╃─────┼─────┼─────┼─────┤ | |||||
* │ │ │ │ │ │ │ │ 0 │ 1 │ 2 │ 3 │ │ UP │ | |||||
* │ │ │ │ │ │ │ │ │ │ 0 │ │ │RIGHT│ | |||||
* ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤ | |||||
* │ │ │ │ │LOWER│ │ │ │BPSC │ SPC │ . │ │ DN │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ ENT │ │LEFT │ | |||||
* └─────┴─────┴─────┴─────┴─────┴─────┘ └─────┴─────┴─────┴─────┴─────┴─────┘ | |||||
*/ | |||||
[_LOWER] = LAYOUT_ortho_4x12_wrapper ( | |||||
KC_MUTE, | |||||
_______________LOWER_412_L1________________, _______________LOWER_412_R1________________, | |||||
_______________LOWER_412_L2________________, _______________LOWER_412_R2________________, | |||||
_______________LOWER_412_L3________________, _______________LOWER_412_R3________________, | |||||
_______________LOWER_412_L4________________, _______________LOWER_412_R4________________ | |||||
), | |||||
/* RAISE | |||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐ | |||||
* │BOOT │DEBUG│ │ │ │MAKE │ │ │ │ F7 │ F8 │ F9 │ F10 │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╆━━━━━╅─────┤ ├─────╆━━━━━╅─────┼─────┼─────┼─────┤ | |||||
* │ │ RGB | RGB | RGB ┃ RGB ┃ WM │ │ ┃ / \ ┃ F4 │ F5 │ F6 │ F11 │ | |||||
* │ │ TOG │ MOD │ HUI ┃ HUD ┃ │ │ ┃ ┃ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╄━━━━━╃─────┤ ├─────╄━━━━━╃─────┼─────┼─────┼─────┤ | |||||
* │ │ RGB │ RGB │ RGB │ RGB │ QW │ │ │ _ │ F1 | F2 | F3 │ F12 │ | |||||
* │ │ SAI │ SAD │ VAI │ VAD │ │ │ │ - │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤ | |||||
* │ │ │ │ │ │ │ │ │RAISE│ │ │ │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* └─────┴─────┴─────┴─────┴─────┴─────┘ └─────┴─────┴─────┴─────┴─────┴─────┘ | |||||
*/ | |||||
[_RAISE] = LAYOUT_ortho_4x12_wrapper ( | |||||
KC_MUTE, | |||||
_______________RAISE_412_L1________________, _______________RAISE_412_R1________________, | |||||
_______________RAISE_412_L2________________, _______________RAISE_412_R2________________, | |||||
_______________RAISE_412_L3________________, _______________RAISE_412_R3________________, | |||||
_________________BLANK_6___________________, _________________BLANK_6___________________ | |||||
), | |||||
/* EXTRAS | |||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐ | |||||
* │ │ ! │ │ │ │ │ │ │ /\ | [ | ] | ; │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╆━━━━━╅─────┤ ├─────╆━━━━━╅─────┼─────┼─────┼─────┤ | |||||
* │SHIFT│ | |EXTRA┃ ┃ │ │ ┃ @ # ┃ & % | | ' | │ | |||||
* │ │ │ │ ┃ ┃ │ │ ┃ ┃ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╄━━━━━╃─────┤ ├─────╄━━━━━╃─────┼─────┼─────┼─────┤ | |||||
* │ │ │ │ │ │ │ │ │ │ , | . | ? │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* └─────┴─────┴─────┴─────┴─────┴─────┘ └─────┴─────┴─────┴─────┴─────┴─────┘ | |||||
*/ | |||||
[_EX] = LAYOUT_ortho_4x12_wrapper ( | |||||
KC_MUTE, | |||||
______________EXTRAS_412_L1________________, ______________EXTRAS_412_R1________________, | |||||
______________EXTRAS_412_L2________________, ______________EXTRAS_412_R2________________, | |||||
______________EXTRAS_412_L3________________, ______________EXTRAS_412_R3________________, | |||||
______________EXTRAS_412_L4________________, ______________EXTRAS_412_R4________________ | |||||
), | |||||
/* FUNCTION | |||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐ | |||||
* │COPY │CLIP │ SS │ │ │ │ │ │ /\ │ UP │ │ │ DEL │ | |||||
* │PASTE│ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╆━━━━━╅─────┤ ├─────╆━━━━━╅─────┼─────┼─────┼─────┤ | |||||
* │TAB │ M05 | M06 | M07 ┃ M08 ┃ │ │ ┃LEFT ┃DOWN │RIGHT│ │UP │ | |||||
* │SHIFT│ │ │ ┃ ┃ │ │ ┃ ┃ │ │ │RIGHT│ | |||||
* ├─────┼─────┼─────┼─────╄━━━━━╃─────┤ ├─────╄━━━━━╃─────┼─────┼─────┼─────┤ | |||||
* │ │ M01 │ M02 │ M03 │ M04 │ │ │ │ │ , | . | ? │DOWN │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │LEFT │ | |||||
* ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤ | |||||
* │ │RGB1 │RGB2 │RGB3 │RGB4 │ │ │ │ │ │ │ │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* └─────┴─────┴─────┴─────┴─────┴─────┘ └─────┴─────┴─────┴─────┴─────┴─────┘ | |||||
*/ | |||||
[_FN] = LAYOUT_ortho_4x12_wrapper ( | |||||
KC_MUTE, | |||||
_____________FUNCTION_412_L1_______________, _____________FUNCTION_412_R1_______________, | |||||
_____________FUNCTION_412_L2_______________, _____________FUNCTION_412_R2_______________, | |||||
_____________FUNCTION_412_L3_______________, _____________FUNCTION_412_R3_______________, | |||||
_____________FUNCTION_412_L4_______________, _____________FUNCTION_412_R4_______________ | |||||
), | |||||
/* SYMBOLS | |||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐ | |||||
* │ | $ | ^ | < | > │ SYMB│ │ SYMB│ | | [ | ] | - | | | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╆━━━━━╅─────┤ ├─────╆━━━━━╅─────┼─────┼─────┼─────┤ | |||||
* │ | % | : | ; ┃ + ┃ = │ │ ┃ ┃ ( | ) | _ | | | |||||
* │ │ │ │ ┃ ┃ │ │ ┃ ┃ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────╄━━━━━╃─────┤ ├─────╄━━━━━╃─────┼─────┼─────┼─────┤ | |||||
* | | & | ' | " | * | # │ │ ! | ? | / | \ | @ | | | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |||||
* └─────┴─────┴─────┴─────┴─────┴─────┘ └─────┴─────┴─────┴─────┴─────┴─────┘ | |||||
*/ | |||||
[_SYMB] = LAYOUT_ortho_4x12_wrapper ( | |||||
KC_MUTE, | |||||
_______, _____________SYMBOLS_310_L1________________, _____________SYMBOLS_310_R1________________, _______, | |||||
_______, _____________SYMBOLS_310_L2________________, _____________SYMBOLS_310_R2________________, _______, | |||||
_______, _____________SYMBOLS_310_L3________________, _____________SYMBOLS_310_R3________________, _______, | |||||
_________________BLANK_6___________________, _________________BLANK_6___________________ | |||||
) | |||||
}; | |||||
#ifndef NUM_DIRECTIONS | |||||
# define NUM_DIRECTIONS 2 | |||||
#endif | |||||
#if defined(ENCODER_MAP_ENABLE) && defined(KEYBOARD_1upkeyboards_pi40_mit_v1_0) | |||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | |||||
[_WM] = { ENCODER_CCW_CW(LCTL(KC_V), LCTL(KC_C)) }, | |||||
[_QW] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | |||||
[_LOWER] = { ENCODER_CCW_CW(____, ____) }, | |||||
[_RAISE] = { ENCODER_CCW_CW(____, ____) }, | |||||
[_EX] = { ENCODER_CCW_CW(____, ____) }, | |||||
[_FN] = { ENCODER_CCW_CW(RGB_MOD, RGB_RMOD) }, | |||||
[_SYMB] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) } | |||||
}; | |||||
#endif | |||||
#ifdef OLED_ENABLE | |||||
bool oled_task_user(void) { | |||||
// Host Keyboard Layer Status | |||||
oled_write_P(PSTR("Layer: "), false); | |||||
switch (get_highest_layer(layer_state)) { | |||||
case _LOWER: | |||||
oled_write_P(PSTR("LOWER"), false); | |||||
break; | |||||
case _RAISE: | |||||
oled_write_P(PSTR("RAISE"), false); | |||||
break; | |||||
case _EX: | |||||
oled_write_P(PSTR("EXTRA"), false); | |||||
break; | |||||
case _FN: | |||||
oled_write_P(PSTR("FUNCTION"), false); | |||||
break; | |||||
case _WM: | |||||
oled_write_P(PSTR("WORKMAN"), false); | |||||
break; | |||||
case _SYMB: | |||||
oled_write_P(PSTR("SYMBOLS"), false); | |||||
break; | |||||
default: | |||||
// Or use the write_ln shortcut over adding '\n' to the end of your string | |||||
oled_write_ln_P(PSTR("HOME"), false); | |||||
} | |||||
// Host Keyboard LED Status | |||||
// led_t led_state = host_keyboard_led_state(); | |||||
// oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | |||||
// oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | |||||
// oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | |||||
return false; | |||||
} | |||||
#endif | |||||
bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { | |||||
switch (keycode) { | |||||
case SFT_T(KC_A): | |||||
// Do not force the mod-tap key press to be handled as a modifier | |||||
// if any other key was pressed while the mod-tap key is held down. | |||||
return false; | |||||
case TEX: | |||||
return false; | |||||
case CTRLX: | |||||
return false; | |||||
case FNZ: | |||||
return false; | |||||
case MGUI: | |||||
return false; | |||||
case VLOWER: | |||||
return false; | |||||
case KRAISE: | |||||
return false; | |||||
default: | |||||
// Force the dual-role key press to be handled as a modifier if any | |||||
// other key was pressed while the mod-tap key is held down. | |||||
return true; | |||||
} | |||||
} | |||||
#ifdef AUDIO_ENABLE | |||||
float leader_start_song[][2] = SONG(ONE_UP_SOUND); | |||||
float leader_succeed_song[][2] = SONG(ALL_STAR); | |||||
float leader_fail_song[][2] = SONG(RICK_ROLL); | |||||
#endif | |||||
void matrix_scan_user(void); | |||||
void leader_start_user(void) { | |||||
#ifdef AUDIO_ENABLE | |||||
PLAY_SONG(leader_start_song); | |||||
#endif | |||||
} | |||||
bool did_leader_succeed; | |||||
void leader_end_user(void) { | |||||
did_leader_succeed = false; | |||||
if (leader_sequence_one_key(KC_E)) { | |||||
SEND_STRING(SS_LCTL(SS_LSFT("t"))); | |||||
did_leader_succeed = true; | |||||
} else if (leader_sequence_two_keys(KC_E, KC_D)) { | |||||
SEND_STRING(SS_LGUI("r") "cmd\n" SS_LCTL("c")); | |||||
did_leader_succeed = true; | |||||
} else if (leader_sequence_two_keys(KC_A, KC_T)) { | |||||
SEND_STRING("@guidehouse.com"); | |||||
did_leader_succeed = true; | |||||
} | |||||
#ifdef AUDIO_ENABLE | |||||
if (did_leader_succeed) { | |||||
PLAY_SONG(leader_succeed_song); | |||||
} else { | |||||
PLAY_SONG(leader_fail_song); | |||||
} | |||||
#endif | |||||
} |
@ -0,0 +1,25 @@ | |||||
# Common feature for all keyboards | |||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||||
TAP_DANCE_ENABLE = yes # Tap Dance keys | |||||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||||
MACROS_ENABLED = yes | |||||
# Keyboard specific | |||||
AUTO_SHIFT_ENABLE = no | |||||
CONSOLE_ENABLE = no # Console for debug | |||||
COMMAND_ENABLE = no # Commands for debug and configuration | |||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||||
AUDIO_ENABLE = no # Audio output | |||||
MOUSEKEY_ENABLE = no # Mouse keys | |||||
LEADER_ENABLE = yes | |||||
RGB_MATRIX_ENABLE = yes | |||||
RGB_MATRIX_DRIVER = WS2812 | |||||
WS2812_DRIVER = vendor | |||||
ENCODER_ENABLE = yes | |||||
ENCODER_MAP_ENABLE = yes | |||||
OLED_ENABLE = yes | |||||
OLED_DRIVER = SSD1306 |