@ -0,0 +1,77 @@ | |||
{ | |||
"keyboard_name": "Avalanche v1", | |||
"url": "https://github.com/vlkv/avalanche", | |||
"maintainer": "vlkv", | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{"label":"L01", "x":1, "y":0.75}, | |||
{"label":"L02", "x":2, "y":0.75}, | |||
{"label":"L03", "x":3, "y":0.25}, | |||
{"label":"L04", "x":4, "y":0}, | |||
{"label":"L05", "x":5, "y":0.25}, | |||
{"label":"L06", "x":6, "y":0.35}, | |||
{"label":"R06", "x":10, "y":0.35}, | |||
{"label":"R05", "x":11, "y":0.25}, | |||
{"label":"R04", "x":12, "y":0}, | |||
{"label":"R03", "x":13, "y":0.25}, | |||
{"label":"R02", "x":14, "y":0.75}, | |||
{"label":"R01", "x":15, "y":0.75}, | |||
{"label":"L11", "x":1, "y":1.75}, | |||
{"label":"L12", "x":2, "y":1.75}, | |||
{"label":"L13", "x":3, "y":1.25}, | |||
{"label":"L14", "x":4, "y":1}, | |||
{"label":"L15", "x":5, "y":1.25}, | |||
{"label":"L16", "x":6, "y":1.35}, | |||
{"label":"R16", "x":10, "y":1.35}, | |||
{"label":"R15", "x":11, "y":1.25}, | |||
{"label":"R14", "x":12, "y":1}, | |||
{"label":"R13", "x":13, "y":1.25}, | |||
{"label":"R12", "x":14, "y":1.75}, | |||
{"label":"R11", "x":15, "y":1.75}, | |||
{"label":"L20", "x":0, "y":2.85}, | |||
{"label":"L21", "x":1, "y":2.75}, | |||
{"label":"L22", "x":2, "y":2.75}, | |||
{"label":"L23", "x":3, "y":2.25}, | |||
{"label":"L24", "x":4, "y":2}, | |||
{"label":"L25", "x":5, "y":2.25}, | |||
{"label":"L26", "x":6, "y":2.35}, | |||
{"label":"L27", "x":7, "y":2.6}, | |||
{"label":"R27", "x":9, "y":2.6}, | |||
{"label":"R26", "x":10, "y":2.35}, | |||
{"label":"R25", "x":11, "y":2.25}, | |||
{"label":"R24", "x":12, "y":2}, | |||
{"label":"R23", "x":13, "y":2.25}, | |||
{"label":"R22", "x":14, "y":2.75}, | |||
{"label":"R21", "x":15, "y":2.75}, | |||
{"label":"R20", "x":16, "y":2.85}, | |||
{"label":"L31", "x":1, "y":3.75}, | |||
{"label":"L32", "x":2, "y":3.75}, | |||
{"label":"L33", "x":3, "y":3.25}, | |||
{"label":"L34", "x":4, "y":3}, | |||
{"label":"L35", "x":5, "y":3.25}, | |||
{"label":"L36", "x":6, "y":3.35}, | |||
{"label":"L37", "x":7, "y":3.7}, | |||
{"label":"R37", "x":9, "y":3.7}, | |||
{"label":"R36", "x":10, "y":3.35}, | |||
{"label":"R35", "x":11, "y":3.25}, | |||
{"label":"R34", "x":12, "y":3}, | |||
{"label":"R33", "x":13, "y":3.25}, | |||
{"label":"R32", "x":14, "y":3.75}, | |||
{"label":"R31", "x":15, "y":3.75}, | |||
{"label":"L44", "x":3.5, "y":4.45, "w":1.25}, | |||
{"label":"L45", "x":4.75, "y":4.4, "w":1.25}, | |||
{"label":"L46", "x":6, "y":4.45}, | |||
{"label":"L47", "x":7, "y":4.8}, | |||
{"label":"R47", "x":9, "y":4.8}, | |||
{"label":"R46", "x":10, "y":4.45}, | |||
{"label":"R45", "x":11, "y":4.4, "w":1.25}, | |||
{"label":"R44", "x":12.25, "y":4.45, "w":1.25} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,79 @@ | |||
{ | |||
"keyboard_name": "Avalanche v2", | |||
"url": "https://github.com/vlkv/avalanche", | |||
"maintainer": "vlkv", | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{"label":"L00", "x":1, "y":0.75}, | |||
{"label":"L01", "x":2, "y":0.75}, | |||
{"label":"L02", "x":3, "y":0.25}, | |||
{"label":"L03", "x":4, "y":0}, | |||
{"label":"L04", "x":5, "y":0.25}, | |||
{"label":"L05", "x":6, "y":0.35}, | |||
{"label":"R05", "x":10, "y":0.35}, | |||
{"label":"R04", "x":11, "y":0.25}, | |||
{"label":"R03", "x":12, "y":0}, | |||
{"label":"R02", "x":13, "y":0.25}, | |||
{"label":"R01", "x":14, "y":0.75}, | |||
{"label":"R00", "x":15, "y":0.75}, | |||
{"label":"L10", "x":1, "y":1.75}, | |||
{"label":"L11", "x":2, "y":1.75}, | |||
{"label":"L12", "x":3, "y":1.25}, | |||
{"label":"L13", "x":4, "y":1}, | |||
{"label":"L14", "x":5, "y":1.25}, | |||
{"label":"L15", "x":6, "y":1.35}, | |||
{"label":"R15", "x":10, "y":1.35}, | |||
{"label":"R14", "x":11, "y":1.25}, | |||
{"label":"R13", "x":12, "y":1}, | |||
{"label":"R12", "x":13, "y":1.25}, | |||
{"label":"R11", "x":14, "y":1.75}, | |||
{"label":"R10", "x":15, "y":1.75}, | |||
{"label":"L40", "x":0, "y":2.85}, | |||
{"label":"L20", "x":1, "y":2.75}, | |||
{"label":"L21", "x":2, "y":2.75}, | |||
{"label":"L22", "x":3, "y":2.25}, | |||
{"label":"L23", "x":4, "y":2}, | |||
{"label":"L24", "x":5, "y":2.25}, | |||
{"label":"L25", "x":6, "y":2.35}, | |||
{"label":"L26", "x":7, "y":2.6}, | |||
{"label":"R26", "x":9, "y":2.6}, | |||
{"label":"R25", "x":10, "y":2.35}, | |||
{"label":"R24", "x":11, "y":2.25}, | |||
{"label":"R23", "x":12, "y":2}, | |||
{"label":"R22", "x":13, "y":2.25}, | |||
{"label":"R21", "x":14, "y":2.75}, | |||
{"label":"R20", "x":15, "y":2.75}, | |||
{"label":"R40", "x":16, "y":2.85}, | |||
{"label":"L30", "x":1, "y":3.75}, | |||
{"label":"L31", "x":2, "y":3.75}, | |||
{"label":"L32", "x":3, "y":3.25}, | |||
{"label":"L33", "x":4, "y":3}, | |||
{"label":"L34", "x":5, "y":3.25}, | |||
{"label":"L35", "x":6, "y":3.35}, | |||
{"label":"L36", "x":7, "y":3.7}, | |||
{"label":"R36", "x":9, "y":3.7}, | |||
{"label":"R35", "x":10, "y":3.35}, | |||
{"label":"R34", "x":11, "y":3.25}, | |||
{"label":"R33", "x":12, "y":3}, | |||
{"label":"R32", "x":13, "y":3.25}, | |||
{"label":"R31", "x":14, "y":3.75}, | |||
{"label":"R30", "x":15, "y":3.75}, | |||
{"label":"L42", "x":3, "y":4.55}, | |||
{"label":"L43", "x":4, "y":4.45}, | |||
{"label":"L44", "x":5, "y":4.4}, | |||
{"label":"L45", "x":6, "y":4.45}, | |||
{"label":"L46", "x":7, "y":4.8}, | |||
{"label":"R46", "x":9, "y":4.8}, | |||
{"label":"R45", "x":10, "y":4.45}, | |||
{"label":"R44", "x":11, "y":4.4}, | |||
{"label":"R43", "x":12, "y":4.45}, | |||
{"label":"R42", "x":13, "y":4.55} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,79 @@ | |||
{ | |||
"keyboard_name": "Avalanche v3", | |||
"url": "https://github.com/vlkv/avalanche", | |||
"maintainer": "vlkv", | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{"label":"L00", "x":1, "y":0.75}, | |||
{"label":"L01", "x":2, "y":0.75}, | |||
{"label":"L02", "x":3, "y":0.25}, | |||
{"label":"L03", "x":4, "y":0}, | |||
{"label":"L04", "x":5, "y":0.25}, | |||
{"label":"L05", "x":6, "y":0.35}, | |||
{"label":"R05", "x":12, "y":0.35}, | |||
{"label":"R04", "x":13, "y":0.25}, | |||
{"label":"R03", "x":14, "y":0}, | |||
{"label":"R02", "x":15, "y":0.25}, | |||
{"label":"R01", "x":16, "y":0.75}, | |||
{"label":"R00", "x":17, "y":0.75}, | |||
{"label":"L10", "x":1, "y":1.75}, | |||
{"label":"L11", "x":2, "y":1.75}, | |||
{"label":"L12", "x":3, "y":1.25}, | |||
{"label":"L13", "x":4, "y":1}, | |||
{"label":"L14", "x":5, "y":1.25}, | |||
{"label":"L15", "x":6, "y":1.35}, | |||
{"label":"R15", "x":12, "y":1.35}, | |||
{"label":"R14", "x":13, "y":1.25}, | |||
{"label":"R13", "x":14, "y":1}, | |||
{"label":"R12", "x":15, "y":1.25}, | |||
{"label":"R11", "x":16, "y":1.75}, | |||
{"label":"R10", "x":17, "y":1.75}, | |||
{"label":"L40", "x":0, "y":2.85}, | |||
{"label":"L20", "x":1, "y":2.75}, | |||
{"label":"L21", "x":2, "y":2.75}, | |||
{"label":"L22", "x":3, "y":2.25}, | |||
{"label":"L23", "x":4, "y":2}, | |||
{"label":"L24", "x":5, "y":2.25}, | |||
{"label":"L25", "x":6, "y":2.35}, | |||
{"label":"R25", "x":12, "y":2.35}, | |||
{"label":"R24", "x":13, "y":2.25}, | |||
{"label":"R23", "x":14, "y":2}, | |||
{"label":"R22", "x":15, "y":2.25}, | |||
{"label":"R21", "x":16, "y":2.75}, | |||
{"label":"R20", "x":17, "y":2.75}, | |||
{"label":"R40", "x":18, "y":2.85}, | |||
{"label":"L30", "x":1, "y":3.75}, | |||
{"label":"L31", "x":2, "y":3.75}, | |||
{"label":"L32", "x":3, "y":3.25}, | |||
{"label":"L33", "x":4, "y":3}, | |||
{"label":"L34", "x":5, "y":3.25}, | |||
{"label":"L35", "x":6, "y":3.35}, | |||
{"label":"L36", "x":7, "y":3.7}, | |||
{"label":"L26", "x":8, "y":4.05}, | |||
{"label":"R26", "x":10, "y":4.05}, | |||
{"label":"R36", "x":11, "y":3.7}, | |||
{"label":"R35", "x":12, "y":3.35}, | |||
{"label":"R34", "x":13, "y":3.25}, | |||
{"label":"R33", "x":14, "y":3}, | |||
{"label":"R32", "x":15, "y":3.25}, | |||
{"label":"R31", "x":16, "y":3.75}, | |||
{"label":"R30", "x":17, "y":3.75}, | |||
{"label":"L42", "x":3.4, "y":4.55}, | |||
{"label":"L43", "x":4.6, "y":4.45}, | |||
{"label":"L44", "x":5.8, "y":4.4}, | |||
{"label":"L45", "x":7, "y":4.7}, | |||
{"label":"L46", "x":8, "y":5.05}, | |||
{"label":"R46", "x":10, "y":5.05}, | |||
{"label":"R45", "x":11, "y":4.7}, | |||
{"label":"R44", "x":12.2, "y":4.4}, | |||
{"label":"R43", "x":13.4, "y":4.45}, | |||
{"label":"R42", "x":14.6, "y":4.55} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,104 @@ | |||
/* Copyright 2021 Mss Studio | |||
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll> | |||
* | |||
* 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 0x4D4B | |||
#define PRODUCT_ID 0x6064 | |||
#define DEVICE_VER 0x0001 | |||
#define MANUFACTURER Mss Studio | |||
#define PRODUCT M64 RGB | |||
/* key matrix size */ | |||
#define MATRIX_ROWS 5 | |||
#define MATRIX_COLS 14 | |||
/* key matrix pins */ | |||
#define MATRIX_ROW_PINS { B3, B4, A0, A2, A3 } | |||
#define MATRIX_COL_PINS { B0, B1, B2, B10, A7, A6, A5, A4, B5, B6, A1, B7, B8, B9 } | |||
/* COL2ROW or ROW2COL */ | |||
#define DIODE_DIRECTION COL2ROW | |||
/* Set 0 if debouncing isn't needed */ | |||
#define DEBOUNCE 5 | |||
/* Forcing to use NKRO instead 6KRO */ | |||
#define FORCE_NKRO | |||
/* Change larger keys per scan for elite gaming */ | |||
#define QMK_KEYS_PER_SCAN 12 | |||
#ifdef RGB_MATRIX_ENABLE | |||
#define DRIVER_LED_TOTAL 76 | |||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | |||
#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | |||
#define RGB_MATRIX_KEYPRESSES | |||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS | |||
/* RGB Matrix config */ | |||
#define RGB_DI_PIN B15 | |||
/* RGB Matrix effect */ | |||
#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_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 |
@ -0,0 +1,79 @@ | |||
{ | |||
"keyboard_name": "M64 RGB", | |||
"url": "", | |||
"maintainer": "HorrorTroll", | |||
"layouts": { | |||
"LAYOUT_64_ansi": { | |||
"layout": [ | |||
{"label":"Esc", "x":0, "y":0}, | |||
{"label":"1!", "x":1, "y":0}, | |||
{"label":"2@", "x":2, "y":0}, | |||
{"label":"3#", "x":3, "y":0}, | |||
{"label":"4$", "x":4, "y":0}, | |||
{"label":"5%", "x":5, "y":0}, | |||
{"label":"6^", "x":6, "y":0}, | |||
{"label":"7&", "x":7, "y":0}, | |||
{"label":"8*", "x":8, "y":0}, | |||
{"label":"9(", "x":9, "y":0}, | |||
{"label":"0)", "x":10, "y":0}, | |||
{"label":"-_", "x":11, "y":0}, | |||
{"label":"=+", "x":12, "y":0}, | |||
{"label":"Backspace", "x":13, "y":0, "w":2}, | |||
{"label":"Tab", "x":0, "y":1, "w":1.5}, | |||
{"label":"Q", "x":1.5, "y":1}, | |||
{"label":"W", "x":2.5, "y":1}, | |||
{"label":"E", "x":3.5, "y":1}, | |||
{"label":"R", "x":4.5, "y":1}, | |||
{"label":"T", "x":5.5, "y":1}, | |||
{"label":"Y", "x":6.5, "y":1}, | |||
{"label":"U", "x":7.5, "y":1}, | |||
{"label":"I", "x":8.5, "y":1}, | |||
{"label":"O", "x":9.5, "y":1}, | |||
{"label":"P", "x":10.5, "y":1}, | |||
{"label":"[{", "x":11.5, "y":1}, | |||
{"label":"]}", "x":12.5, "y":1}, | |||
{"label":"\\|", "x":13.5, "y":1, "w":1.5}, | |||
{"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | |||
{"label":"A", "x":1.75, "y":2}, | |||
{"label":"S", "x":2.75, "y":2}, | |||
{"label":"D", "x":3.75, "y":2}, | |||
{"label":"F", "x":4.75, "y":2}, | |||
{"label":"G", "x":5.75, "y":2}, | |||
{"label":"H", "x":6.75, "y":2}, | |||
{"label":"J", "x":7.75, "y":2}, | |||
{"label":"K", "x":8.75, "y":2}, | |||
{"label":"L", "x":9.75, "y":2}, | |||
{"label":";:", "x":10.75, "y":2}, | |||
{"label":"'\"", "x":11.75, "y":2}, | |||
{"label":"Enter", "x":12.75, "y":2, "w":2.25}, | |||
{"label":"Shift", "x":0, "y":3, "w":2}, | |||
{"label":"Z", "x":2, "y":3}, | |||
{"label":"X", "x":3, "y":3}, | |||
{"label":"C", "x":4, "y":3}, | |||
{"label":"V", "x":5, "y":3}, | |||
{"label":"B", "x":6, "y":3}, | |||
{"label":"N", "x":7, "y":3}, | |||
{"label":"M", "x":8, "y":3}, | |||
{"label":",<", "x":9, "y":3}, | |||
{"label":".>", "x":10, "y":3}, | |||
{"label":"/?", "x":11, "y":3}, | |||
{"label":"Shift", "x":12, "y":3}, | |||
{"label":"\u2191", "x":13, "y":3}, | |||
{"label":"Delete", "x":14, "y":3}, | |||
{"label":"Ctrl", "x":0, "y":4, "w":1.25}, | |||
{"label":"Win", "x":1.25, "y":4, "w":1.25}, | |||
{"label":"Alt", "x":2.5, "y":4, "w":1.25}, | |||
{"label":"Space", "x":3.75, "y":4, "w":6.25}, | |||
{"label":"Alt", "x":10, "y":4}, | |||
{"label":"Fn", "x":11, "y":4}, | |||
{"label":"\u2190", "x":12, "y":4}, | |||
{"label":"\u2193", "x":13, "y":4}, | |||
{"label":"\u2192", "x":14, "y":4} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,184 @@ | |||
/* Copyright 2021 Mss Studio | |||
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll> | |||
* | |||
* 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 | |||
#include <lib/lib8tion/lib8tion.h> | |||
// Each layer gets a name for readability, which is then used in the keymap matrix below. | |||
// The underscores don't mean anything - you can have a layer called STUFF or any other name. | |||
// Layer names don't all need to be of the same length, obviously, and you can also skip them | |||
// entirely and just use numbers. | |||
enum layer_names { | |||
_BASE, | |||
_FN, | |||
}; | |||
enum user_rgb_mode { | |||
RGB_MODE_ALL, | |||
RGB_MODE_KEYLIGHT, | |||
RGB_MODE_UNDERGLOW, | |||
RGB_MODE_NONE, | |||
}; | |||
typedef union { | |||
uint32_t raw; | |||
struct { | |||
uint8_t rgb_mode :8; | |||
}; | |||
} user_config_t; | |||
user_config_t user_config; | |||
// enum layer_keycodes { }; | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
/* | |||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
│Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Bakspc│ | |||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
│ Tab │ q │ w │ e │ r │ t │ y │ u │ i │ o │ p │ [ │ ] │ \ │ | |||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
│ Caps │ a │ s │ d │ f │ g │ h │ j │ k │ l │ ; │ ' │ Enter │ | |||
├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
│LShift │ z │ x │ c │ v │ b │ n │ m │ , │ . │ / │Rft│ ↑ │Del│ | |||
├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
│LCrl│GUI │LAlt│ Space │RAt│Fn │ ← │ ↓ │ → │ | |||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
│ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │ | |||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
│ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ { │ } │ | │ | |||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
│ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ : │ " │ │ | |||
├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
│LShift │ Z │ X │ C │ V │ B │ N │ M │ < │ > │ ? │Rft│ │ │ | |||
├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
│ │ │ │ │ │ │ │ │ │ | |||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
*/ | |||
/* Row: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 */ | |||
[_BASE] = LAYOUT_64_ansi( | |||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | |||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DEL, | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_LEFT, KC_DOWN, KC_RIGHT | |||
), | |||
/* | |||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
│ ` │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ Delete│ | |||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
│Reset│ │ │ │ │ │ │ │Ins│ │PSc│ │Hui│ Mod │ | |||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
│ │ │ │ │ │ │ │ │ │Tog│ │ │ │ | |||
├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
│ │ │ │Cal│ │ │ │Mut│VoD│VoU│ │ │Vai│ │ | |||
├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
│ │ │ │ │ │ │Spd│Vad│Spi│ | |||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
*/ | |||
/* Row: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 */ | |||
[_FN] = LAYOUT_64_ansi( | |||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | |||
RESET, _______, _______, _______, _______, _______, _______, _______, KC_INS, _______, KC_PSCR, _______, RGB_HUI, RGB_MOD, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, _______, _______, _______, | |||
_______, _______, _______, KC_CALC, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_VAI, _______, | |||
_______, _______, _______, _______, _______, _______, RGB_SPD, RGB_VAD, RGB_SPI | |||
), | |||
}; | |||
void keyboard_post_init_user(void) { | |||
user_config.raw = eeconfig_read_user(); | |||
switch (user_config.rgb_mode) { | |||
case RGB_MODE_ALL: | |||
rgb_matrix_set_flags(LED_FLAG_ALL); | |||
rgb_matrix_enable_noeeprom(); | |||
break; | |||
case RGB_MODE_KEYLIGHT: | |||
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
break; | |||
case RGB_MODE_UNDERGLOW: | |||
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
break; | |||
case RGB_MODE_NONE: | |||
rgb_matrix_set_flags(LED_FLAG_NONE); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
break; | |||
} | |||
} | |||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
switch (keycode) { | |||
case RGB_TOG: | |||
if (record->event.pressed) { | |||
switch (rgb_matrix_get_flags()) { | |||
case LED_FLAG_ALL: { | |||
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
user_config.rgb_mode = RGB_MODE_KEYLIGHT; | |||
} | |||
break; | |||
case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR): { | |||
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
user_config.rgb_mode = RGB_MODE_UNDERGLOW; | |||
} | |||
break; | |||
case (LED_FLAG_UNDERGLOW): { | |||
rgb_matrix_set_flags(LED_FLAG_NONE); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
user_config.rgb_mode = RGB_MODE_NONE; | |||
} | |||
break; | |||
default: { | |||
rgb_matrix_set_flags(LED_FLAG_ALL); | |||
rgb_matrix_enable_noeeprom(); | |||
user_config.rgb_mode = RGB_MODE_ALL; | |||
} | |||
break; | |||
} | |||
eeconfig_update_user(user_config.raw); | |||
} | |||
return false; | |||
} | |||
return true; | |||
} | |||
void rgb_matrix_indicators_user(void) { | |||
HSV hsv = rgb_matrix_config.hsv; | |||
uint8_t time = scale16by8(g_rgb_timer, qadd8(32, 1)); | |||
hsv.h = time; | |||
RGB rgb = hsv_to_rgb(hsv); | |||
if ((rgb_matrix_get_flags() & LED_FLAG_KEYLIGHT)) { | |||
if (host_keyboard_led_state().caps_lock) { | |||
rgb_matrix_set_color(28, rgb.r, rgb.g, rgb.b); | |||
} | |||
} else { | |||
if (host_keyboard_led_state().caps_lock) { | |||
rgb_matrix_set_color(28, rgb.r, rgb.g, rgb.b); | |||
} else { | |||
rgb_matrix_set_color(28, 0, 0, 0); | |||
} | |||
} | |||
} |
@ -0,0 +1,3 @@ | |||
# Default Layout | |||
Keymap is default 64 qwerty, 64% layout |
@ -0,0 +1,20 @@ | |||
/* Copyright 2021 Mss Studio | |||
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll> | |||
* | |||
* 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 DYNAMIC_KEYMAP_LAYER_COUNT 2 |
@ -0,0 +1,184 @@ | |||
/* Copyright 2021 Mss Studio | |||
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll> | |||
* | |||
* 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 | |||
#include <lib/lib8tion/lib8tion.h> | |||
// Each layer gets a name for readability, which is then used in the keymap matrix below. | |||
// The underscores don't mean anything - you can have a layer called STUFF or any other name. | |||
// Layer names don't all need to be of the same length, obviously, and you can also skip them | |||
// entirely and just use numbers. | |||
enum layer_names { | |||
_BASE, | |||
_FN, | |||
}; | |||
enum user_rgb_mode { | |||
RGB_MODE_ALL, | |||
RGB_MODE_KEYLIGHT, | |||
RGB_MODE_UNDERGLOW, | |||
RGB_MODE_NONE, | |||
}; | |||
typedef union { | |||
uint32_t raw; | |||
struct { | |||
uint8_t rgb_mode :8; | |||
}; | |||
} user_config_t; | |||
user_config_t user_config; | |||
// enum layer_keycodes { }; | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
/* | |||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
│Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Bakspc│ | |||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
│ Tab │ q │ w │ e │ r │ t │ y │ u │ i │ o │ p │ [ │ ] │ \ │ | |||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
│ Caps │ a │ s │ d │ f │ g │ h │ j │ k │ l │ ; │ ' │ Enter │ | |||
├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
│LShift │ z │ x │ c │ v │ b │ n │ m │ , │ . │ / │Rft│ ↑ │Del│ | |||
├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
│LCrl│GUI │LAlt│ Space │RAt│Fn │ ← │ ↓ │ → │ | |||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
│ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │ | |||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
│ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ { │ } │ | │ | |||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
│ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ : │ " │ │ | |||
├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
│LShift │ Z │ X │ C │ V │ B │ N │ M │ < │ > │ ? │Rft│ │ │ | |||
├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
│ │ │ │ │ │ │ │ │ │ | |||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
*/ | |||
/* Row: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 */ | |||
[_BASE] = LAYOUT_64_ansi( | |||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | |||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DEL, | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_LEFT, KC_DOWN, KC_RIGHT | |||
), | |||
/* | |||
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
│ ` │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ Delete│ | |||
├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
│Reset│ │ │ │ │ │ │ │Ins│ │PSc│ │Hui│ Mod │ | |||
├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
│ │ │ │ │ │ │ │ │ │Tog│ │ │ │ | |||
├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
│ │ │ │Cal│ │ │ │Mut│VoD│VoU│ │ │Vai│ │ | |||
├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
│ │ │ │ │ │ │Spd│Vad│Spi│ | |||
└────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
*/ | |||
/* Row: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 */ | |||
[_FN] = LAYOUT_64_ansi( | |||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | |||
RESET, _______, _______, _______, _______, _______, _______, _______, KC_INS, _______, KC_PSCR, _______, RGB_HUI, RGB_MOD, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, _______, _______, _______, | |||
_______, _______, _______, KC_CALC, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, RGB_VAI, _______, | |||
_______, _______, _______, _______, _______, _______, RGB_SPD, RGB_VAD, RGB_SPI | |||
), | |||
}; | |||
void keyboard_post_init_user(void) { | |||
user_config.raw = eeconfig_read_user(); | |||
switch (user_config.rgb_mode) { | |||
case RGB_MODE_ALL: | |||
rgb_matrix_set_flags(LED_FLAG_ALL); | |||
rgb_matrix_enable_noeeprom(); | |||
break; | |||
case RGB_MODE_KEYLIGHT: | |||
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
break; | |||
case RGB_MODE_UNDERGLOW: | |||
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
break; | |||
case RGB_MODE_NONE: | |||
rgb_matrix_set_flags(LED_FLAG_NONE); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
break; | |||
} | |||
} | |||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
switch (keycode) { | |||
case RGB_TOG: | |||
if (record->event.pressed) { | |||
switch (rgb_matrix_get_flags()) { | |||
case LED_FLAG_ALL: { | |||
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
user_config.rgb_mode = RGB_MODE_KEYLIGHT; | |||
} | |||
break; | |||
case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR): { | |||
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
user_config.rgb_mode = RGB_MODE_UNDERGLOW; | |||
} | |||
break; | |||
case (LED_FLAG_UNDERGLOW): { | |||
rgb_matrix_set_flags(LED_FLAG_NONE); | |||
rgb_matrix_set_color_all(0, 0, 0); | |||
user_config.rgb_mode = RGB_MODE_NONE; | |||
} | |||
break; | |||
default: { | |||
rgb_matrix_set_flags(LED_FLAG_ALL); | |||
rgb_matrix_enable_noeeprom(); | |||
user_config.rgb_mode = RGB_MODE_ALL; | |||
} | |||
break; | |||
} | |||
eeconfig_update_user(user_config.raw); | |||
} | |||
return false; | |||
} | |||
return true; | |||
} | |||
void rgb_matrix_indicators_user(void) { | |||
HSV hsv = rgb_matrix_config.hsv; | |||
uint8_t time = scale16by8(g_rgb_timer, qadd8(32, 1)); | |||
hsv.h = time; | |||
RGB rgb = hsv_to_rgb(hsv); | |||
if ((rgb_matrix_get_flags() & LED_FLAG_KEYLIGHT)) { | |||
if (host_keyboard_led_state().caps_lock) { | |||
rgb_matrix_set_color(28, rgb.r, rgb.g, rgb.b); | |||
} | |||
} else { | |||
if (host_keyboard_led_state().caps_lock) { | |||
rgb_matrix_set_color(28, rgb.r, rgb.g, rgb.b); | |||
} else { | |||
rgb_matrix_set_color(28, 0, 0, 0); | |||
} | |||
} | |||
} |
@ -0,0 +1,3 @@ | |||
# Default Layout with VIA | |||
Keymap is default 64 qwerty, 64% layout |
@ -0,0 +1 @@ | |||
VIA_ENABLE = yes |
@ -0,0 +1,50 @@ | |||
/* Copyright 2021 Mss Studio | |||
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll> | |||
* | |||
* 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 "m64_rgb.h" | |||
#ifdef RGB_MATRIX_ENABLE | |||
led_config_t g_led_config = { { | |||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }, | |||
{ 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }, | |||
{ 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, NO_LED, 40 }, | |||
{ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54 }, | |||
{ 55, 56, 57, NO_LED, NO_LED, 58, NO_LED, NO_LED, NO_LED, 59, 60, 61, 62, 63 } | |||
}, { | |||
// Key matrix (0 -> 63) | |||
{0 , 0}, {16 , 0}, {32 , 0}, {48 , 0}, {64 , 0}, {80 , 0}, {96 , 0}, {112, 0}, {128, 0}, {144, 0}, {160, 0}, {176, 0}, {192, 0}, {216, 0}, | |||
{4 , 16}, {24 , 16}, {40 , 16}, {56 , 16}, {72 , 16}, {88 , 16}, {104, 16}, {120, 16}, {136, 16}, {152, 16}, {168, 16}, {184, 16}, {200, 16}, {220, 16}, | |||
{6 , 32}, {28 , 32}, {44 , 32}, {60 , 32}, {76 , 32}, {92 , 32}, {108, 32}, {124, 32}, {140, 32}, {156, 32}, {172, 32}, {188, 32}, {214, 32}, | |||
{8 , 48}, {32 , 48}, {48 , 48}, {64 , 48}, {80 , 48}, {96 , 48}, {112, 48}, {128, 48}, {144, 48}, {160, 48}, {176, 48}, {192, 48}, {208, 48}, {224, 48}, | |||
{2 , 64}, {22 , 64}, {42 , 64}, {102, 64}, {160, 64}, {176, 64}, {192, 64}, {208, 64}, {224, 64}, | |||
// Underglow (64 -> 75) | |||
{216, 56}, {181, 57}, {138, 59}, {105, 58}, {52 , 60}, {10 , 60}, | |||
{20 , 12}, {54 , 12}, {102, 10}, {145, 13}, {182, 9}, {211, 10}, | |||
}, { | |||
// Key matrix (0 -> 63) | |||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | |||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | |||
8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | |||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4, | |||
1, 1, 1, 4, 1, 1, 4, 4, 4, | |||
// Underglow (64 -> 75) | |||
2, 2, 2, 2, 2, 2, | |||
2, 2, 2, 2, 2, 2 | |||
} }; | |||
#endif |
@ -0,0 +1,49 @@ | |||
/* Copyright 2021 Mss Studio | |||
* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll> | |||
* | |||
* 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 XXX KC_NO | |||
/* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | |||
* │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0A │0B │0C │0D │ | |||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | |||
* │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1A │1B │1C │1D │ | |||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | |||
* │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2A │2B │2D │ | |||
* ├──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬───┬───┤ | |||
* │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3A │3B │3C │3D │ | |||
* ├────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┼───┼───┼───┼───┤ | |||
* │40 │41 │42 │45 │49 │4A │4B │4C │4D │ | |||
* └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┘ | |||
*/ | |||
#define LAYOUT_64_ansi( \ | |||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | |||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | |||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | |||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \ | |||
K40, K41, K42, K45, K49, K4A, K4B, K4C, K4D \ | |||
) { \ | |||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | |||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | |||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, XXX, K2D }, \ | |||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \ | |||
{ K40, K41, K42, XXX, XXX, K45, XXX, XXX, XXX, K49, K4A, K4B, K4C, K4D } \ | |||
} |
@ -0,0 +1,24 @@ | |||
# M64 RGB | |||
Support STM32F072CBU6 keyboard. | |||
* Keyboard Maintainer: [HorrorTroll](https://github.com/HorrorTroll) | |||
* Hardware Supported: STM32F072CBU6 | |||
Make example for this keyboard (after setting up your build environment): | |||
make mss_studio/m64_rgb:default | |||
Flashing example for this keyboard: | |||
make mss_studio/m64_rgb: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 3 ways: | |||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (Esc key) and plug in the keyboard | |||
* **Physical reset button**: Press and hold the button on the back of the PCB, then plug in the keyboard | |||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available |
@ -0,0 +1,22 @@ | |||
# MCU name | |||
MCU = STM32F072 | |||
# Bootloader selection | |||
BOOTLOADER = stm32-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 = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
# RGB Matrix enabled | |||
RGB_MATRIX_ENABLE = yes | |||
RGB_MATRIX_DRIVER = WS2812 |
@ -0,0 +1,64 @@ | |||
/* | |||
Copyright 2022 Gondolindrim | |||
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 0x8384 // SR for Smith and RUne | |||
#define PRODUCT_ID 0x1652 // 165 rev 2 | |||
#define DEVICE_VER 0x0001 | |||
#define MANUFACTURER SmithRune | |||
#define PRODUCT Iron156R2 | |||
#define MATRIX_ROWS 5 | |||
#define MATRIX_COLS 15 | |||
#define MATRIX_COL_PINS { A3 , B8 , B9 , B1 , B0 , B5 , B4 , B3 , A15, A8 , A1 , A0 , C15, C14, C13} | |||
#define MATRIX_ROW_PINS { B10, A10, A2 , A5 , A7 } | |||
#define DIODE_DIRECTION COL2ROW | |||
#define LED_CAPS_LOCK_PIN A4 | |||
#define DEBOUNCE 5 | |||
#define LOCKING_SUPPORT_ENABLE | |||
#define LOCKING_RESYNC_ENABLE | |||
//#define ALL_RGBS // Define the RGB option here | |||
//#define LINE_RGBS | |||
//#define RUNE_RGBS | |||
#define LUKE_RGBS | |||
#define RGBLIGHT_LED_MAP {17 , 0 , 1 , 2 , 3 , 18 , 20 , 16 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 19 , 12 , 13 , 14 , 15 , 21} | |||
// D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D60, D61, D62, D63, D64, D65, D66, D67, D68, D69} | |||
#ifdef RUNE_RGBS | |||
# undef RGBLIGHT_LED_MAP | |||
# define RGBLIGHT_LED_MAP {1 , 6 , 7 , 8 , 9 , 2 , 5 , 0 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 3 , 4 , 18 , 19 , 20 , 21 } | |||
// D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D60, D61, D62, D63, D64, D65, D66, D67, D68, D69} | |||
#endif | |||
#ifdef LUKE_RGBS | |||
# undef RGBLIGHT_LED_MAP | |||
# define RGBLIGHT_LED_MAP {21 , 2 , 3 , 4 , 5 , 1 , 20 , 0 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 19 , 14 , 15 , 16 , 17 , 18 } | |||
// D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D60, D61, D62, D63, D64, D65, D66, D67, D68, D69} | |||
#endif | |||
#define RGBLIGHT_DEFAULT_VAL 0 |
@ -0,0 +1,40 @@ | |||
/* | |||
Copyright 2020 Gondolindrim | |||
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 BACKLIGHT_PIN A6 | |||
#define BACKLIGHT_PWM_DRIVER PWMD3 | |||
#define BACKLIGHT_PWM_CHANNEL 1 | |||
#define BACKLIGHT_PAL_MODE 1 | |||
#define BACKLIGHT_LEVELS 20 | |||
#define BACKLIGHT_BREATHING | |||
#define BREATHING_PERIOD 5 | |||
#define BACKLIGHT_ON_STATE 1 | |||
#define RGB_DI_PIN B15 | |||
#define RGBLED_NUM 22 | |||
#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 | |||
#define RGBLIGHT_EFFECT_TWINKLE |
@ -0,0 +1,24 @@ | |||
/* Copyright 2022 QMK | |||
* | |||
* 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 HAL_USE_PWM TRUE | |||
#define HAL_USE_PAL TRUE | |||
#define HAL_USE_SPI TRUE | |||
#include_next <halconf.h> |
@ -0,0 +1,25 @@ | |||
/* Copyright 2020 QMK | |||
* | |||
* 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_next <mcuconf.h> | |||
#undef STM32_PWM_USE_TIM3 | |||
#define STM32_PWM_USE_TIM3 TRUE | |||
#undef STM32_SPI_USE_SPI2 | |||
#define STM32_SPI_USE_SPI2 TRUE |
@ -0,0 +1,4 @@ | |||
# MCU name | |||
MCU = STM32F072 | |||
BACKLIGHT_ENABLE = yes | |||
BACKLIGHT_DRIVER = pwm |
@ -0,0 +1,48 @@ | |||
/* | |||
Copyright 2022 Gondolindrim | |||
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 BACKLIGHT_PIN A6 | |||
#define BACKLIGHT_PWM_DRIVER PWMD3 | |||
#define BACKLIGHT_PWM_CHANNEL 1 | |||
#define BACKLIGHT_PAL_MODE 2 | |||
#define BACKLIGHT_LEVELS 20 | |||
#define BACKLIGHT_BREATHING | |||
#define BREATHING_PERIOD 5 | |||
#define BACKLIGHT_ON_STATE 1 | |||
#define STM32_HSECLK 8000000 | |||
#define RGB_DI_PIN B15 | |||
#define RGBLED_NUM 22 | |||
#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 | |||
#define RGBLIGHT_EFFECT_TWINKLE | |||
#define WS2812_PWM_COMPLEMENTARY_OUTPUT | |||
#define WS2812_PWM_DRIVER PWMD1 | |||
#define WS2812_PWM_CHANNEL 3 | |||
#define WS2812_PWM_PAL_MODE 1 | |||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5 | |||
#define WS2812_DMA_CHANNEL 6 |
@ -0,0 +1,24 @@ | |||
/* Copyright 2020 QMK | |||
* | |||
* 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 HAL_USE_PWM TRUE | |||
#define HAL_USE_PAL TRUE | |||
#define HAL_USE_I2C TRUE | |||
#include_next <halconf.h> |
@ -0,0 +1,44 @@ | |||
/* Copyright 2020 QMK | |||
* | |||
* 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_next <mcuconf.h> | |||
#undef STM32_PLLM_VALUE | |||
#undef STM32_PLLN_VALUE | |||
#undef STM32_PLLP_VALUE | |||
#undef STM32_PLLQ_VALUE | |||
#undef STM32_PPRE1 | |||
#undef STM32_PPRE2 | |||
#define STM32_PLLM_VALUE 4 | |||
#define STM32_PLLN_VALUE 72 | |||
#define STM32_PLLP_VALUE 2 | |||
#define STM32_PLLQ_VALUE 3 | |||
#define STM32_PPRE1 STM32_PPRE1_DIV2 | |||
#define STM32_PPRE2 STM32_PPRE2_DIV1 | |||
#undef STM32_I2C_USE_I2C1 | |||
#define STM32_I2C_USE_I2C1 TRUE | |||
#undef STM32_PWM_USE_ADVANCED | |||
#define STM32_PWM_USE_ADVANCED TRUE | |||
#undef STM32_PWM_USE_TIM3 | |||
#define STM32_PWM_USE_TIM3 TRUE | |||
#undef STM32_PWM_USE_TIM1 | |||
#define STM32_PWM_USE_TIM1 TRUE |
@ -0,0 +1,5 @@ | |||
MCU = STM32F411 | |||
EEPROM_DRIVER = i2c | |||
BACKLIGHT_ENABLE = yes | |||
BACKLIGHT_DRIVER = pwm | |||
WS2812_DRIVER = pwm |
@ -0,0 +1,37 @@ | |||
/* Copyright 2020 Gondolindrim | |||
* | |||
* 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 "iron165r2.h" | |||
void board_init(void) { | |||
setPinInput(B6); | |||
setPinInput(B7); | |||
#if defined (LINE_RGBS) | |||
rgblight_set_effect_range(0,16); | |||
#elif defined (RUNE_RGBS) | |||
rgblight_set_effect_range(0,5); | |||
#elif defined (LUKE_RGBS) | |||
rgblight_set_effect_range(0,2); | |||
#endif | |||
} | |||
#define LED_PIN_ON_STATE 1 | |||
bool led_update_kb(led_t led_state) { | |||
bool res = led_update_user(led_state); | |||
if(res) writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock); | |||
return res; | |||
} |
@ -0,0 +1,43 @@ | |||
/* Copyright 2022 Gondolindrim | |||
* | |||
* 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 ___ KC_NO | |||
#include "quantum.h" | |||
/* This is a shortcut to help you visually see your layout. | |||
* | |||
* The first section contains all of the arguments representing the physical | |||
* layout of the board and position of the Keys. | |||
* | |||
* The second converts the arguments into a two-dimensional array which | |||
* represents the switch matrix. | |||
*/ | |||
#define LAYOUT( \ | |||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E , \ | |||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E , \ | |||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E , \ | |||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E , \ | |||
K40, K41, K42, K46, K49, K4A, K4B, K4C, K4D, K4E )\ | |||
{\ | |||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | |||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | |||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | |||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | |||
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, K49, K4A, K4B, K4C, K4D, K4E } \ | |||
} |
@ -0,0 +1,47 @@ | |||
/* Copyright 2020 Gondolindrim | |||
* | |||
* 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( /* Base */ | |||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENTER,KC_PGDN, | |||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP, KC_END, | |||
KC_LCTRL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL | |||
), | |||
[1] = LAYOUT( | |||
RESET , 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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | |||
), | |||
[2] = LAYOUT( | |||
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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | |||
), | |||
[3] = LAYOUT( | |||
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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | |||
), | |||
}; |
@ -0,0 +1,47 @@ | |||
/* Copyright 2020 Gondolindrim | |||
* | |||
* 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( /* Base */ | |||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENTER,KC_PGDN, | |||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP, KC_END, | |||
KC_LCTRL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL | |||
), | |||
[1] = LAYOUT( | |||
RESET , 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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | |||
), | |||
[2] = LAYOUT( | |||
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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | |||
), | |||
[3] = LAYOUT( | |||
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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | |||
), | |||
}; |
@ -0,0 +1 @@ | |||
VIA_ENABLE = yes |
@ -0,0 +1,64 @@ | |||
# Iron 165R2 QMK folder | |||
![Iron165R2](https://i.imgur.com/jPamxKu.jpg) | |||
## Introduction | |||
This is the QMK Firmware repository for the Iron165 Round 2 PCB, a keyboard designed by [Smith and Rune](https://smithrune.com/) and PCB designed by [Gondolindrim](http://github.com/Gondolindrim), who is also the firwmare maintainer. | |||
The Iron 165R2 PCB is a 65% PCB with support for a myriad of alternative layouts, including a 7U bottom row and ISO. It also supports in-switch single-color LEDs and RGB LEDs for underglow light. | |||
As of November 2021, the only way to obtain an Iron165 was through the [Group Buy](https://geekhack.org/index.php?topic=110985) which is already over; extra units are still to be sold. | |||
## How to flash | |||
### Enter bootloader | |||
The DFU state in the bootloader can be accessed in 3 ways: | |||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key, escape in the default keymap) and plug in the keyboard; | |||
* **Physical reset button**: press the button on the front of the PCB, next to caps lock, for at least five seconds; | |||
* **Keycode in layout**: Press the key mapped to `RESET`; in the default layout, that is top left key ('escape') in layer 1. | |||
### How to compile and flash | |||
The 165R2 PCB was prototyped and tested using two microcontrollers: STM32F072 and STM32F411. Most production-run units were manufactured with the latter. | |||
After checking what PCB you own and setting up your build environment, you can compile the Iron 165R2 default keymap by using one of the options below. | |||
make smithrune/iron165r2/165r2_f072:default | |||
make smithrune/iron165r2/165r2_f411:default | |||
And use dfu-util in the command line or through a GUI like QMK toolbox to upload the firmware to the PCB. To directly flash the PCB after it is put into a DFU state, use: | |||
make smithrune/iron165r2/165r2_f072:default:flash | |||
make smithrune/iron165r2/165r2_f411: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). | |||
## The "runes RGB" feature | |||
The firmware for 165R2 allows the user to control the RGBs on the PCB through limiting their span according to the usage. There are four possible usages: | |||
- "Rune RGBs" where only the RGBs under the SnR rune logo on the 165R2 case are lit up; | |||
![runergbs](https://i.imgur.com/HzpnsdL.jpg) | |||
- "Line RGBs" where only the RGBs on the two alpha cluster rows are lit up; | |||
![linergbs](https://i.imgur.com/A1YThUr.jpg) | |||
- "Luke RGBs" where the line RGBs and D25-D23 are on (to avoid hotspotting on the rune backplate); and | |||
![lukergbs](https://i.imgur.com/PnuuX3F.jpg) | |||
- "All RGBs" where all RGBs are turned on. | |||
![allrgbs](https://i.imgur.com/cX9KnTP.jpg) | |||
In order to use the "rune RGBs" option, you can turn this option on by un-commenting the respective line on the corresponding `config.h` file: | |||
#define RUNE_RGBS | |||
If you want to use the "line RGBs" option, you can un-comment the respective lone on the corresponding `config.h` file: | |||
#define LINES_RGBS | |||
If you want to use the "luke RGBs" option, you can un-comment the respective lone on the corresponding `config.h` file: | |||
#define LUKE_RGBS | |||
The options supersede each other in this order. If no option is defined, then the firwmare defaults to the "all RGBs" option. |
@ -0,0 +1,18 @@ | |||
# Bootloader selection | |||
BOOTLOADER = stm32-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 = yes # Commands for debug and configuration | |||
NKRO_ENABLE = yes # USB Nkey Rollover | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
LTO_ENABLE = no | |||
ENCODER_ENABLE = no | |||
# Enter lower-power sleep mode when on the ChibiOS idle thread | |||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRU |
@ -0,0 +1,68 @@ | |||
/* | |||
Copyright 2015 Álvaro "Gondolindrim" Volpato <gondolindrim@acheronproject.com> | |||
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 | |||
/* USB Device descriptor parameter */ | |||
#define VENDOR_ID 0x8384 //SR for Smith and Rune | |||
#define PRODUCT_ID 0x1180 | |||
#define DEVICE_VER 0x0001 | |||
#define MANUFACTURER SmithRune | |||
#define PRODUCT IRON180 | |||
/* key matrix size */ | |||
#define MATRIX_ROWS 6 | |||
#define MATRIX_COLS 17 | |||
#define MATRIX_COL_PINS { B7 , B6 , B5 , B4 , B3 , A10, A9 , A8 , B15, B14, B13, B12, B11, B2 , A4 , B1 , A3 } | |||
#define MATRIX_ROW_PINS { B9 , B8 , A15, B0 , A7 , A5 } | |||
#define DIODE_DIRECTION COL2ROW | |||
#define BACKLIGHT_PIN A6 | |||
#define BACKLIGHT_PWM_DRIVER PWMD3 | |||
#define BACKLIGHT_PWM_CHANNEL 1 | |||
#define BACKLIGHT_PAL_MODE 1 | |||
#define BACKLIGHT_LEVELS 6 | |||
#define BACKLIGHT_BREATHING | |||
#define BREATHING_PERIOD 6 | |||
/* define if matrix has ghost */ | |||
//#define MATRIX_HAS_GHOST | |||
/* Set 0 if debouncing isn't needed */ | |||
#define DEBOUNCE 5 | |||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | |||
#define LOCKING_SUPPORT_ENABLE | |||
/* Locking resynchronize hack */ | |||
#define LOCKING_RESYNC_ENABLE | |||
/* | |||
* Feature disable options | |||
* These options are also useful to firmware size reduction. | |||
*/ | |||
/* disable debug print */ | |||
//#define NO_DEBUG | |||
/* disable print */ | |||
//#define NO_PRINT | |||
/* disable action features */ | |||
//#define NO_ACTION_LAYER | |||
//#define NO_ACTION_TAPPING | |||
//#define NO_ACTION_ONESHOT |
@ -0,0 +1,27 @@ | |||
/* Copyright 2020 QMK | |||
* | |||
* 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/>. | |||
*/ | |||
/* | |||
* This file was auto-generated by: | |||
* `qmk chibios-confmigrate -i keyboards/iron180/halconf.h -r platforms/chibios/common/configs/halconf.h` | |||
*/ | |||
#pragma once | |||
#define HAL_USE_PWM YES | |||
#include_next <halconf.h> | |||
@ -0,0 +1,108 @@ | |||
{ | |||
"keyboard_name": "Iron180", | |||
"url": "", | |||
"maintainer": "Gondolindrim", | |||
"layouts": { | |||
"LAYOUT_all": { | |||
"layout": [ | |||
{"label":"K00", "x":0, "y":0}, | |||
{"label":"K01", "x":1.25, "y":0}, | |||
{"label":"K02", "x":2.25, "y":0}, | |||
{"label":"K03", "x":3.25, "y":0}, | |||
{"label":"K04", "x":4.25, "y":0}, | |||
{"label":"K05", "x":5.5, "y":0}, | |||
{"label":"K06", "x":6.5, "y":0}, | |||
{"label":"K07", "x":7.5, "y":0}, | |||
{"label":"K08", "x":8.5, "y":0}, | |||
{"label":"K09", "x":9.75, "y":0}, | |||
{"label":"K0A", "x":10.75, "y":0}, | |||
{"label":"K0B", "x":11.75, "y":0}, | |||
{"label":"K0C", "x":12.75, "y":0}, | |||
{"label":"K0D", "x":14, "y":0}, | |||
{"label":"K0E", "x":15.25, "y":0}, | |||
{"label":"K0F", "x":16.25, "y":0}, | |||
{"label":"K0G", "x":17.25, "y":0}, | |||
{"label":"K10", "x":0, "y":1.25}, | |||
{"label":"K11", "x":1, "y":1.25}, | |||
{"label":"K12", "x":2, "y":1.25}, | |||
{"label":"K13", "x":3, "y":1.25}, | |||
{"label":"K14", "x":4, "y":1.25}, | |||
{"label":"K15", "x":5, "y":1.25}, | |||
{"label":"K16", "x":6, "y":1.25}, | |||
{"label":"K17", "x":7, "y":1.25}, | |||
{"label":"K18", "x":8, "y":1.25}, | |||
{"label":"K19", "x":9, "y":1.25}, | |||
{"label":"K1A", "x":10, "y":1.25}, | |||
{"label":"K1B", "x":11, "y":1.25}, | |||
{"label":"K1C", "x":12, "y":1.25}, | |||
{"label":"K1D", "x":13, "y":1.25}, | |||
{"label":"K1E", "x":14, "y":1.25}, | |||
{"label":"K1F", "x":15.25, "y":1.25}, | |||
{"label":"K1G", "x":16.25, "y":1.25}, | |||
{"label":"K3G", "x":17.25, "y":1.25}, | |||
{"label":"K20", "x":0, "y":2.25, "w":1.5}, | |||
{"label":"K21", "x":1.5, "y":2.25}, | |||
{"label":"K22", "x":2.5, "y":2.25}, | |||
{"label":"K23", "x":3.5, "y":2.25}, | |||
{"label":"K24", "x":4.5, "y":2.25}, | |||
{"label":"K25", "x":5.5, "y":2.25}, | |||
{"label":"K26", "x":6.5, "y":2.25}, | |||
{"label":"K27", "x":7.5, "y":2.25}, | |||
{"label":"K28", "x":8.5, "y":2.25}, | |||
{"label":"K29", "x":9.5, "y":2.25}, | |||
{"label":"K2A", "x":10.5, "y":2.25}, | |||
{"label":"K2B", "x":11.5, "y":2.25}, | |||
{"label":"K2C", "x":12.5, "y":2.25}, | |||
{"label":"K2D", "x":13.5, "y":2.25, "w":1.5}, | |||
{"label":"K2E", "x":15.25, "y":2.25}, | |||
{"label":"K2F", "x":16.25, "y":2.25}, | |||
{"label":"K2G", "x":17.25, "y":2.25}, | |||
{"label":"K30", "x":0, "y":3.25, "w":1.75}, | |||
{"label":"K31", "x":1.75, "y":3.25}, | |||
{"label":"K32", "x":2.75, "y":3.25}, | |||
{"label":"K33", "x":3.75, "y":3.25}, | |||
{"label":"K34", "x":4.75, "y":3.25}, | |||
{"label":"K35", "x":5.75, "y":3.25}, | |||
{"label":"K36", "x":6.75, "y":3.25}, | |||
{"label":"K37", "x":7.75, "y":3.25}, | |||
{"label":"K38", "x":8.75, "y":3.25}, | |||
{"label":"K39", "x":9.75, "y":3.25}, | |||
{"label":"K3A", "x":10.75, "y":3.25}, | |||
{"label":"K3B", "x":11.75, "y":3.25}, | |||
{"label":"K3C", "x":12.75, "y":3.25}, | |||
{"label":"K3D", "x":13.75, "y":3.25, "w":1.25}, | |||
{"label":"K40", "x":0, "y":4.25, "w":1.25}, | |||
{"label":"K41", "x":1.25, "y":4.25}, | |||
{"label":"K42", "x":2.25, "y":4.25}, | |||
{"label":"K43", "x":3.25, "y":4.25}, | |||
{"label":"K44", "x":4.25, "y":4.25}, | |||
{"label":"K45", "x":5.25, "y":4.25}, | |||
{"label":"K46", "x":6.25, "y":4.25}, | |||
{"label":"K47", "x":7.25, "y":4.25}, | |||
{"label":"K48", "x":8.25, "y":4.25}, | |||
{"label":"K49", "x":9.25, "y":4.25}, | |||
{"label":"K4A", "x":10.25, "y":4.25}, | |||
{"label":"K4B", "x":11.25, "y":4.25}, | |||
{"label":"K4C", "x":12.25, "y":4.25, "w":1.75}, | |||
{"label":"K4D", "x":14, "y":4.25}, | |||
{"label":"K4F", "x":16.25, "y":4.25}, | |||
{"label":"K50", "x":0, "y":5.25, "w":1.25}, | |||
{"label":"K51", "x":1.25, "y":5.25, "w":1.25}, | |||
{"label":"K52", "x":2.5, "y":5.25, "w":1.25}, | |||
{"label":"K56", "x":3.75, "y":5.25, "w":6.25}, | |||
{"label":"K59", "x":10, "y":5.25, "w":1.25}, | |||
{"label":"K5A", "x":11.25, "y":5.25, "w":1.25}, | |||
{"label":"K5B", "x":12.5, "y":5.25, "w":1.25}, | |||
{"label":"K5C", "x":13.75, "y":5.25, "w":1.25}, | |||
{"label":"K5D", "x":15.25, "y":5.25}, | |||
{"label":"K5E", "x":16.25, "y":5.25}, | |||
{"label":"K5F", "x":17.25, "y":5.25} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,18 @@ | |||
/* | |||
Copyright 2020 Álvaro "Gondolindrim" Volpato <gondolindrim@acheronproject.com> | |||
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 "iron180.h" |
@ -0,0 +1,38 @@ | |||
/* | |||
Copyright 2015 Álvaro "Gondolindrim" Volpato <gondolindrim@acheronproject.com> | |||
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 ___ KC_NO | |||
#include "quantum.h" | |||
#define LAYOUT_all( \ | |||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0G, K0F, K0E, \ | |||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K3G, \ | |||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, \ | |||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \ | |||
K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4F, \ | |||
K50, K51, K52, K56, K59, K5A, K5B, K5C, K5D, K5E, K5F \ | |||
) { \ | |||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G }, \ | |||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G }, \ | |||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G }, \ | |||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, ___, ___, K3G }, \ | |||
{ K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, ___, K4F, ___ }, \ | |||
{ K50, K51, K52, ___, ___, ___, K56, ___, ___, K59, K5A, K5B, K5C, ___, K5D, K5E, K5F } \ | |||
} |
@ -0,0 +1,53 @@ | |||
/* | |||
Copyright 2012,2013 Jun Wako <wakojun@gmail.com> | |||
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_all( | |||
KC_ESC , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_F13 , KC_PSCR, KC_SLCK, KC_PAUS, | |||
KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_BSPC, KC_INS , KC_HOME, KC_PGUP, | |||
KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN, | |||
KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , | |||
KC_LSFT, KC_BSLS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, MO(1) , KC_UP , | |||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC , KC_RALT, KC_RWIN, MO(1) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
), | |||
[1] = LAYOUT_all( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
[2] = LAYOUT_all( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
[3] = LAYOUT_all( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
}; |
@ -0,0 +1,53 @@ | |||
/* | |||
Copyright 2012,2013 Jun Wako <wakojun@gmail.com> | |||
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_all( | |||
KC_ESC , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_F13 , KC_PSCR, KC_SLCK, KC_PAUS, | |||
KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_BSPC, KC_INS , KC_HOME, KC_PGUP, | |||
KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN, | |||
KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , | |||
KC_LSFT, KC_BSLS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, MO(1) , KC_UP , | |||
KC_LCTL, KC_LWIN, KC_LALT, KC_SPC , KC_RALT, KC_RWIN, MO(1) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
), | |||
[1] = LAYOUT_all( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
[2] = LAYOUT_all( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
[3] = LAYOUT_all( | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | |||
), | |||
}; |
@ -0,0 +1 @@ | |||
VIA_ENABLE = yes |
@ -0,0 +1,30 @@ | |||
/* Copyright 2020 QMK | |||
* | |||
* 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/>. | |||
*/ | |||
/* | |||
* This file was auto-generated by: | |||
* `qmk chibios-confmigrate -i keyboards/iron180/mcuconf.h -r platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h` | |||
*/ | |||
#pragma once | |||
#include_next <mcuconf.h> | |||
#undef STM32_I2C_USE_DMA | |||
#define STM32_I2C_USE_DMA FALSE | |||
#undef STM32_PWM_USE_TIM3 | |||
#define STM32_PWM_USE_TIM3 YES |
@ -0,0 +1,18 @@ | |||
# Iron180 QMK folder | |||
## Introduction | |||
This is the QMK Firmware repository for the Iron180 PCB, a keyboard designed by [Smith and Rune](https://smithrune.com/) and PCB designed by [Gondolindrim](http://github.com/Gondolindrim). | |||
The Iron180 PCB is a F13 TKL PCB with ALPS switches support. It also supports in-switch single-color LEDs and a multi-layout design for default or 7U bottom row, ISO layout, split backspace and right shift. | |||
As of November 2020, the only way to obtain an Iron180 was through the [Group Buy](https://geekhack.org/index.php?topic=109513) which is already over and all spots were filled. | |||
## How to compile | |||
After setting up your build environment, you can compile the Iron180 default keymap by using: | |||
make smithrune/iron180: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). | |||
@ -0,0 +1,23 @@ | |||
# MCU name | |||
MCU = STM32F072 | |||
# Bootloader selection | |||
BOOTLOADER = stm32-dfu | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = yes # Console for debug | |||
COMMAND_ENABLE = yes # Commands for debug and configuration | |||
NKRO_ENABLE = yes # USB Nkey Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
ENCODER_ENABLE = no | |||
LTO_ENABLE = no | |||
# Enter lower-power sleep mode when on the ChibiOS idle thread | |||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |
@ -0,0 +1,10 @@ | |||
// Copyright 2022 takashicompany (@takashicompany) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#include "config_common.h" | |||
#define ENCODER_RESOLUTION 4 | |||
#define ENCODERS_PAD_A { D1 } | |||
#define ENCODERS_PAD_B { D0 } |
@ -0,0 +1,507 @@ | |||
{ | |||
"manufacturer": "takashicompany", | |||
"keyboard_name": "Spreadwriter", | |||
"maintainer": "takashicompany", | |||
"bootloader": "caterina", | |||
"diode_direction": "COL2ROW", | |||
"features": { | |||
"bootmagic": true, | |||
"command": false, | |||
"console": false, | |||
"extrakey": true, | |||
"mousekey": true, | |||
"nkro": true | |||
}, | |||
"matrix_pins": { | |||
"cols": [ | |||
"D4", | |||
"C6", | |||
"D7", | |||
"E6", | |||
"B4", | |||
"B5", | |||
"D2" | |||
], | |||
"rows": [ | |||
"F4", | |||
"F5", | |||
"F6", | |||
"F7", | |||
"B1", | |||
"B3", | |||
"B2", | |||
"B6" | |||
] | |||
}, | |||
"processor": "atmega32u4", | |||
"url": "https://github.com/takashicompany/spreadwriter", | |||
"usb": { | |||
"device_version": "1.0.0", | |||
"pid": "0x0023", | |||
"vid": "0x7463" | |||
}, | |||
"rgblight": { | |||
"led_count": 53, | |||
"pin": "D3", | |||
"hue_steps": 10, | |||
"saturation_steps": 17, | |||
"brightness_steps": 17, | |||
"animations": { | |||
"all": true | |||
} | |||
}, | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{ | |||
"matrix": [ | |||
0, | |||
0 | |||
], | |||
"x": 0, | |||
"y": 0.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
0, | |||
1 | |||
], | |||
"x": 1, | |||
"y": 0.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
0, | |||
2 | |||
], | |||
"x": 2, | |||
"y": 0.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
0, | |||
3 | |||
], | |||
"x": 3, | |||
"y": 0 | |||
}, | |||
{ | |||
"matrix": [ | |||
0, | |||
4 | |||
], | |||
"x": 4, | |||
"y": 0 | |||
}, | |||
{ | |||
"matrix": [ | |||
0, | |||
5 | |||
], | |||
"x": 5, | |||
"y": 0 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
1 | |||
], | |||
"x": 10, | |||
"y": 0 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
2 | |||
], | |||
"x": 11, | |||
"y": 0 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
3 | |||
], | |||
"x": 12, | |||
"y": 0 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
4 | |||
], | |||
"x": 13, | |||
"y": 0.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
5 | |||
], | |||
"x": 14, | |||
"y": 0.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
6 | |||
], | |||
"x": 15, | |||
"y": 0.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
0 | |||
], | |||
"x": 0, | |||
"y": 1.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
1 | |||
], | |||
"x": 1, | |||
"y": 1.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
2 | |||
], | |||
"x": 2, | |||
"y": 1.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
3 | |||
], | |||
"x": 3, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
4 | |||
], | |||
"x": 4, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
5 | |||
], | |||
"x": 5, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
1, | |||
6 | |||
], | |||
"x": 7.5, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
1 | |||
], | |||
"x": 10, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
2 | |||
], | |||
"x": 11, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
3 | |||
], | |||
"x": 12, | |||
"y": 1 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
4 | |||
], | |||
"x": 13, | |||
"y": 1.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
5 | |||
], | |||
"x": 14, | |||
"y": 1.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
6 | |||
], | |||
"x": 15, | |||
"y": 1.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
0 | |||
], | |||
"x": 0, | |||
"y": 2.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
1 | |||
], | |||
"x": 1, | |||
"y": 2.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
2 | |||
], | |||
"x": 2, | |||
"y": 2.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
3 | |||
], | |||
"x": 3, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
4 | |||
], | |||
"x": 4, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
5 | |||
], | |||
"x": 5, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
2, | |||
6 | |||
], | |||
"x": 6, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
0 | |||
], | |||
"x": 9, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
1 | |||
], | |||
"x": 10, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
2 | |||
], | |||
"x": 11, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
3 | |||
], | |||
"x": 12, | |||
"y": 2 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
4 | |||
], | |||
"x": 13, | |||
"y": 2.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
5 | |||
], | |||
"x": 14, | |||
"y": 2.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
6, | |||
6 | |||
], | |||
"x": 15, | |||
"y": 2.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
0 | |||
], | |||
"x": 0, | |||
"y": 3.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
1 | |||
], | |||
"x": 1, | |||
"y": 3.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
2 | |||
], | |||
"x": 2, | |||
"y": 3.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
3 | |||
], | |||
"x": 3, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
4 | |||
], | |||
"x": 4, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
5 | |||
], | |||
"x": 5, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
3, | |||
6 | |||
], | |||
"x": 6, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
5, | |||
0 | |||
], | |||
"x": 7.5, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
0 | |||
], | |||
"x": 9, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
1 | |||
], | |||
"x": 10, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
2 | |||
], | |||
"x": 11, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
3 | |||
], | |||
"x": 12, | |||
"y": 3 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
4 | |||
], | |||
"x": 13, | |||
"y": 3.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
5 | |||
], | |||
"x": 14, | |||
"y": 3.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
7, | |||
6 | |||
], | |||
"x": 15, | |||
"y": 3.5 | |||
}, | |||
{ | |||
"matrix": [ | |||
0, | |||
6 | |||
], | |||
"x": 7, | |||
"y": 4.25 | |||
}, | |||
{ | |||
"matrix": [ | |||
4, | |||
0 | |||
], | |||
"x": 8, | |||
"y": 4.25 | |||
} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,97 @@ | |||
// Copyright 2022 takashicompany (@takashicompany) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include QMK_KEYBOARD_H | |||
enum custom_keycodes { | |||
SPREADWRITER = SAFE_RANGE, | |||
WEB, | |||
}; | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
LAYOUT( | |||
KC_ESC, LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | |||
KC_LCTL, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, SPREADWRITER, KC_H, KC_J, LT(2, KC_K), KC_L, KC_ENT, KC_ENT, | |||
KC_LSFT, SFT_T(KC_Z), GUI_T(KC_X), KC_C, KC_V, KC_B, MEH(KC_4), LSA(KC_5), KC_N, KC_M, KC_COMM, CTL_T(KC_DOT), KC_BSPC, KC_DEL, | |||
KC_LCTL, KC_LGUI, KC_LALT, MO(5), MO(4), ALT_T(KC_LANG2), SFT_T(KC_TAB), WEB, LT(6, KC_SPC), LT(1, KC_LANG1), KC_RALT, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, | |||
KC_WH_U, KC_WH_D | |||
), | |||
LAYOUT( | |||
KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, | |||
KC_LCTL, CTL_T(KC_EQL), KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_TRNS, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, KC_NO, | |||
KC_TRNS, KC_LCTL, KC_TRNS, KC_QUES, KC_EXLM, KC_NO, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, 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, MO(3), 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, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_BSPC, KC_SPC | |||
), | |||
LAYOUT( | |||
RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, | |||
KC_TRNS, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, KC_TRNS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | |||
KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_TRNS, RESET, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO, 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, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_TRNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_JYEN, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_6, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCLN, KC_QUOT, KC_NUHS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P0, KC_COMM, KC_DOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_COMM, KC_DOT, KC_SLSH, KC_RO, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_TRNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_TRNS, KC_TRNS, S(KC_MINS), S(KC_EQL), S(KC_JYEN), KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_6, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_LBRC), S(KC_RBRC), KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_SCLN), S(KC_QUOT), S(KC_NUHS), KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P0, KC_COMM, KC_DOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_COMM), S(KC_DOT), S(KC_SLSH), S(KC_RO), KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_TRNS, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), G(KC_JYEN), KC_TRNS, | |||
KC_LCTL, S(KC_EQL), S(KC_LBRC), S(KC_SLSH), S(KC_MINS), S(KC_RO), KC_TRNS, S(KC_SCLN), S(KC_QUOT), S(KC_RBRC), S(KC_NUHS), S(KC_JYEN), 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
) | |||
}; | |||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
switch (keycode) { | |||
case SPREADWRITER: | |||
if (record->event.pressed) { | |||
SEND_STRING("Spreadwriter"); | |||
rgblight_toggle(); | |||
} | |||
return false; | |||
case WEB: | |||
if (record->event.pressed) { | |||
SEND_STRING("github.com/takashicompany/spreadwriter"); | |||
} | |||
return false; | |||
} | |||
return true; | |||
} | |||
bool encoder_update_user(uint8_t index, bool clockwise) { | |||
if (clockwise) { | |||
tap_code(KC_MS_WH_DOWN); | |||
} else { | |||
tap_code(KC_MS_WH_UP); | |||
} | |||
return true; | |||
} |
@ -0,0 +1,20 @@ | |||
// Copyright 2022 takashicompany (@takashicompany) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#define DYNAMIC_KEYMAP_LAYER_COUNT 7 | |||
//------------------------------------------------------------------------------ | |||
// Rotary Encoder | |||
//------------------------------------------------------------------------------ | |||
// Encoder triggers specific key matrix position, | |||
// when turn knob clockwise or counterclockwise. | |||
// This is handy to assign key codes by VIA. | |||
// Number of endoder | |||
#define ENCODERS 1 | |||
// Mappings of encoder rotation to key position in key matrix. | |||
#define ENCODERS_CW_KEY { { 0, 4 }} | |||
#define ENCODERS_CCW_KEY { { 6, 0 }} |
@ -0,0 +1,127 @@ | |||
// Copyright 2022 takashicompany (@takashicompany) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include QMK_KEYBOARD_H | |||
enum custom_keycodes { | |||
SPREADWRITER = SAFE_RANGE, | |||
WEB, | |||
}; | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
LAYOUT( | |||
KC_ESC, LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | |||
KC_LCTL, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, SPREADWRITER, KC_H, KC_J, LT(2, KC_K), KC_L, KC_ENT, KC_ENT, | |||
KC_LSFT, SFT_T(KC_Z), GUI_T(KC_X), KC_C, KC_V, KC_B, MEH(KC_4), LSA(KC_5), KC_N, KC_M, KC_COMM, CTL_T(KC_DOT), KC_BSPC, KC_DEL, | |||
KC_LCTL, KC_LGUI, KC_LALT, MO(5), MO(4), ALT_T(KC_LANG2), SFT_T(KC_TAB), WEB, LT(6, KC_SPC), LT(1, KC_LANG1), KC_RALT, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, | |||
KC_WH_U, KC_WH_D | |||
), | |||
LAYOUT( | |||
KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, | |||
KC_LCTL, CTL_T(KC_EQL), KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_TRNS, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, KC_NO, | |||
KC_TRNS, KC_LCTL, KC_TRNS, KC_QUES, KC_EXLM, KC_NO, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, 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, MO(3), 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, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_BSPC, KC_SPC | |||
), | |||
LAYOUT( | |||
RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, | |||
KC_TRNS, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, KC_TRNS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | |||
KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_TRNS, RESET, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO, 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, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_TRNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_JYEN, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_6, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCLN, KC_QUOT, KC_NUHS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P0, KC_COMM, KC_DOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_COMM, KC_DOT, KC_SLSH, KC_RO, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_TRNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_TRNS, KC_TRNS, S(KC_MINS), S(KC_EQL), S(KC_JYEN), KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_6, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_LBRC), S(KC_RBRC), KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_SCLN), S(KC_QUOT), S(KC_NUHS), KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS, KC_P0, KC_COMM, KC_DOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_COMM), S(KC_DOT), S(KC_SLSH), S(KC_RO), KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
), | |||
LAYOUT( | |||
KC_TRNS, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), G(KC_JYEN), KC_TRNS, | |||
KC_LCTL, S(KC_EQL), S(KC_LBRC), S(KC_SLSH), S(KC_MINS), S(KC_RO), KC_TRNS, S(KC_SCLN), S(KC_QUOT), S(KC_RBRC), S(KC_NUHS), S(KC_JYEN), 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | |||
KC_TRNS, KC_TRNS | |||
) | |||
}; | |||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
switch (keycode) { | |||
case SPREADWRITER: | |||
if (record->event.pressed) { | |||
SEND_STRING("Spreadwriter"); | |||
rgblight_toggle(); | |||
} | |||
return false; | |||
case WEB: | |||
if (record->event.pressed) { | |||
SEND_STRING("github.com/takashicompany/spreadwriter"); | |||
} | |||
return false; | |||
} | |||
return true; | |||
} | |||
//------------------------------------------------------------------------------ | |||
// Rotary Encoder | |||
//------------------------------------------------------------------------------ | |||
static uint8_t encoder_state[ENCODERS] = {0}; | |||
static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY; | |||
static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY; | |||
void encoder_action_unregister(void) { | |||
for (int index = 0; index < ENCODERS; ++index) { | |||
if (encoder_state[index]) { | |||
keyevent_t encoder_event = (keyevent_t) { | |||
.key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index], | |||
.pressed = false, | |||
.time = (timer_read() | 1) | |||
}; | |||
encoder_state[index] = 0; | |||
action_exec(encoder_event); | |||
} | |||
} | |||
} | |||
void encoder_action_register(uint8_t index, bool clockwise) { | |||
keyevent_t encoder_event = (keyevent_t) { | |||
.key = clockwise ? encoder_cw[index] : encoder_ccw[index], | |||
.pressed = true, | |||
.time = (timer_read() | 1) | |||
}; | |||
encoder_state[index] = (clockwise ^ 1) | (clockwise << 1); | |||
action_exec(encoder_event); | |||
} | |||
void matrix_scan_kb(void) { | |||
encoder_action_unregister(); | |||
matrix_scan_user(); | |||
} | |||
bool encoder_update_user(uint8_t index, bool clockwise) { | |||
encoder_action_register(index, clockwise); | |||
return true; | |||
}; |
@ -0,0 +1 @@ | |||
VIA_ENABLE = yes |
@ -0,0 +1,35 @@ | |||
# takashicompany/spreadwriter | |||
![takashicompany/spreadwriter](https://i.imgur.com/mMAzyvUh.jpg) | |||
"Spreadwriter" はGL516ケースに対応した50%キーボードです。 | |||
放射状のキーレイアウトは、手を自然な形で置くことができ、楽な姿勢での打鍵を可能にしています。 | |||
LEDを用いたキーの照明や、ロータリーエンコーダの搭載も可能です。 | |||
--- | |||
"Spreadwriter" is a 50% keyboard for the GL516 case. | |||
The radial key layout allows for a natural hand placement and comfortable typing posture. | |||
LED-based key illumination and a rotary encoder are also available. | |||
* Keyboard Maintainer: [takashicompany](https://github.com/takashicompany) | |||
* Hardware Supported: Spreadwriter PCB, Pro Micro | |||
* Hardware Availability: https://github.com/takashicompany/spreadwriter | |||
Make example for this keyboard (after setting up your build environment): | |||
make takashicompany/spreadwriter:default | |||
Flashing example for this keyboard: | |||
make takashicompany/spreadwriter: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 3 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**: Briefly press the button on the back of the PCB - some may have pads you must short instead | |||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available |
@ -0,0 +1,2 @@ | |||
ENCODER_ENABLE = yes | |||
RGBLIGHT_ENABLE = yes |
@ -0,0 +1,32 @@ | |||
// Copyright 2022 QMK / James Young (@noroadsleft) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include QMK_KEYBOARD_H | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
/* | |||
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┬───┬───┐ | |||
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││F13││PSc│Scr│Pse│ | |||
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┘└───┴───┴───┘ | |||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐┌───┬───┬───┐ | |||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bsp│Bsp││Ins│Hom│PgU│ | |||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤├───┼───┼───┤ | |||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ ││Del│End│PgD│ | |||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤└───┴───┴───┘ | |||
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │ | |||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ ┌───┐ | |||
* │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│ │ │ ↑ │ | |||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤┌───┼───┼───┐ | |||
* │Ctrl│GUI │Alt │ │ Alt│ GUI│Menu│Ctrl││ ← │ ↓ │ → │ | |||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘└───┴───┴───┘ | |||
*/ | |||
[0] = LAYOUT_tkl_f13_ansi_split_bs_rshift( | |||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_PSCR, KC_SCRL, KC_PAUS, | |||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | |||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, _______, KC_UP, | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
) | |||
}; |
@ -0,0 +1,106 @@ | |||
{ | |||
"keyboard_name": "Tenkeyless ANSI layout with F13 key, split Backspace, and split Right Shift", | |||
"url": "", | |||
"maintainer": "qmk", | |||
"layouts": { | |||
"LAYOUT_tkl_f13_ansi_split_bs_rshift": { | |||
"layout": [ | |||
{"x":0, "y":0}, | |||
{"x":1.25, "y":0}, | |||
{"x":2.25, "y":0}, | |||
{"x":3.25, "y":0}, | |||
{"x":4.25, "y":0}, | |||
{"x":5.5, "y":0}, | |||
{"x":6.5, "y":0}, | |||
{"x":7.5, "y":0}, | |||
{"x":8.5, "y":0}, | |||
{"x":9.75, "y":0}, | |||
{"x":10.75, "y":0}, | |||
{"x":11.75, "y":0}, | |||
{"x":12.75, "y":0}, | |||
{"x":14, "y":0}, | |||
{"x":15.25, "y":0}, | |||
{"x":16.25, "y":0}, | |||
{"x":17.25, "y":0}, | |||
{"x":0, "y":1.25}, | |||
{"x":1, "y":1.25}, | |||
{"x":2, "y":1.25}, | |||
{"x":3, "y":1.25}, | |||
{"x":4, "y":1.25}, | |||
{"x":5, "y":1.25}, | |||
{"x":6, "y":1.25}, | |||
{"x":7, "y":1.25}, | |||
{"x":8, "y":1.25}, | |||
{"x":9, "y":1.25}, | |||
{"x":10, "y":1.25}, | |||
{"x":11, "y":1.25}, | |||
{"x":12, "y":1.25}, | |||
{"x":13, "y":1.25}, | |||
{"x":14, "y":1.25}, | |||
{"x":15.25, "y":1.25}, | |||
{"x":16.25, "y":1.25}, | |||
{"x":17.25, "y":1.25}, | |||
{"x":0, "y":2.25, "w":1.5}, | |||
{"x":1.5, "y":2.25}, | |||
{"x":2.5, "y":2.25}, | |||
{"x":3.5, "y":2.25}, | |||
{"x":4.5, "y":2.25}, | |||
{"x":5.5, "y":2.25}, | |||
{"x":6.5, "y":2.25}, | |||
{"x":7.5, "y":2.25}, | |||
{"x":8.5, "y":2.25}, | |||
{"x":9.5, "y":2.25}, | |||
{"x":10.5, "y":2.25}, | |||
{"x":11.5, "y":2.25}, | |||
{"x":12.5, "y":2.25}, | |||
{"x":13.5, "y":2.25, "w":1.5}, | |||
{"x":15.25, "y":2.25}, | |||
{"x":16.25, "y":2.25}, | |||
{"x":17.25, "y":2.25}, | |||
{"x":0, "y":3.25, "w":1.75}, | |||
{"x":1.75, "y":3.25}, | |||
{"x":2.75, "y":3.25}, | |||
{"x":3.75, "y":3.25}, | |||
{"x":4.75, "y":3.25}, | |||
{"x":5.75, "y":3.25}, | |||
{"x":6.75, "y":3.25}, | |||
{"x":7.75, "y":3.25}, | |||
{"x":8.75, "y":3.25}, | |||
{"x":9.75, "y":3.25}, | |||
{"x":10.75, "y":3.25}, | |||
{"x":11.75, "y":3.25}, | |||
{"x":12.75, "y":3.25, "w":2.25}, | |||
{"x":0, "y":4.25, "w":2.25}, | |||
{"x":2.25, "y":4.25}, | |||
{"x":3.25, "y":4.25}, | |||
{"x":4.25, "y":4.25}, | |||
{"x":5.25, "y":4.25}, | |||
{"x":6.25, "y":4.25}, | |||
{"x":7.25, "y":4.25}, | |||
{"x":8.25, "y":4.25}, | |||
{"x":9.25, "y":4.25}, | |||
{"x":10.25, "y":4.25}, | |||
{"x":11.25, "y":4.25}, | |||
{"x":12.25, "y":4.25, "w":1.75}, | |||
{"x":14, "y":4.25}, | |||
{"x":16.25, "y":4.25}, | |||
{"x":0, "y":5.25, "w":1.25}, | |||
{"x":1.25, "y":5.25, "w":1.25}, | |||
{"x":2.5, "y":5.25, "w":1.25}, | |||
{"x":3.75, "y":5.25, "w":6.25}, | |||
{"x":10, "y":5.25, "w":1.25}, | |||
{"x":11.25, "y":5.25, "w":1.25}, | |||
{"x":12.5, "y":5.25, "w":1.25}, | |||
{"x":13.75, "y":5.25, "w":1.25}, | |||
{"x":15.25, "y":5.25}, | |||
{"x":16.25, "y":5.25}, | |||
{"x":17.25, "y":5.25} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
[{a:7},"",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"",{x:0.25},"","",""], | |||
[{y:0.25},"","","","","","","","","","","","","","","",{x:0.25},"","",""], | |||
[{w:1.5},"","","","","","","","","","","","","",{w:1.5},"",{x:0.25},"","",""], | |||
[{w:1.75},"","","","","","","","","","","","",{w:2.25},""], | |||
[{w:2.25},"","","","","","","","","","","",{w:1.75},"","",{x:1.25},""], | |||
[{w:1.25},"",{w:1.25},"",{w:1.25},"",{w:6.25},"",{w:1.25},"",{w:1.25},"",{w:1.25},"",{w:1.25},"",{x:0.25},"","",""] |
@ -0,0 +1,5 @@ | |||
# tkl_f13_ansi_split_bs_rshift | |||
LAYOUT_tkl_f13_ansi_split_bs_rshift | |||
An ANSI TKL layout featuring an F13 key, split Backspace, and split Right Shift. |
@ -0,0 +1,32 @@ | |||
// Copyright 2022 QMK / James Young (@noroadsleft) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include QMK_KEYBOARD_H | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
/* | |||
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┬───┬───┐ | |||
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││F13││PSc│Scr│Pse│ | |||
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┘└───┴───┴───┘ | |||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐┌───┬───┬───┐ | |||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bsp│Bsp││Ins│Hom│PgU│ | |||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤├───┼───┼───┤ | |||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ ││Del│End│PgD│ | |||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤└───┴───┴───┘ | |||
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │ | |||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ ┌───┐ | |||
* │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │ │ │ ↑ │ | |||
* ├─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┴┬───┬─┴───┤┌───┼───┼───┐ | |||
* │Ctrl │GUI│Alt │ │ Alt│App│ Ctrl││ ← │ ↓ │ → │ | |||
* └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘└───┴───┴───┘ | |||
*/ | |||
[0] = LAYOUT_tkl_f13_ansi_tsangan_split_bs_rshift( | |||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_PSCR, KC_SCRL, KC_PAUS, | |||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | |||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, _______, KC_UP, | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
) | |||
}; |
@ -0,0 +1,105 @@ | |||
{ | |||
"keyboard_name": "Tenkeyless ANSI layout with F13 key, split Backspace, split Right Shift, and Tsangan Bottom Row", | |||
"url": "", | |||
"maintainer": "qmk", | |||
"layouts": { | |||
"LAYOUT_tkl_f13_ansi_tsangan_split_bs_rshift": { | |||
"layout": [ | |||
{"x":0, "y":0}, | |||
{"x":1.25, "y":0}, | |||
{"x":2.25, "y":0}, | |||
{"x":3.25, "y":0}, | |||
{"x":4.25, "y":0}, | |||
{"x":5.5, "y":0}, | |||
{"x":6.5, "y":0}, | |||
{"x":7.5, "y":0}, | |||
{"x":8.5, "y":0}, | |||
{"x":9.75, "y":0}, | |||
{"x":10.75, "y":0}, | |||
{"x":11.75, "y":0}, | |||
{"x":12.75, "y":0}, | |||
{"x":14, "y":0}, | |||
{"x":15.25, "y":0}, | |||
{"x":16.25, "y":0}, | |||
{"x":17.25, "y":0}, | |||
{"x":0, "y":1.25}, | |||
{"x":1, "y":1.25}, | |||
{"x":2, "y":1.25}, | |||
{"x":3, "y":1.25}, | |||
{"x":4, "y":1.25}, | |||
{"x":5, "y":1.25}, | |||
{"x":6, "y":1.25}, | |||
{"x":7, "y":1.25}, | |||
{"x":8, "y":1.25}, | |||
{"x":9, "y":1.25}, | |||
{"x":10, "y":1.25}, | |||
{"x":11, "y":1.25}, | |||
{"x":12, "y":1.25}, | |||
{"x":13, "y":1.25}, | |||
{"x":14, "y":1.25}, | |||
{"x":15.25, "y":1.25}, | |||
{"x":16.25, "y":1.25}, | |||
{"x":17.25, "y":1.25}, | |||
{"x":0, "y":2.25, "w":1.5}, | |||
{"x":1.5, "y":2.25}, | |||
{"x":2.5, "y":2.25}, | |||
{"x":3.5, "y":2.25}, | |||
{"x":4.5, "y":2.25}, | |||
{"x":5.5, "y":2.25}, | |||
{"x":6.5, "y":2.25}, | |||
{"x":7.5, "y":2.25}, | |||
{"x":8.5, "y":2.25}, | |||
{"x":9.5, "y":2.25}, | |||
{"x":10.5, "y":2.25}, | |||
{"x":11.5, "y":2.25}, | |||
{"x":12.5, "y":2.25}, | |||
{"x":13.5, "y":2.25, "w":1.5}, | |||
{"x":15.25, "y":2.25}, | |||
{"x":16.25, "y":2.25}, | |||
{"x":17.25, "y":2.25}, | |||
{"x":0, "y":3.25, "w":1.75}, | |||
{"x":1.75, "y":3.25}, | |||
{"x":2.75, "y":3.25}, | |||
{"x":3.75, "y":3.25}, | |||
{"x":4.75, "y":3.25}, | |||
{"x":5.75, "y":3.25}, | |||
{"x":6.75, "y":3.25}, | |||
{"x":7.75, "y":3.25}, | |||
{"x":8.75, "y":3.25}, | |||
{"x":9.75, "y":3.25}, | |||
{"x":10.75, "y":3.25}, | |||
{"x":11.75, "y":3.25}, | |||
{"x":12.75, "y":3.25, "w":2.25}, | |||
{"x":0, "y":4.25, "w":2.25}, | |||
{"x":2.25, "y":4.25}, | |||
{"x":3.25, "y":4.25}, | |||
{"x":4.25, "y":4.25}, | |||
{"x":5.25, "y":4.25}, | |||
{"x":6.25, "y":4.25}, | |||
{"x":7.25, "y":4.25}, | |||
{"x":8.25, "y":4.25}, | |||
{"x":9.25, "y":4.25}, | |||
{"x":10.25, "y":4.25}, | |||
{"x":11.25, "y":4.25}, | |||
{"x":12.25, "y":4.25, "w":1.75}, | |||
{"x":14, "y":4.25}, | |||
{"x":16.25, "y":4.25}, | |||
{"x":0, "y":5.25, "w":1.5}, | |||
{"x":1.5, "y":5.25}, | |||
{"x":2.5, "y":5.25, "w":1.5}, | |||
{"x":4, "y":5.25, "w":7}, | |||
{"x":11, "y":5.25, "w":1.5}, | |||
{"x":12.5, "y":5.25}, | |||
{"x":13.5, "y":5.25, "w":1.5}, | |||
{"x":15.25, "y":5.25}, | |||
{"x":16.25, "y":5.25}, | |||
{"x":17.25, "y":5.25} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
[{a:7},"",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"",{x:0.25},"","",""], | |||
[{y:0.25},"","","","","","","","","","","","","","","",{x:0.25},"","",""], | |||
[{w:1.5},"","","","","","","","","","","","","",{w:1.5},"",{x:0.25},"","",""], | |||
[{w:1.75},"","","","","","","","","","","","",{w:2.25},""], | |||
[{w:2.25},"","","","","","","","","","","",{w:1.75},"","",{x:1.25},""], | |||
[{w:1.5},"","",{w:1.5},"",{w:7},"",{w:1.5},"","",{w:1.5},"",{x:0.25},"","",""] |
@ -0,0 +1,5 @@ | |||
# tkl_f13_ansi_tsangan_split_bs_rshift | |||
LAYOUT_tkl_f13_ansi_tsangan_split_bs_rshift | |||
An ANSI TKL layout featuring an F13 key, split Backspace, split Right Shift, and Tsangan bottom row. |
@ -0,0 +1,32 @@ | |||
// Copyright 2022 QMK / James Young (@noroadsleft) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include QMK_KEYBOARD_H | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
/* | |||
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┬───┬───┐ | |||
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││F13││PSc│Scr│Pse│ | |||
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┘└───┴───┴───┘ | |||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐┌───┬───┬───┐ | |||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bsp│Bsp││Ins│Hom│PgU│ | |||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤├───┼───┼───┤ | |||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ ││Del│End│PgD│ | |||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ Ent│└───┴───┴───┘ | |||
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │ | |||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┤ ┌───┐ | |||
* │Shft│ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│ │ │ ↑ │ | |||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤┌───┼───┼───┐ | |||
* │Ctrl│GUI │Alt │ │ Alt│ GUI│Menu│Ctrl││ ← │ ↓ │ → │ | |||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘└───┴───┴───┘ | |||
*/ | |||
[0] = LAYOUT_tkl_f13_iso_split_bs_rshift( | |||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_PSCR, KC_SCRL, KC_PAUS, | |||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_DEL, KC_END, KC_PGDN, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, | |||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, _______, KC_UP, | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
) | |||
}; |
@ -0,0 +1,107 @@ | |||
{ | |||
"keyboard_name": "Tenkeyless ISO layout with F13 key, split Backspace, and split Right Shift", | |||
"url": "", | |||
"maintainer": "qmk", | |||
"layouts": { | |||
"LAYOUT_tkl_f13_iso_split_bs_rshift": { | |||
"layout": [ | |||
{"x":0, "y":0}, | |||
{"x":1.25, "y":0}, | |||
{"x":2.25, "y":0}, | |||
{"x":3.25, "y":0}, | |||
{"x":4.25, "y":0}, | |||
{"x":5.5, "y":0}, | |||
{"x":6.5, "y":0}, | |||
{"x":7.5, "y":0}, | |||
{"x":8.5, "y":0}, | |||
{"x":9.75, "y":0}, | |||
{"x":10.75, "y":0}, | |||
{"x":11.75, "y":0}, | |||
{"x":12.75, "y":0}, | |||
{"x":14, "y":0}, | |||
{"x":15.25, "y":0}, | |||
{"x":16.25, "y":0}, | |||
{"x":17.25, "y":0}, | |||
{"x":0, "y":1.25}, | |||
{"x":1, "y":1.25}, | |||
{"x":2, "y":1.25}, | |||
{"x":3, "y":1.25}, | |||
{"x":4, "y":1.25}, | |||
{"x":5, "y":1.25}, | |||
{"x":6, "y":1.25}, | |||
{"x":7, "y":1.25}, | |||
{"x":8, "y":1.25}, | |||
{"x":9, "y":1.25}, | |||
{"x":10, "y":1.25}, | |||
{"x":11, "y":1.25}, | |||
{"x":12, "y":1.25}, | |||
{"x":13, "y":1.25}, | |||
{"x":14, "y":1.25}, | |||
{"x":15.25, "y":1.25}, | |||
{"x":16.25, "y":1.25}, | |||
{"x":17.25, "y":1.25}, | |||
{"x":0, "y":2.25, "w":1.5}, | |||
{"x":1.5, "y":2.25}, | |||
{"x":2.5, "y":2.25}, | |||
{"x":3.5, "y":2.25}, | |||
{"x":4.5, "y":2.25}, | |||
{"x":5.5, "y":2.25}, | |||
{"x":6.5, "y":2.25}, | |||
{"x":7.5, "y":2.25}, | |||
{"x":8.5, "y":2.25}, | |||
{"x":9.5, "y":2.25}, | |||
{"x":10.5, "y":2.25}, | |||
{"x":11.5, "y":2.25}, | |||
{"x":12.5, "y":2.25}, | |||
{"x":15.25, "y":2.25}, | |||
{"x":16.25, "y":2.25}, | |||
{"x":17.25, "y":2.25}, | |||
{"x":0, "y":3.25, "w":1.75}, | |||
{"x":1.75, "y":3.25}, | |||
{"x":2.75, "y":3.25}, | |||
{"x":3.75, "y":3.25}, | |||
{"x":4.75, "y":3.25}, | |||
{"x":5.75, "y":3.25}, | |||
{"x":6.75, "y":3.25}, | |||
{"x":7.75, "y":3.25}, | |||
{"x":8.75, "y":3.25}, | |||
{"x":9.75, "y":3.25}, | |||
{"x":10.75, "y":3.25}, | |||
{"x":11.75, "y":3.25}, | |||
{"x":12.75, "y":3.25}, | |||
{"x":13.75, "y":2.25, "w":1.25, "h":2}, | |||
{"x":0, "y":4.25, "w":1.25}, | |||
{"x":1.25, "y":4.25}, | |||
{"x":2.25, "y":4.25}, | |||
{"x":3.25, "y":4.25}, | |||
{"x":4.25, "y":4.25}, | |||
{"x":5.25, "y":4.25}, | |||
{"x":6.25, "y":4.25}, | |||
{"x":7.25, "y":4.25}, | |||
{"x":8.25, "y":4.25}, | |||
{"x":9.25, "y":4.25}, | |||
{"x":10.25, "y":4.25}, | |||
{"x":11.25, "y":4.25}, | |||
{"x":12.25, "y":4.25, "w":1.75}, | |||
{"x":14, "y":4.25}, | |||
{"x":16.25, "y":4.25}, | |||
{"x":0, "y":5.25, "w":1.25}, | |||
{"x":1.25, "y":5.25, "w":1.25}, | |||
{"x":2.5, "y":5.25, "w":1.25}, | |||
{"x":3.75, "y":5.25, "w":6.25}, | |||
{"x":10, "y":5.25, "w":1.25}, | |||
{"x":11.25, "y":5.25, "w":1.25}, | |||
{"x":12.5, "y":5.25, "w":1.25}, | |||
{"x":13.75, "y":5.25, "w":1.25}, | |||
{"x":15.25, "y":5.25}, | |||
{"x":16.25, "y":5.25}, | |||
{"x":17.25, "y":5.25} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
[{a:7},"",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"",{x:0.25},"","",""], | |||
[{y:0.25},"","","","","","","","","","","","","","","",{x:0.25},"","",""], | |||
[{w:1.5},"","","","","","","","","","","","","",{x:0.25,w:1.25,h:2,w2:1.5,h2:1,x2:-0.25},"",{x:0.25},"","",""], | |||
[{w:1.75},"","","","","","","","","","","","",""], | |||
[{w:1.25},"","","","","","","","","","","","",{w:1.75},"","",{x:1.25},""], | |||
[{w:1.25},"",{w:1.25},"",{w:1.25},"",{w:6.25},"",{w:1.25},"",{w:1.25},"",{w:1.25},"",{w:1.25},"",{x:0.25},"","",""] |
@ -0,0 +1,5 @@ | |||
# tkl_f13_iso_split_bs_rshift | |||
LAYOUT_tkl_f13_iso_split_bs_rshift | |||
An ISO TKL layout featuring an F13 key, split Backspace, and split Right Shift. |
@ -0,0 +1,32 @@ | |||
// Copyright 2022 QMK / James Young (@noroadsleft) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include QMK_KEYBOARD_H | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
/* | |||
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┬───┬───┐ | |||
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││F13││PSc│Scr│Pse│ | |||
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┴───┴───┴───┘└───┘└───┴───┴───┘ | |||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐┌───┬───┬───┐ | |||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Bsp│Bsp││Ins│Hom│PgU│ | |||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤├───┼───┼───┤ | |||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ ││Del│End│PgD│ | |||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ Ent│└───┴───┴───┘ | |||
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │ | |||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┤ ┌───┐ | |||
* │Shft│ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│ │ │ ↑ │ | |||
* ├────┴┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┴┬───┬─┴───┤┌───┼───┼───┐ | |||
* │Ctrl │GUI│Alt │ │ Alt│App│ Ctrl││ ← │ ↓ │ → │ | |||
* └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘└───┴───┴───┘ | |||
*/ | |||
[0] = LAYOUT_tkl_f13_iso_tsangan_split_bs_rshift( | |||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_PSCR, KC_SCRL, KC_PAUS, | |||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_DEL, KC_END, KC_PGDN, | |||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, | |||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, _______, KC_UP, | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | |||
) | |||
}; |
@ -0,0 +1,106 @@ | |||
{ | |||
"keyboard_name": "Tenkeyless ISO layout with F13 key, split Backspace, split Right Shift, and Tsangan Bottom Row", | |||
"url": "", | |||
"maintainer": "qmk", | |||
"layouts": { | |||
"LAYOUT_tkl_f13_iso_tsangan_split_bs_rshift": { | |||
"layout": [ | |||
{"x":0, "y":0}, | |||
{"x":1.25, "y":0}, | |||
{"x":2.25, "y":0}, | |||
{"x":3.25, "y":0}, | |||
{"x":4.25, "y":0}, | |||
{"x":5.5, "y":0}, | |||
{"x":6.5, "y":0}, | |||
{"x":7.5, "y":0}, | |||
{"x":8.5, "y":0}, | |||
{"x":9.75, "y":0}, | |||
{"x":10.75, "y":0}, | |||
{"x":11.75, "y":0}, | |||
{"x":12.75, "y":0}, | |||
{"x":14, "y":0}, | |||
{"x":15.25, "y":0}, | |||
{"x":16.25, "y":0}, | |||
{"x":17.25, "y":0}, | |||
{"x":0, "y":1.25}, | |||
{"x":1, "y":1.25}, | |||
{"x":2, "y":1.25}, | |||
{"x":3, "y":1.25}, | |||
{"x":4, "y":1.25}, | |||
{"x":5, "y":1.25}, | |||
{"x":6, "y":1.25}, | |||
{"x":7, "y":1.25}, | |||
{"x":8, "y":1.25}, | |||
{"x":9, "y":1.25}, | |||
{"x":10, "y":1.25}, | |||
{"x":11, "y":1.25}, | |||
{"x":12, "y":1.25}, | |||
{"x":13, "y":1.25}, | |||
{"x":14, "y":1.25}, | |||
{"x":15.25, "y":1.25}, | |||
{"x":16.25, "y":1.25}, | |||
{"x":17.25, "y":1.25}, | |||
{"x":0, "y":2.25, "w":1.5}, | |||
{"x":1.5, "y":2.25}, | |||
{"x":2.5, "y":2.25}, | |||
{"x":3.5, "y":2.25}, | |||
{"x":4.5, "y":2.25}, | |||
{"x":5.5, "y":2.25}, | |||
{"x":6.5, "y":2.25}, | |||
{"x":7.5, "y":2.25}, | |||
{"x":8.5, "y":2.25}, | |||
{"x":9.5, "y":2.25}, | |||
{"x":10.5, "y":2.25}, | |||
{"x":11.5, "y":2.25}, | |||
{"x":12.5, "y":2.25}, | |||
{"x":15.25, "y":2.25}, | |||
{"x":16.25, "y":2.25}, | |||
{"x":17.25, "y":2.25}, | |||
{"x":0, "y":3.25, "w":1.75}, | |||
{"x":1.75, "y":3.25}, | |||
{"x":2.75, "y":3.25}, | |||
{"x":3.75, "y":3.25}, | |||
{"x":4.75, "y":3.25}, | |||
{"x":5.75, "y":3.25}, | |||
{"x":6.75, "y":3.25}, | |||
{"x":7.75, "y":3.25}, | |||
{"x":8.75, "y":3.25}, | |||
{"x":9.75, "y":3.25}, | |||
{"x":10.75, "y":3.25}, | |||
{"x":11.75, "y":3.25}, | |||
{"x":12.75, "y":3.25}, | |||
{"x":13.75, "y":2.25, "w":1.25, "h":2}, | |||
{"x":0, "y":4.25, "w":1.25}, | |||
{"x":1.25, "y":4.25}, | |||
{"x":2.25, "y":4.25}, | |||
{"x":3.25, "y":4.25}, | |||
{"x":4.25, "y":4.25}, | |||
{"x":5.25, "y":4.25}, | |||
{"x":6.25, "y":4.25}, | |||
{"x":7.25, "y":4.25}, | |||
{"x":8.25, "y":4.25}, | |||
{"x":9.25, "y":4.25}, | |||
{"x":10.25, "y":4.25}, | |||
{"x":11.25, "y":4.25}, | |||
{"x":12.25, "y":4.25, "w":1.75}, | |||
{"x":14, "y":4.25}, | |||
{"x":16.25, "y":4.25}, | |||
{"x":0, "y":5.25, "w":1.5}, | |||
{"x":1.5, "y":5.25}, | |||
{"x":2.5, "y":5.25, "w":1.5}, | |||
{"x":4, "y":5.25, "w":7}, | |||
{"x":11, "y":5.25, "w":1.5}, | |||
{"x":12.5, "y":5.25}, | |||
{"x":13.5, "y":5.25, "w":1.5}, | |||
{"x":15.25, "y":5.25}, | |||
{"x":16.25, "y":5.25}, | |||
{"x":17.25, "y":5.25} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
[{a:7},"",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"","","","",{x:0.25},"",{x:0.25},"","",""], | |||
[{y:0.25},"","","","","","","","","","","","","","","",{x:0.25},"","",""], | |||
[{w:1.5},"","","","","","","","","","","","","",{x:0.25,w:1.25,h:2,w2:1.5,h2:1,x2:-0.25},"",{x:0.25},"","",""], | |||
[{w:1.75},"","","","","","","","","","","","",""], | |||
[{w:1.25},"","","","","","","","","","","","",{w:1.75},"","",{x:1.25},""], | |||
[{w:1.5},"","",{w:1.5},"",{w:7},"",{w:1.5},"","",{w:1.5},"",{x:0.25},"","",""] |
@ -0,0 +1,5 @@ | |||
# tkl_f13_iso_tsangan_split_bs_rshift | |||
LAYOUT_tkl_f13_iso_tsangan_split_bs_rshift | |||
An ISO TKL layout featuring an F13 key, split Backspace, split Right Shift, and Tsangan bottom row. |