mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-08-18 14:55:38 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6501377070 | ||
![]() |
af2ca13604 | ||
![]() |
451c472d1d | ||
![]() |
bfe76053ba | ||
![]() |
9d41281a1d | ||
![]() |
ba5e1f1bae |
49
docs/ja/feature_pointing_device.md
Normal file
49
docs/ja/feature_pointing_device.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# ポインティングデバイス :id=pointing-device
|
||||
|
||||
<!---
|
||||
original document: 0.8.182:docs/feature_pointing_device.md
|
||||
git diff 0.8.182 HEAD -- docs/feature_pointing_device.md | cat
|
||||
-->
|
||||
|
||||
ポインティングデバイスは汎用的な機能の総称です: システムポインタを移動します。マウスキーのような他のオプションも確かにありますが、これは簡単に変更可能で軽量であることを目指しています。機能を制御するためにカスタムキーを実装したり、他の周辺機器から情報を収集してここに直接挿入したりできます - QMK に処理を任せてください。
|
||||
|
||||
ポインティングデバイスを有効にするには、rules.mk の以下の行のコメントを解除します:
|
||||
|
||||
```makefile
|
||||
POINTING_DEVICE_ENABLE = yes
|
||||
```
|
||||
|
||||
マウスレポートを操作するために、以下の関数を使うことができます:
|
||||
|
||||
* `pointing_device_get_report()` - ホストコンピュータに送信された情報を表す現在の report_mouse_t を返します。
|
||||
* `pointing_device_set_report(report_mouse_t newMouseReport)` - ホストコンピュータに送信される report_mouse_t を上書き保存します。
|
||||
|
||||
report_mouse_t (ここでは "mouseReport") が以下のプロパティを持つことを覚えておいてください:
|
||||
|
||||
* `mouseReport.x` - これは、x軸の動き(+ 右へ、- 左へ)を表す -127 から 127 (128ではなく、USB HID 仕様で定義されています)の符号付き整数です。
|
||||
* `mouseReport.y` - これは、y軸の動き(+ 上へ、- 下へ)を表す -127 から 127 (128ではなく、USB HID 仕様で定義されています)の符号付き整数です。
|
||||
* `mouseReport.v` - これは、垂直スクロール(+ 上へ、- 下へ)を表す -127 から 127 (128ではなく、USB HID 仕様で定義されています)の符号付き整数です。
|
||||
* `mouseReport.h` - これは、水平スクロール(+ 右へ、- 左へ)を表す -127 から 127 (128ではなく、USB HID 仕様で定義されています)の符号付き整数です。
|
||||
* `mouseReport.buttons` - これは uint8_t で、上位の5ビットを使っています。これらのビットはマウスボタンの状態を表します - ビット 3 はマウスボタン 5、ビット 7 はマウスボタン 1 です。
|
||||
|
||||
マウスレポートが送信されると、x、y、v、h のいずれの値も 0 に設定されます (これは "pointing_device_send()" で行われます。この挙動を回避するためにオーバーライドすることができます)。このように、ボタンの状態は持続しますが、動きは1度だけ起こります。さらにカスタマイズするために、`pointing_device_init` と `pointing_device_task` のどちらもオーバーライドすることができます。
|
||||
|
||||
以下の例では、カスタムキーを使ってマウスをクリックし垂直および水平方向に127単位スクロールし、リリースされた時にそれを全て元に戻します - なぜならこれは完全に便利な機能だからです。いいですか、以下はひとつの例です:
|
||||
|
||||
```c
|
||||
case MS_SPECIAL:
|
||||
report_mouse_t currentReport = pointing_device_get_report();
|
||||
if (record->event.pressed) {
|
||||
currentReport.v = 127;
|
||||
currentReport.h = 127;
|
||||
currentReport.buttons |= MOUSE_BTN1; // this is defined in report.h
|
||||
} else {
|
||||
currentReport.v = -127;
|
||||
currentReport.h = -127;
|
||||
currentReport.buttons &= ~MOUSE_BTN1;
|
||||
}
|
||||
pointing_device_set_report(currentReport);
|
||||
break;
|
||||
```
|
||||
|
||||
マウスレポートは送信されるたびに 0 (ボタンを除く)に設定されることを思い出してください。そのため、スクロールはそれぞれの場合に1度だけ発生します。
|
172
keyboards/foxlab/key65/hotswap/config.h
Normal file
172
keyboards/foxlab/key65/hotswap/config.h
Normal file
@@ -0,0 +1,172 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* 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 0x464C // "FL"
|
||||
#define PRODUCT_ID 0x0003
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Fox Lab
|
||||
#define PRODUCT Key 65 Hotswap
|
||||
#define DESCRIPTION Key 65 Hotswap
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 15
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { D2, D1, D0, D3, B3 }
|
||||
#define MATRIX_COL_PINS { F5, F4, F1, F0, B0, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
// #define BACKLIGHT_BREATHING
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
#define RGB_DI_PIN E2
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 8
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* 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
|
||||
|
||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||
*/
|
||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
||||
|
||||
/*
|
||||
* Magic Key Options
|
||||
*
|
||||
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||
* the keyboard. They are best used in combination with the HID Listen program,
|
||||
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||
*
|
||||
* The options below allow the magic key functionality to be changed. This is
|
||||
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||
*
|
||||
*/
|
||||
|
||||
/* key combination for magic key command */
|
||||
/* defined by default; to change, uncomment and set to the combination you want */
|
||||
// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
|
||||
|
||||
/* control how magic key switches layers */
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||
|
||||
/* override magic key keymap */
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||
//#define MAGIC_KEY_HELP H
|
||||
//#define MAGIC_KEY_HELP_ALT SLASH
|
||||
//#define MAGIC_KEY_DEBUG D
|
||||
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||
//#define MAGIC_KEY_DEBUG_KBD K
|
||||
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||
//#define MAGIC_KEY_VERSION V
|
||||
//#define MAGIC_KEY_STATUS S
|
||||
//#define MAGIC_KEY_CONSOLE C
|
||||
//#define MAGIC_KEY_LAYER0 0
|
||||
//#define MAGIC_KEY_LAYER0_ALT GRAVE
|
||||
//#define MAGIC_KEY_LAYER1 1
|
||||
//#define MAGIC_KEY_LAYER2 2
|
||||
//#define MAGIC_KEY_LAYER3 3
|
||||
//#define MAGIC_KEY_LAYER4 4
|
||||
//#define MAGIC_KEY_LAYER5 5
|
||||
//#define MAGIC_KEY_LAYER6 6
|
||||
//#define MAGIC_KEY_LAYER7 7
|
||||
//#define MAGIC_KEY_LAYER8 8
|
||||
//#define MAGIC_KEY_LAYER9 9
|
||||
//#define MAGIC_KEY_BOOTLOADER B
|
||||
//#define MAGIC_KEY_BOOTLOADER_ALT ESC
|
||||
//#define MAGIC_KEY_LOCK CAPS
|
||||
//#define MAGIC_KEY_EEPROM E
|
||||
//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
|
||||
//#define MAGIC_KEY_NKRO N
|
||||
//#define MAGIC_KEY_SLEEP_LED Z
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
||||
/* disable these deprecated features by default */
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
34
keyboards/foxlab/key65/hotswap/hotswap.c
Normal file
34
keyboards/foxlab/key65/hotswap/hotswap.c
Normal file
@@ -0,0 +1,34 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* 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 "hotswap.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
led_init_ports();
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
void led_init_ports(void) {
|
||||
setPinOutput(E6);
|
||||
writePinHigh(E6);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
writePin(E6, !led_state.caps_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
33
keyboards/foxlab/key65/hotswap/hotswap.h
Normal file
33
keyboards/foxlab/key65/hotswap/hotswap.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
K00, K01, K02, K03, K04, K05, 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, K2E, \
|
||||
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
|
||||
K40, K41, K42, K47, 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, KC_NO, K2E }, \
|
||||
{ K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
|
||||
{ K40, K41, K42, KC_NO, KC_NO, KC_NO, KC_NO, K47, KC_NO, KC_NO, KC_NO, K4B, K4C, K4D, K4E }, \
|
||||
}
|
80
keyboards/foxlab/key65/hotswap/info.json
Normal file
80
keyboards/foxlab/key65/hotswap/info.json
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"keyboard_name": "Key 65 Hotswap",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 15,
|
||||
"height": 5,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"key_count": 66,
|
||||
"layout": [
|
||||
{"label":"K00 (D2,F5)", "x":0, "y":0},
|
||||
{"label":"K01 (D2,F4)", "x":1, "y":0},
|
||||
{"label":"K02 (D2,F1)", "x":2, "y":0},
|
||||
{"label":"K03 (D2,F0)", "x":3, "y":0},
|
||||
{"label":"K04 (D2,B0)", "x":4, "y":0},
|
||||
{"label":"K05 (D2,F6)", "x":5, "y":0},
|
||||
{"label":"K06 (D2,F7)", "x":6, "y":0},
|
||||
{"label":"K07 (D2,C7)", "x":7, "y":0},
|
||||
{"label":"K08 (D2,C6)", "x":8, "y":0},
|
||||
{"label":"K09 (D2,B6)", "x":9, "y":0},
|
||||
{"label":"K0A (D2,B5)", "x":10, "y":0},
|
||||
{"label":"K0B (D2,B4)", "x":11, "y":0},
|
||||
{"label":"K0C (D2,D7)", "x":12, "y":0},
|
||||
{"label":"K0D (D2,D6)", "x":13, "y":0, "w":2},
|
||||
{"label":"K0E (D2,D4)", "x":15, "y":0},
|
||||
{"label":"K10 (D1,F5)", "x":0, "y":1, "w":1.5},
|
||||
{"label":"K11 (D1,F4)", "x":1.5, "y":1},
|
||||
{"label":"K12 (D1,F1)", "x":2.5, "y":1},
|
||||
{"label":"K13 (D1,F0)", "x":3.5, "y":1},
|
||||
{"label":"K14 (D1,B0)", "x":4.5, "y":1},
|
||||
{"label":"K15 (D1,F6)", "x":5.5, "y":1},
|
||||
{"label":"K16 (D1,F7)", "x":6.5, "y":1},
|
||||
{"label":"K17 (D1,C7)", "x":7.5, "y":1},
|
||||
{"label":"K18 (D1,C6)", "x":8.5, "y":1},
|
||||
{"label":"K19 (D1,B6)", "x":9.5, "y":1},
|
||||
{"label":"K1A (D1,B5)", "x":10.5, "y":1},
|
||||
{"label":"K1B (D1,B4)", "x":11.5, "y":1},
|
||||
{"label":"K1C (D1,D7)", "x":12.5, "y":1},
|
||||
{"label":"K1D (D1,D6)", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"K1E (D1,D4)", "x":15, "y":1},
|
||||
{"label":"K20 (D0,F5)", "x":0, "y":2, "w":1.75},
|
||||
{"label":"K21 (D0,F4)", "x":1.75, "y":2},
|
||||
{"label":"K22 (D0,F1)", "x":2.75, "y":2},
|
||||
{"label":"K23 (D0,F0)", "x":3.75, "y":2},
|
||||
{"label":"K24 (D0,B0)", "x":4.75, "y":2},
|
||||
{"label":"K25 (D0,F6)", "x":5.75, "y":2},
|
||||
{"label":"K26 (D0,F7)", "x":6.75, "y":2},
|
||||
{"label":"K27 (D0,C7)", "x":7.75, "y":2},
|
||||
{"label":"K28 (D0,C6)", "x":8.75, "y":2},
|
||||
{"label":"K29 (D0,B6)", "x":9.75, "y":2},
|
||||
{"label":"K2A (D0,B5)", "x":10.75, "y":2},
|
||||
{"label":"K2B (D0,B4)", "x":11.75, "y":2},
|
||||
{"label":"K2C (D0,D7)", "x":12.75, "y":2, "w":2.25},
|
||||
{"label":"K2E (D0,D4)", "x":15, "y":2},
|
||||
{"label":"K30 (D3,F5)", "x":0, "y":3, "w":2.25},
|
||||
{"label":"K32 (D3,F1)", "x":2.25, "y":3},
|
||||
{"label":"K33 (D3,F0)", "x":3.25, "y":3},
|
||||
{"label":"K34 (D3,B0)", "x":4.25, "y":3},
|
||||
{"label":"K35 (D3,F6)", "x":5.25, "y":3},
|
||||
{"label":"K36 (D3,F7)", "x":6.25, "y":3},
|
||||
{"label":"K37 (D3,C7)", "x":7.25, "y":3},
|
||||
{"label":"K38 (D3,C6)", "x":8.25, "y":3},
|
||||
{"label":"K39 (D3,B6)", "x":9.25, "y":3},
|
||||
{"label":"K3A (D3,B5)", "x":10.25, "y":3},
|
||||
{"label":"K3B (D3,B4)", "x":11.25, "y":3},
|
||||
{"label":"K3C (D3,D7)", "x":12.25, "y":3, "w":1.75},
|
||||
{"label":"K3D (D3,D6)", "x":14, "y":3},
|
||||
{"label":"K3E (D3,D4)", "x":15, "y":3},
|
||||
{"label":"K40 (B3,F5)", "x":0, "y":4, "w":1.5},
|
||||
{"label":"K41 (B3,F4)", "x":1.5, "y":4},
|
||||
{"label":"K42 (B3,F1)", "x":2.5, "y":4, "w":1.5},
|
||||
{"label":"K47 (B3,C7)", "x":4, "y":4, "w":7},
|
||||
{"label":"K4B (B3,B4)", "x":11, "y":4, "w":1.5},
|
||||
{"label":"K4C (B3,D7)", "x":13, "y":4},
|
||||
{"label":"K4D (B3,D6)", "x":14, "y":4},
|
||||
{"label":"K4E (B3,D4)", "x":15, "y":4}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
36
keyboards/foxlab/key65/hotswap/keymaps/default/keymap.c
Normal file
36
keyboards/foxlab/key65/hotswap/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,36 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_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_GRV,
|
||||
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_ENT, KC_PGDN,
|
||||
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, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
};
|
||||
|
48
keyboards/foxlab/key65/hotswap/keymaps/via/keymap.c
Normal file
48
keyboards/foxlab/key65/hotswap/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,48 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_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_GRV,
|
||||
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_ENT, KC_PGDN,
|
||||
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, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[3] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
1
keyboards/foxlab/key65/hotswap/keymaps/via/rules.mk
Normal file
1
keyboards/foxlab/key65/hotswap/keymaps/via/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
VIA_ENABLE = yes
|
18
keyboards/foxlab/key65/hotswap/readme.md
Normal file
18
keyboards/foxlab/key65/hotswap/readme.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Foxlab Key 65 Hotswap
|
||||
|
||||

|
||||
|
||||
Key 65 is featured with the three-layer case and dual-gasket structure. The plate mounting system is an improved version of the gasket sandwich on Leaf 60. In addition, we add gaskets between the middle case and the bottom case. There's an optional rubber sheet between the PCB and the plate. The numerous options will offer you the most freedom to make the keyboard look and feel as you wish.
|
||||
|
||||
* Keyboard Maintainer: QMK
|
||||
* Hardware Supported: Key 65 Hotswap PCB
|
||||
* Hardware Availability: [Group Buy](https://geekhack.org/index.php?topic=102609.0)
|
||||
|
||||
This version is for the hotswap variant with the fixed layout below:
|
||||

|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make foxlab/key65/hotswap: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).
|
27
keyboards/foxlab/key65/hotswap/rules.mk
Normal file
27
keyboards/foxlab/key65/hotswap/rules.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# ATmega32A bootloadHID
|
||||
# ATmega328P USBasp
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||
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
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI support
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
172
keyboards/foxlab/key65/universal/config.h
Normal file
172
keyboards/foxlab/key65/universal/config.h
Normal file
@@ -0,0 +1,172 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* 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 0x464C // "FL"
|
||||
#define PRODUCT_ID 0x0004
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Fox Lab
|
||||
#define PRODUCT Key 65 Universal
|
||||
#define DESCRIPTION Key 65 Universal
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 16
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { D0, D1, F0, F4, F1 }
|
||||
#define MATRIX_COL_PINS { B1, F5, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, B0 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
// #define BACKLIGHT_BREATHING
|
||||
#define BACKLIGHT_LEVELS 5
|
||||
|
||||
#define RGB_DI_PIN E2
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 6
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* 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
|
||||
|
||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||
*/
|
||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
||||
|
||||
/*
|
||||
* Magic Key Options
|
||||
*
|
||||
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||
* the keyboard. They are best used in combination with the HID Listen program,
|
||||
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||
*
|
||||
* The options below allow the magic key functionality to be changed. This is
|
||||
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||
*
|
||||
*/
|
||||
|
||||
/* key combination for magic key command */
|
||||
/* defined by default; to change, uncomment and set to the combination you want */
|
||||
// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
|
||||
|
||||
/* control how magic key switches layers */
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||
|
||||
/* override magic key keymap */
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||
//#define MAGIC_KEY_HELP H
|
||||
//#define MAGIC_KEY_HELP_ALT SLASH
|
||||
//#define MAGIC_KEY_DEBUG D
|
||||
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||
//#define MAGIC_KEY_DEBUG_KBD K
|
||||
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||
//#define MAGIC_KEY_VERSION V
|
||||
//#define MAGIC_KEY_STATUS S
|
||||
//#define MAGIC_KEY_CONSOLE C
|
||||
//#define MAGIC_KEY_LAYER0 0
|
||||
//#define MAGIC_KEY_LAYER0_ALT GRAVE
|
||||
//#define MAGIC_KEY_LAYER1 1
|
||||
//#define MAGIC_KEY_LAYER2 2
|
||||
//#define MAGIC_KEY_LAYER3 3
|
||||
//#define MAGIC_KEY_LAYER4 4
|
||||
//#define MAGIC_KEY_LAYER5 5
|
||||
//#define MAGIC_KEY_LAYER6 6
|
||||
//#define MAGIC_KEY_LAYER7 7
|
||||
//#define MAGIC_KEY_LAYER8 8
|
||||
//#define MAGIC_KEY_LAYER9 9
|
||||
//#define MAGIC_KEY_BOOTLOADER B
|
||||
//#define MAGIC_KEY_BOOTLOADER_ALT ESC
|
||||
//#define MAGIC_KEY_LOCK CAPS
|
||||
//#define MAGIC_KEY_EEPROM E
|
||||
//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
|
||||
//#define MAGIC_KEY_NKRO N
|
||||
//#define MAGIC_KEY_SLEEP_LED Z
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
||||
/* disable these deprecated features by default */
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
306
keyboards/foxlab/key65/universal/info.json
Normal file
306
keyboards/foxlab/key65/universal/info.json
Normal file
@@ -0,0 +1,306 @@
|
||||
{
|
||||
"keyboard_name": "Key 65 Universal",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 16,
|
||||
"height": 5,
|
||||
"layouts": {
|
||||
"LAYOUT_65_ansi_blocker_split_bs": {
|
||||
"key_count": 68,
|
||||
"layout": [
|
||||
{"label":"K00 (D0,B1)", "x":0, "y":0},
|
||||
{"label":"K01 (D0,F5)", "x":1, "y":0},
|
||||
{"label":"K02 (D0,F6)", "x":2, "y":0},
|
||||
{"label":"K03 (D0,F7)", "x":3, "y":0},
|
||||
{"label":"K04 (D0,C7)", "x":4, "y":0},
|
||||
{"label":"K05 (D0,C6)", "x":5, "y":0},
|
||||
{"label":"K06 (D0,B6)", "x":6, "y":0},
|
||||
{"label":"K07 (D0,B5)", "x":7, "y":0},
|
||||
{"label":"K08 (D0,B4)", "x":8, "y":0},
|
||||
{"label":"K09 (D0,D7)", "x":9, "y":0},
|
||||
{"label":"K0A (D0,D6)", "x":10, "y":0},
|
||||
{"label":"K0B (D0,D4)", "x":11, "y":0},
|
||||
{"label":"K0C (D0,D5)", "x":12, "y":0},
|
||||
{"label":"K0D (D0,D3)", "x":13, "y":0},
|
||||
{"label":"K0E (D0,D2)", "x":14, "y":0},
|
||||
{"label":"K0F (D0,B0)", "x":15, "y":0},
|
||||
{"label":"K10 (D1,B1)", "x":0, "y":1, "w":1.5},
|
||||
{"label":"K11 (D1,F5)", "x":1.5, "y":1},
|
||||
{"label":"K12 (D1,F6)", "x":2.5, "y":1},
|
||||
{"label":"K13 (D1,F7)", "x":3.5, "y":1},
|
||||
{"label":"K14 (D1,C7)", "x":4.5, "y":1},
|
||||
{"label":"K15 (D1,C6)", "x":5.5, "y":1},
|
||||
{"label":"K16 (D1,B6)", "x":6.5, "y":1},
|
||||
{"label":"K17 (D1,B5)", "x":7.5, "y":1},
|
||||
{"label":"K18 (D1,B4)", "x":8.5, "y":1},
|
||||
{"label":"K19 (D1,D7)", "x":9.5, "y":1},
|
||||
{"label":"K1A (D1,D6)", "x":10.5, "y":1},
|
||||
{"label":"K1B (D1,D4)", "x":11.5, "y":1},
|
||||
{"label":"K1C (D1,D5)", "x":12.5, "y":1},
|
||||
{"label":"K1D (D1,D3)", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"K1F (D1,B0)", "x":15, "y":1},
|
||||
{"label":"K20 (F0,B1)", "x":0, "y":2, "w":1.75},
|
||||
{"label":"K21 (F0,F5)", "x":1.75, "y":2},
|
||||
{"label":"K22 (F0,F6)", "x":2.75, "y":2},
|
||||
{"label":"K23 (F0,F7)", "x":3.75, "y":2},
|
||||
{"label":"K24 (F0,C7)", "x":4.75, "y":2},
|
||||
{"label":"K25 (F0,C6)", "x":5.75, "y":2},
|
||||
{"label":"K26 (F0,B6)", "x":6.75, "y":2},
|
||||
{"label":"K27 (F0,B5)", "x":7.75, "y":2},
|
||||
{"label":"K28 (F0,B4)", "x":8.75, "y":2},
|
||||
{"label":"K29 (F0,D7)", "x":9.75, "y":2},
|
||||
{"label":"K2A (F0,D6)", "x":10.75, "y":2},
|
||||
{"label":"K2B (F0,D4)", "x":11.75, "y":2},
|
||||
{"label":"K2D (F0,D3)", "x":12.75, "y":2, "w":2.25},
|
||||
{"label":"K2F (F0,B0)", "x":15, "y":2},
|
||||
{"label":"K30 (F4,B1)", "x":0, "y":3, "w":2.25},
|
||||
{"label":"K32 (F4,F6)", "x":2.25, "y":3},
|
||||
{"label":"K33 (F4,F7)", "x":3.25, "y":3},
|
||||
{"label":"K34 (F4,C7)", "x":4.25, "y":3},
|
||||
{"label":"K35 (F4,C6)", "x":5.25, "y":3},
|
||||
{"label":"K36 (F4,B6)", "x":6.25, "y":3},
|
||||
{"label":"K37 (F4,B5)", "x":7.25, "y":3},
|
||||
{"label":"K38 (F4,B4)", "x":8.25, "y":3},
|
||||
{"label":"K39 (F4,D7)", "x":9.25, "y":3},
|
||||
{"label":"K3A (F4,D6)", "x":10.25, "y":3},
|
||||
{"label":"K3B (F4,D4)", "x":11.25, "y":3},
|
||||
{"label":"K3C (F4,D5)", "x":12.25, "y":3, "w":1.75},
|
||||
{"label":"K3D (F4,D3)", "x":14, "y":3},
|
||||
{"label":"K3F (F4,B0)", "x":15, "y":3},
|
||||
{"label":"K40 (F1,B1)", "x":0, "y":4, "w":1.25},
|
||||
{"label":"K41 (F1,F5)", "x":1.25, "y":4, "w":1.25},
|
||||
{"label":"K42 (F1,F6)", "x":2.5, "y":4, "w":1.25},
|
||||
{"label":"K46 (F1,B6)", "x":3.75, "y":4, "w":6.25},
|
||||
{"label":"K4A (F1,D6)", "x":10, "y":4, "w":1.25},
|
||||
{"label":"K4B (F1,D4)", "x":11.25, "y":4, "w":1.25},
|
||||
{"label":"K4C (F1,D5)", "x":13, "y":4},
|
||||
{"label":"K4D (F1,D3)", "x":14, "y":4},
|
||||
{"label":"K4F (F1,B0)", "x":15, "y":4}
|
||||
]
|
||||
},
|
||||
"LAYOUT_65_ansi_blocker_tsangan_split_bs": {
|
||||
"key_count": 67,
|
||||
"layout": [
|
||||
{"label":"K00 (D0,B1)", "x":0, "y":0},
|
||||
{"label":"K01 (D0,F5)", "x":1, "y":0},
|
||||
{"label":"K02 (D0,F6)", "x":2, "y":0},
|
||||
{"label":"K03 (D0,F7)", "x":3, "y":0},
|
||||
{"label":"K04 (D0,C7)", "x":4, "y":0},
|
||||
{"label":"K05 (D0,C6)", "x":5, "y":0},
|
||||
{"label":"K06 (D0,B6)", "x":6, "y":0},
|
||||
{"label":"K07 (D0,B5)", "x":7, "y":0},
|
||||
{"label":"K08 (D0,B4)", "x":8, "y":0},
|
||||
{"label":"K09 (D0,D7)", "x":9, "y":0},
|
||||
{"label":"K0A (D0,D6)", "x":10, "y":0},
|
||||
{"label":"K0B (D0,D4)", "x":11, "y":0},
|
||||
{"label":"K0C (D0,D5)", "x":12, "y":0},
|
||||
{"label":"K0D (D0,D3)", "x":13, "y":0},
|
||||
{"label":"K0E (D0,D2)", "x":14, "y":0},
|
||||
{"label":"K0F (D0,B0)", "x":15, "y":0},
|
||||
{"label":"K10 (D1,B1)", "x":0, "y":1, "w":1.5},
|
||||
{"label":"K11 (D1,F5)", "x":1.5, "y":1},
|
||||
{"label":"K12 (D1,F6)", "x":2.5, "y":1},
|
||||
{"label":"K13 (D1,F7)", "x":3.5, "y":1},
|
||||
{"label":"K14 (D1,C7)", "x":4.5, "y":1},
|
||||
{"label":"K15 (D1,C6)", "x":5.5, "y":1},
|
||||
{"label":"K16 (D1,B6)", "x":6.5, "y":1},
|
||||
{"label":"K17 (D1,B5)", "x":7.5, "y":1},
|
||||
{"label":"K18 (D1,B4)", "x":8.5, "y":1},
|
||||
{"label":"K19 (D1,D7)", "x":9.5, "y":1},
|
||||
{"label":"K1A (D1,D6)", "x":10.5, "y":1},
|
||||
{"label":"K1B (D1,D4)", "x":11.5, "y":1},
|
||||
{"label":"K1C (D1,D5)", "x":12.5, "y":1},
|
||||
{"label":"K1D (D1,D3)", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"K1F (D1,B0)", "x":15, "y":1},
|
||||
{"label":"K20 (F0,B1)", "x":0, "y":2, "w":1.75},
|
||||
{"label":"K21 (F0,F5)", "x":1.75, "y":2},
|
||||
{"label":"K22 (F0,F6)", "x":2.75, "y":2},
|
||||
{"label":"K23 (F0,F7)", "x":3.75, "y":2},
|
||||
{"label":"K24 (F0,C7)", "x":4.75, "y":2},
|
||||
{"label":"K25 (F0,C6)", "x":5.75, "y":2},
|
||||
{"label":"K26 (F0,B6)", "x":6.75, "y":2},
|
||||
{"label":"K27 (F0,B5)", "x":7.75, "y":2},
|
||||
{"label":"K28 (F0,B4)", "x":8.75, "y":2},
|
||||
{"label":"K29 (F0,D7)", "x":9.75, "y":2},
|
||||
{"label":"K2A (F0,D6)", "x":10.75, "y":2},
|
||||
{"label":"K2B (F0,D4)", "x":11.75, "y":2},
|
||||
{"label":"K2D (F0,D3)", "x":12.75, "y":2, "w":2.25},
|
||||
{"label":"K2F (F0,B0)", "x":15, "y":2},
|
||||
{"label":"K30 (F4,B1)", "x":0, "y":3, "w":2.25},
|
||||
{"label":"K32 (F4,F6)", "x":2.25, "y":3},
|
||||
{"label":"K33 (F4,F7)", "x":3.25, "y":3},
|
||||
{"label":"K34 (F4,C7)", "x":4.25, "y":3},
|
||||
{"label":"K35 (F4,C6)", "x":5.25, "y":3},
|
||||
{"label":"K36 (F4,B6)", "x":6.25, "y":3},
|
||||
{"label":"K37 (F4,B5)", "x":7.25, "y":3},
|
||||
{"label":"K38 (F4,B4)", "x":8.25, "y":3},
|
||||
{"label":"K39 (F4,D7)", "x":9.25, "y":3},
|
||||
{"label":"K3A (F4,D6)", "x":10.25, "y":3},
|
||||
{"label":"K3B (F4,D4)", "x":11.25, "y":3},
|
||||
{"label":"K3C (F4,D5)", "x":12.25, "y":3, "w":1.75},
|
||||
{"label":"K3D (F4,D3)", "x":14, "y":3},
|
||||
{"label":"K3F (F4,B0)", "x":15, "y":3},
|
||||
{"label":"K40 (F1,B1)", "x":0, "y":4, "w":1.5},
|
||||
{"label":"K41 (F1,F5)", "x":1.5, "y":4},
|
||||
{"label":"K42 (F1,F6)", "x":2.5, "y":4, "w":1.5},
|
||||
{"label":"K46 (F1,B6)", "x":4, "y":4, "w":7},
|
||||
{"label":"K4A (F1,D6)", "x":11, "y":4, "w":1.5},
|
||||
{"label":"K4C (F1,D5)", "x":13, "y":4},
|
||||
{"label":"K4D (F1,D3)", "x":14, "y":4},
|
||||
{"label":"K4F (F1,B0)", "x":15, "y":4}
|
||||
]
|
||||
},
|
||||
"LAYOUT_iso_all": {
|
||||
"key_count": 71,
|
||||
"layout": [
|
||||
{"label":"K00 (D0,B1)", "x":0, "y":0},
|
||||
{"label":"K01 (D0,F5)", "x":1, "y":0},
|
||||
{"label":"K02 (D0,F6)", "x":2, "y":0},
|
||||
{"label":"K03 (D0,F7)", "x":3, "y":0},
|
||||
{"label":"K04 (D0,C7)", "x":4, "y":0},
|
||||
{"label":"K05 (D0,C6)", "x":5, "y":0},
|
||||
{"label":"K06 (D0,B6)", "x":6, "y":0},
|
||||
{"label":"K07 (D0,B5)", "x":7, "y":0},
|
||||
{"label":"K08 (D0,B4)", "x":8, "y":0},
|
||||
{"label":"K09 (D0,D7)", "x":9, "y":0},
|
||||
{"label":"K0A (D0,D6)", "x":10, "y":0},
|
||||
{"label":"K0B (D0,D4)", "x":11, "y":0},
|
||||
{"label":"K0C (D0,D5)", "x":12, "y":0},
|
||||
{"label":"K0D (D0,D3)", "x":13, "y":0},
|
||||
{"label":"K0E (D0,D2)", "x":14, "y":0},
|
||||
{"label":"K0F (D0,B0)", "x":15, "y":0},
|
||||
{"label":"K10 (D1,B1)", "x":0, "y":1, "w":1.5},
|
||||
{"label":"K11 (D1,F5)", "x":1.5, "y":1},
|
||||
{"label":"K12 (D1,F6)", "x":2.5, "y":1},
|
||||
{"label":"K13 (D1,F7)", "x":3.5, "y":1},
|
||||
{"label":"K14 (D1,C7)", "x":4.5, "y":1},
|
||||
{"label":"K15 (D1,C6)", "x":5.5, "y":1},
|
||||
{"label":"K16 (D1,B6)", "x":6.5, "y":1},
|
||||
{"label":"K17 (D1,B5)", "x":7.5, "y":1},
|
||||
{"label":"K18 (D1,B4)", "x":8.5, "y":1},
|
||||
{"label":"K19 (D1,D7)", "x":9.5, "y":1},
|
||||
{"label":"K1A (D1,D6)", "x":10.5, "y":1},
|
||||
{"label":"K1B (D1,D4)", "x":11.5, "y":1},
|
||||
{"label":"K1C (D1,D5)", "x":12.5, "y":1},
|
||||
{"label":"K1F (D1,B0)", "x":15, "y":1},
|
||||
{"label":"K20 (F0,B1)", "x":0, "y":2, "w":1.75},
|
||||
{"label":"K21 (F0,F5)", "x":1.75, "y":2},
|
||||
{"label":"K22 (F0,F6)", "x":2.75, "y":2},
|
||||
{"label":"K23 (F0,F7)", "x":3.75, "y":2},
|
||||
{"label":"K24 (F0,C7)", "x":4.75, "y":2},
|
||||
{"label":"K25 (F0,C6)", "x":5.75, "y":2},
|
||||
{"label":"K26 (F0,B6)", "x":6.75, "y":2},
|
||||
{"label":"K27 (F0,B5)", "x":7.75, "y":2},
|
||||
{"label":"K28 (F0,B4)", "x":8.75, "y":2},
|
||||
{"label":"K29 (F0,D7)", "x":9.75, "y":2},
|
||||
{"label":"K2A (F0,D6)", "x":10.75, "y":2},
|
||||
{"label":"K2B (F0,D4)", "x":11.75, "y":2},
|
||||
{"label":"K1D (D1,D3)", "x":12.75, "y":2},
|
||||
{"label":"K2D (F0,D3)", "x":13.75, "y":1, "w":1.25, "h":2},
|
||||
{"label":"K2F (F0,B0)", "x":15, "y":2},
|
||||
{"label":"K30 (F4,B1)", "x":0, "y":3, "w":1.25},
|
||||
{"label":"K31 (F4,F5)", "x":1.25, "y":3},
|
||||
{"label":"K32 (F4,F6)", "x":2.25, "y":3},
|
||||
{"label":"K33 (F4,F7)", "x":3.25, "y":3},
|
||||
{"label":"K34 (F4,C7)", "x":4.25, "y":3},
|
||||
{"label":"K35 (F4,C6)", "x":5.25, "y":3},
|
||||
{"label":"K36 (F4,B6)", "x":6.25, "y":3},
|
||||
{"label":"K37 (F4,B5)", "x":7.25, "y":3},
|
||||
{"label":"K38 (F4,B4)", "x":8.25, "y":3},
|
||||
{"label":"K39 (F4,D7)", "x":9.25, "y":3},
|
||||
{"label":"K3A (F4,D6)", "x":10.25, "y":3},
|
||||
{"label":"K3B (F4,D4)", "x":11.25, "y":3},
|
||||
{"label":"K3C (F4,D5)", "x":12.25, "y":3, "w":1.75},
|
||||
{"label":"K3D (F4,D3)", "x":14, "y":3},
|
||||
{"label":"K3F (F4,B0)", "x":15, "y":3},
|
||||
{"label":"K40 (F1,B1)", "x":0, "y":4, "w":1.25},
|
||||
{"label":"K41 (F1,F5)", "x":1.25, "y":4, "w":1.25},
|
||||
{"label":"K42 (F1,F6)", "x":2.5, "y":4, "w":1.25},
|
||||
{"label":"K44 (F1,C7)", "x":3.75, "y":4, "w":2.25},
|
||||
{"label":"K46 (F1,B6)", "x":6, "y":4, "w":1.25},
|
||||
{"label":"K48 (F1,B4)", "x":7.25, "y":4, "w":2.75},
|
||||
{"label":"K4A (F1,D6)", "x":10, "y":4, "w":1.25},
|
||||
{"label":"K4B (F1,D4)", "x":11.25, "y":4, "w":1.25},
|
||||
{"label":"K4C (F1,D5)", "x":13, "y":4},
|
||||
{"label":"K4D (F1,D3)", "x":14, "y":4},
|
||||
{"label":"K4F (F1,B0)", "x":15, "y":4}
|
||||
]
|
||||
},
|
||||
"LAYOUT_all": {
|
||||
"key_count": 71,
|
||||
"layout": [
|
||||
{"label":"K00 (D0,B1)", "x":0, "y":0},
|
||||
{"label":"K01 (D0,F5)", "x":1, "y":0},
|
||||
{"label":"K02 (D0,F6)", "x":2, "y":0},
|
||||
{"label":"K03 (D0,F7)", "x":3, "y":0},
|
||||
{"label":"K04 (D0,C7)", "x":4, "y":0},
|
||||
{"label":"K05 (D0,C6)", "x":5, "y":0},
|
||||
{"label":"K06 (D0,B6)", "x":6, "y":0},
|
||||
{"label":"K07 (D0,B5)", "x":7, "y":0},
|
||||
{"label":"K08 (D0,B4)", "x":8, "y":0},
|
||||
{"label":"K09 (D0,D7)", "x":9, "y":0},
|
||||
{"label":"K0A (D0,D6)", "x":10, "y":0},
|
||||
{"label":"K0B (D0,D4)", "x":11, "y":0},
|
||||
{"label":"K0C (D0,D5)", "x":12, "y":0},
|
||||
{"label":"K0D (D0,D3)", "x":13, "y":0},
|
||||
{"label":"K0E (D0,D2)", "x":14, "y":0},
|
||||
{"label":"K0F (D0,B0)", "x":15, "y":0},
|
||||
{"label":"K10 (D1,B1)", "x":0, "y":1, "w":1.5},
|
||||
{"label":"K11 (D1,F5)", "x":1.5, "y":1},
|
||||
{"label":"K12 (D1,F6)", "x":2.5, "y":1},
|
||||
{"label":"K13 (D1,F7)", "x":3.5, "y":1},
|
||||
{"label":"K14 (D1,C7)", "x":4.5, "y":1},
|
||||
{"label":"K15 (D1,C6)", "x":5.5, "y":1},
|
||||
{"label":"K16 (D1,B6)", "x":6.5, "y":1},
|
||||
{"label":"K17 (D1,B5)", "x":7.5, "y":1},
|
||||
{"label":"K18 (D1,B4)", "x":8.5, "y":1},
|
||||
{"label":"K19 (D1,D7)", "x":9.5, "y":1},
|
||||
{"label":"K1A (D1,D6)", "x":10.5, "y":1},
|
||||
{"label":"K1B (D1,D4)", "x":11.5, "y":1},
|
||||
{"label":"K1C (D1,D5)", "x":12.5, "y":1},
|
||||
{"label":"K1D (D1,D3)", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"K1F (D1,B0)", "x":15, "y":1},
|
||||
{"label":"K20 (F0,B1)", "x":0, "y":2, "w":1.75},
|
||||
{"label":"K21 (F0,F5)", "x":1.75, "y":2},
|
||||
{"label":"K22 (F0,F6)", "x":2.75, "y":2},
|
||||
{"label":"K23 (F0,F7)", "x":3.75, "y":2},
|
||||
{"label":"K24 (F0,C7)", "x":4.75, "y":2},
|
||||
{"label":"K25 (F0,C6)", "x":5.75, "y":2},
|
||||
{"label":"K26 (F0,B6)", "x":6.75, "y":2},
|
||||
{"label":"K27 (F0,B5)", "x":7.75, "y":2},
|
||||
{"label":"K28 (F0,B4)", "x":8.75, "y":2},
|
||||
{"label":"K29 (F0,D7)", "x":9.75, "y":2},
|
||||
{"label":"K2A (F0,D6)", "x":10.75, "y":2},
|
||||
{"label":"K2B (F0,D4)", "x":11.75, "y":2},
|
||||
{"label":"K2D (F0,D3)", "x":12.75, "y":2, "w":2.25},
|
||||
{"label":"K2F (F0,B0)", "x":15, "y":2},
|
||||
{"label":"K30 (F4,B1)", "x":0, "y":3, "w":1.25},
|
||||
{"label":"K31 (F4,F5)", "x":1.25, "y":3},
|
||||
{"label":"K32 (F4,F6)", "x":2.25, "y":3},
|
||||
{"label":"K33 (F4,F7)", "x":3.25, "y":3},
|
||||
{"label":"K34 (F4,C7)", "x":4.25, "y":3},
|
||||
{"label":"K35 (F4,C6)", "x":5.25, "y":3},
|
||||
{"label":"K36 (F4,B6)", "x":6.25, "y":3},
|
||||
{"label":"K37 (F4,B5)", "x":7.25, "y":3},
|
||||
{"label":"K38 (F4,B4)", "x":8.25, "y":3},
|
||||
{"label":"K39 (F4,D7)", "x":9.25, "y":3},
|
||||
{"label":"K3A (F4,D6)", "x":10.25, "y":3},
|
||||
{"label":"K3B (F4,D4)", "x":11.25, "y":3},
|
||||
{"label":"K3C (F4,D5)", "x":12.25, "y":3, "w":1.75},
|
||||
{"label":"K3D (F4,D3)", "x":14, "y":3},
|
||||
{"label":"K3F (F4,B0)", "x":15, "y":3},
|
||||
{"label":"K40 (F1,B1)", "x":0, "y":4, "w":1.25},
|
||||
{"label":"K41 (F1,F5)", "x":1.25, "y":4, "w":1.25},
|
||||
{"label":"K42 (F1,F6)", "x":2.5, "y":4, "w":1.25},
|
||||
{"label":"K44 (F1,C7)", "x":3.75, "y":4, "w":2.25},
|
||||
{"label":"K46 (F1,B6)", "x":6, "y":4, "w":1.25},
|
||||
{"label":"K48 (F1,B4)", "x":7.25, "y":4, "w":2.75},
|
||||
{"label":"K4A (F1,D6)", "x":10, "y":4, "w":1.25},
|
||||
{"label":"K4B (F1,D4)", "x":11.25, "y":4, "w":1.25},
|
||||
{"label":"K4C (F1,D5)", "x":13, "y":4},
|
||||
{"label":"K4D (F1,D3)", "x":14, "y":4},
|
||||
{"label":"K4F (F1,B0)", "x":15, "y":4}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
36
keyboards/foxlab/key65/universal/keymaps/default/keymap.c
Normal file
36
keyboards/foxlab/key65/universal/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,36 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* 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_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_DEL,
|
||||
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_INS,
|
||||
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_PGUP,
|
||||
KC_LSFT, KC_SPC, 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_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT_all(
|
||||
RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
};
|
||||
|
48
keyboards/foxlab/key65/universal/keymaps/via/keymap.c
Normal file
48
keyboards/foxlab/key65/universal/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,48 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* 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_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_DEL,
|
||||
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_INS,
|
||||
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_PGUP,
|
||||
KC_LSFT, KC_SPC, 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_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT_all(
|
||||
RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[3] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
1
keyboards/foxlab/key65/universal/keymaps/via/rules.mk
Normal file
1
keyboards/foxlab/key65/universal/keymaps/via/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
VIA_ENABLE = yes
|
22
keyboards/foxlab/key65/universal/readme.md
Normal file
22
keyboards/foxlab/key65/universal/readme.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Foxlab Key 65 Universal
|
||||
|
||||

|
||||
|
||||
Key 65 is featured with the three-layer case and dual-gasket structure. The plate mounting system is an improved version of the gasket sandwich on Leaf 60. In addition, we add gaskets between the middle case and the bottom case. There's an optional rubber sheet between the PCB and the plate. The numerous options will offer you the most freedom to make the keyboard look and feel as you wish.
|
||||
|
||||
* Keyboard Maintainer: QMK
|
||||
* Hardware Supported: Key 65 Universal PCB
|
||||
* Hardware Availability: [Group Buy](https://geekhack.org/index.php?topic=102609.0)
|
||||
|
||||
This version is for the universal variant with the layouts below available:
|
||||

|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make foxlab/key65/universal: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).
|
||||
|
||||
## RGB LED support
|
||||
|
||||
The universal PCB supports RGB LEDs as an LED strip, but is not supplied with one. To use RGB LEDs, you should configure the RGBLED_NUM to match the number of LEDs on your strip.
|
29
keyboards/foxlab/key65/universal/rules.mk
Normal file
29
keyboards/foxlab/key65/universal/rules.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# ATmega32A bootloadHID
|
||||
# ATmega328P USBasp
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||
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
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI support
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||
|
||||
LAYOUTS = 65_ansi_blocker_split_bs # Support community layouts
|
34
keyboards/foxlab/key65/universal/universal.c
Normal file
34
keyboards/foxlab/key65/universal/universal.c
Normal file
@@ -0,0 +1,34 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* 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 "universal.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
led_init_ports();
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
void led_init_ports(void) {
|
||||
setPinOutput(E6);
|
||||
writePinHigh(E6);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
writePin(E6, !led_state.caps_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
75
keyboards/foxlab/key65/universal/universal.h
Normal file
75
keyboards/foxlab/key65/universal/universal.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/* Copyright 2020 Jumail Mundekkat / MxBlue
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_65_ansi_blocker_split_bs( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1F, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2F, \
|
||||
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, \
|
||||
K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4F \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO, K1F }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, KC_NO, K2F }, \
|
||||
{ K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, K3F }, \
|
||||
{ K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, KC_NO, K4F }, \
|
||||
}
|
||||
|
||||
#define LAYOUT_65_ansi_blocker_tsangan_split_bs( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1F, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2F, \
|
||||
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, \
|
||||
K40, K41, K42, K46, K4B, K4C, K4D, K4F \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO, K1F }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, KC_NO, K2F }, \
|
||||
{ K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, K3F }, \
|
||||
{ K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, KC_NO, K4B, K4C, K4D, KC_NO, K4F }, \
|
||||
}
|
||||
|
||||
#define LAYOUT_iso_all( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1F, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K1D, K2D, K2F, \
|
||||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, \
|
||||
K40, K41, K42, K44, K46, K48, K4A, K4B, K4C, K4D, K4F \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO, K1F }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, KC_NO, K2F }, \
|
||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, K3F }, \
|
||||
{ K40, K41, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, KC_NO, K4F }, \
|
||||
}
|
||||
|
||||
#define LAYOUT_all( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1F, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2F, \
|
||||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, \
|
||||
K40, K41, K42, K44, K46, K48, K4A, K4B, K4C, K4D, K4F \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO, K1F }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, KC_NO, K2F }, \
|
||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, K3F }, \
|
||||
{ K40, K41, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, KC_NO, K4F }, \
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"keyboard":"handwired/onekey/pytest",
|
||||
"keymap":"default_json",
|
||||
"layout":"LAYOUT",
|
||||
"layers":[["KC_A"]],
|
||||
"author":"qmk",
|
||||
"notes":"This file is a keymap.json file for handwired/onekey/pytest",
|
||||
"version":1
|
||||
}
|
@@ -1 +1,2 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__};
|
||||
|
@@ -17,10 +17,10 @@ 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
|
||||
|
||||
/* auto shift config */
|
||||
#define AUTO_SHIFT_TIMEOUT 150
|
||||
// place overrides here
|
||||
|
||||
// If you need more program area, try select and reduce rgblight modes to use.
|
||||
|
||||
|
@@ -11,7 +11,6 @@
|
||||
#include "ssd1306.h"
|
||||
#endif
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
//Following line allows macro to read current RGB settings
|
||||
@@ -26,20 +25,24 @@ extern uint8_t is_master;
|
||||
// entirely and just use numbers.
|
||||
enum layer_number {
|
||||
_QWERTY = 0,
|
||||
_COLEMAK,
|
||||
_DVORAK,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_FUNC,
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
RAISE,
|
||||
FUNC,
|
||||
ADJUST,
|
||||
BACKLIT,
|
||||
EISU,
|
||||
KANA
|
||||
KANA,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
enum macro_keycodes {
|
||||
@@ -54,23 +57,65 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | = |
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | - |
|
||||
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | ESC | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||
* | Ctrl | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* |Shift | Z | X | C | V | B | Fn | Fn | N | M | , | . | / |Shift |
|
||||
* | Shift| Z | X | C | V | B | [ | ] | N | M | , | . | / |Enter |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | EISU | Ctrl | Alt | GUI |Lower |Space | Bksp |Enter |Space |Raise | GUI | Alt | Ctrl | KANA |
|
||||
* |Adjust| Esc | Alt | GUI | EISU |Lower |Space |Space |Raise | KANA | Left | Down | Up |Right |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, \
|
||||
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, FUNC, FUNC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||
EISU, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_BSPC, KC_ENT, KC_SPC, RAISE, KC_RGUI, KC_RALT, KC_RCTL, KANA \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
|
||||
KC_TAB, 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, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||
ADJUST, KC_ESC, KC_LALT, KC_LGUI, EISU, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Colemak
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Tab | Q | W | F | P | G | | J | L | U | Y | ; | Bksp |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Ctrl | A | R | S | T | D | | H | N | E | I | O | ' |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Shift| Z | X | C | V | B | [ | ] | K | M | , | . | / |Enter |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* |Adjust| Esc | Alt | GUI | EISU |Lower |Space |Space |Raise | KANA | Left | Down | Up |Right |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_COLEMAK] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
|
||||
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, \
|
||||
KC_LCTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||
ADJUST, KC_ESC, KC_LALT, KC_LGUI, EISU, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Dvorak
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Tab | ' | , | . | P | Y | | F | G | C | R | L | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Ctrl | A | O | E | U | I | | D | H | T | N | S | / |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Shift| ; | Q | J | K | X | [ | ] | B | M | W | V | Z |Enter |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* |Adjust| Esc | Alt | GUI | EISU |Lower |Space |Space |Raise | KANA | Left | Down | Up |Right |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_DVORAK] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, \
|
||||
KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \
|
||||
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_LBRC, KC_RBRC, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , \
|
||||
ADJUST, KC_ESC, KC_LALT, KC_LGUI, EISU, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Lower
|
||||
@@ -79,9 +124,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Del | F1 | F2 | F3 | F4 | F5 | | F6 | _ | + | { | } | | |
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | F6 | _ | + | { | } | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | | F12 | | | | | |
|
||||
* | | F7 | F8 | F9 | F10 | F11 | ( | ) | F12 | | | Home | End | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
@@ -89,8 +134,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_LOWER] = LAYOUT( \
|
||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \
|
||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \
|
||||
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, KC_F12, _______, _______, _______, _______, _______, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_LPRN, KC_RPRN, KC_F12, _______, _______, KC_HOME, KC_END, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
@@ -100,9 +145,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Del | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | | F12 | | | | | |
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | | F12 | | |PageDn|PageUp| |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
@@ -110,29 +155,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_RAISE] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
|
||||
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, KC_F12, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
/* Func
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | | | | | | | LEFT | DOWN | UP |RIGHT | PGUP | |
|
||||
* |------+------+------+------+------+------|------+------|------+------+------+------+------+------|
|
||||
* | | | | | | | | | HOME | END |Alt+← |Alt+→ | PGDN | |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_FUNC] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
|
||||
_______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_PGUP, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END, LALT(KC_LEFT), LALT(KC_RGHT), KC_PGDN, _______, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, KC_F12, _______, _______, KC_PGDN, KC_PGUP, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
@@ -140,9 +164,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | Reset| | | | | | | | | | | Del |
|
||||
* | | Reset|RGBRST| | | | | | | | | | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | | |Aud on|Audoff| Mac | | Win |Qwerty| | | | |
|
||||
* | | | |Aud on|Audoff| Mac | | Win |Qwerty|Colemk|Dvorak| | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | |RGB ON| HUE+ | SAT+ | VAL+ |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
@@ -151,8 +175,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
*/
|
||||
[_ADJUST] = LAYOUT( \
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
|
||||
_______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, \
|
||||
_______, RESET, RGBRST, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD \
|
||||
)
|
||||
@@ -164,81 +188,99 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | = | Q | W | E | R | T | | Y | U | I | O | P | - |
|
||||
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Esc | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||
* | Ctrl | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Shift| Z | X | C | V | B | | N | M | , | . | / |Enter |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* | EISU | Ctrl | Alt | GUI |ESC/Lower | Func | Bksp |Enter |Space |Raise | GUI | Alt | Ctrl | KANA |
|
||||
* |Adjust| Esc | Alt | GUI | EISU |Lower |Space |Space |Raise | KANA | Left | Down | Up |Right |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT( \
|
||||
KC_EQL, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, \
|
||||
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||
KC_TAB, 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, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||
EISU, KC_LCTL, KC_LALT, KC_LGUI, LT(_LOWER, KC_ESC), FUNC, KC_BSPC, KC_ENT, KC_SPC, RAISE, KC_RGUI, KC_RALT, KC_RCTL, KANA \
|
||||
ADJUST, KC_ESC, KC_LALT, KC_LGUI, EISU, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Colemak
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | Tab | Q | W | F | P | G | | J | L | U | Y | ; | Bksp |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Ctrl | A | R | S | T | D | | H | N | E | I | O | ' |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Shift| Z | X | C | V | B | | K | M | , | . | / |Enter |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* |Adjust| Esc | Alt | GUI | EISU |Lower |Space |Space |Raise | KANA | Left | Down | Up |Right |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_COLEMAK] = LAYOUT( \
|
||||
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, \
|
||||
KC_LCTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||
ADJUST, KC_ESC, KC_LALT, KC_LGUI, EISU, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Dvorak
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | Tab | ' | , | . | P | Y | | F | G | C | R | L | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Ctrl | A | O | E | U | I | | D | H | T | N | S | / |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Shift| ; | Q | J | K | X | | B | M | W | V | Z |Enter |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* |Adjust| Esc | Alt | GUI | EISU |Lower |Space |Space |Raise | KANA | Left | Down | Up |Right |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_DVORAK] = LAYOUT( \
|
||||
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, \
|
||||
KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \
|
||||
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , \
|
||||
ADJUST, KC_ESC, KC_LALT, KC_LGUI, EISU, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Lower
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Del | F1 | F2 | F3 | F4 | F5 | | F6 | _ | + | { | } | | |
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | F6 | _ | + | { | } | | |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | F12 | | | | | |
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | F12 | | | Home | End | |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_LOWER] = LAYOUT( \
|
||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \
|
||||
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_HOME, KC_END, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
/* Raise
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | Del | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | F12 | | | | | |
|
||||
* | | F7 | F8 | F9 | F10 | F11 | | F12 | | |PageDn|PageUp| |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_RAISE] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \
|
||||
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
/* Func
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | | | | | | | LEFT | DOWN | UP |RIGHT | PGUP | |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | | | | | | | HOME | END |Alt+← |Alt+→ | PGDN | |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_FUNC] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
|
||||
_______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_PGUP, _______, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_END, LALT(KC_LEFT), LALT(KC_RGHT), KC_PGDN, _______, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_PGDN, KC_PGUP, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
/* Adjust (Lower + Raise)
|
||||
* ,-----------------------------------------. ,-----------------------------------------.
|
||||
* | | Reset| | | | | | | | | | | Del |
|
||||
* | | Reset|RGBRST| | | | | | | | | | Del |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | | |Aud on|Audoff| Mac | | Win |Qwerty| | | | |
|
||||
* | | | |Aud on|Audoff| Mac | | Win |Qwerty|Colemk|Dvorak| | |
|
||||
* |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||
* | | | | | | | | | |RGB ON| HUE+ | SAT+ | VAL+ |
|
||||
* |------+------+------+------+------+------+-------------+------+------+------+------+------+------|
|
||||
@@ -246,8 +288,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_ADJUST] = LAYOUT( \
|
||||
_______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, \
|
||||
_______, RESET, RGBRST, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD \
|
||||
)
|
||||
@@ -272,11 +314,6 @@ float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
|
||||
bool TOG_STATUS = false;
|
||||
int RGB_current_mode;
|
||||
|
||||
void persistent_default_layer_set(uint16_t default_layer) {
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
// Setting ADJUST layer RGB back to default
|
||||
void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
|
||||
if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) {
|
||||
@@ -296,7 +333,25 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_qwerty);
|
||||
#endif
|
||||
persistent_default_layer_set(1UL<<_QWERTY);
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_colemak);
|
||||
#endif
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_dvorak);
|
||||
#endif
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
@@ -346,14 +401,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case FUNC:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_FUNC);
|
||||
} else {
|
||||
layer_off(_FUNC);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
@@ -397,6 +444,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RGBRST:
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
if (record->event.pressed) {
|
||||
eeconfig_update_rgblight_default();
|
||||
rgblight_enable();
|
||||
RGB_current_mode = rgblight_config.mode;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -444,14 +500,7 @@ void music_scale_user(void)
|
||||
//SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h
|
||||
#ifdef SSD1306OLED
|
||||
|
||||
// hook point for 'led_test' keymap
|
||||
// 'default' keymap's led_test_init() is empty function, do nothing
|
||||
// 'led_test' keymap's led_test_init() force rgblight_mode_noeeprom(RGBLIGHT_MODE_RGB_TEST);
|
||||
__attribute__ ((weak))
|
||||
void led_test_init(void) {}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
led_test_init();
|
||||
iota_gfx_task(); // this is what updates the display continuously
|
||||
}
|
||||
|
||||
@@ -467,41 +516,42 @@ void matrix_update(struct CharacterMatrix *dest,
|
||||
#define L_BASE 0
|
||||
#define L_LOWER (1<<_LOWER)
|
||||
#define L_RAISE (1<<_RAISE)
|
||||
#define L_FUNC (1<<_FUNC)
|
||||
#define L_ADJUST (1<<_ADJUST)
|
||||
#define L_ADJUST_TRI (L_ADJUST|L_RAISE|L_LOWER)
|
||||
|
||||
static void render_logo(struct CharacterMatrix *matrix) {
|
||||
|
||||
static char logo[]={
|
||||
static const char helix_logo[] PROGMEM ={
|
||||
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,
|
||||
0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,
|
||||
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
||||
0};
|
||||
matrix_write(matrix, logo);
|
||||
matrix_write_P(matrix, helix_logo);
|
||||
//matrix_write_P(&matrix, PSTR(" Split keyboard kit"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void render_status(struct CharacterMatrix *matrix) {
|
||||
|
||||
// Render to mode icon
|
||||
static char logo[][2][3]={{{0x95,0x96,0},{0xb5,0xb6,0}},{{0x97,0x98,0},{0xb7,0xb8,0}}};
|
||||
if(keymap_config.swap_lalt_lgui==false){
|
||||
matrix_write(matrix, logo[0][0]);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
matrix_write(matrix, logo[0][1]);
|
||||
}else{
|
||||
matrix_write(matrix, logo[1][0]);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
matrix_write(matrix, logo[1][1]);
|
||||
static void render_rgbled_status(bool full, struct CharacterMatrix *matrix) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
char buf[30];
|
||||
if (RGBLIGHT_MODES > 1 && rgblight_config.enable) {
|
||||
if (full) {
|
||||
snprintf(buf, sizeof(buf), " LED %2d: %d,%d,%d ",
|
||||
rgblight_config.mode,
|
||||
rgblight_config.hue/RGBLIGHT_HUE_STEP,
|
||||
rgblight_config.sat/RGBLIGHT_SAT_STEP,
|
||||
rgblight_config.val/RGBLIGHT_VAL_STEP);
|
||||
} else {
|
||||
snprintf(buf, sizeof(buf), "[%2d] ",rgblight_config.mode);
|
||||
}
|
||||
matrix_write(matrix, buf);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void render_layer_status(struct CharacterMatrix *matrix) {
|
||||
// Define layers here, Have not worked out how to have text displayed for each layer. Copy down the number you see and add a case for it below
|
||||
char buf[40];
|
||||
snprintf(buf,sizeof(buf), "Undef-%ld", layer_state);
|
||||
matrix_write_P(matrix, PSTR("\nLayer: "));
|
||||
char buf[10];
|
||||
matrix_write_P(matrix, PSTR("Layer: "));
|
||||
switch (layer_state) {
|
||||
case L_BASE:
|
||||
matrix_write_P(matrix, PSTR("Default"));
|
||||
@@ -512,24 +562,44 @@ void render_status(struct CharacterMatrix *matrix) {
|
||||
case L_LOWER:
|
||||
matrix_write_P(matrix, PSTR("Lower"));
|
||||
break;
|
||||
case L_FUNC:
|
||||
matrix_write_P(matrix, PSTR("Func"));
|
||||
break;
|
||||
case L_ADJUST:
|
||||
case L_ADJUST_TRI:
|
||||
matrix_write_P(matrix, PSTR("Adjust"));
|
||||
break;
|
||||
default:
|
||||
matrix_write_P(matrix, PSTR("Undef-"));
|
||||
snprintf(buf,sizeof(buf), "%ld", layer_state);
|
||||
matrix_write(matrix, buf);
|
||||
}
|
||||
}
|
||||
|
||||
void render_status(struct CharacterMatrix *matrix) {
|
||||
|
||||
// Render to mode icon
|
||||
static const char os_logo[][2][3] PROGMEM ={{{0x95,0x96,0},{0xb5,0xb6,0}},{{0x97,0x98,0},{0xb7,0xb8,0}}};
|
||||
if(keymap_config.swap_lalt_lgui==false){
|
||||
matrix_write_P(matrix, os_logo[0][0]);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
matrix_write_P(matrix, os_logo[0][1]);
|
||||
}else{
|
||||
matrix_write_P(matrix, os_logo[1][0]);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
matrix_write_P(matrix, os_logo[1][1]);
|
||||
}
|
||||
|
||||
matrix_write_P(matrix, PSTR(" "));
|
||||
render_layer_status(matrix);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
|
||||
// Host Keyboard LED Status
|
||||
char led[40];
|
||||
snprintf(led, sizeof(led), "\n%s %s %s",
|
||||
(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) ? "NUMLOCK" : " ",
|
||||
(host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ? "CAPS" : " ",
|
||||
(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) ? "SCLK" : " ");
|
||||
matrix_write(matrix, led);
|
||||
matrix_write_P(matrix, (host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) ?
|
||||
PSTR("NUMLOCK") : PSTR(" "));
|
||||
matrix_write_P(matrix, (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ?
|
||||
PSTR("CAPS") : PSTR(" "));
|
||||
matrix_write_P(matrix, (host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) ?
|
||||
PSTR("SCLK") : PSTR(" "));
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
render_rgbled_status(true, matrix);
|
||||
}
|
||||
|
||||
|
||||
@@ -547,6 +617,8 @@ void iota_gfx_task_user(void) {
|
||||
render_status(&matrix);
|
||||
}else{
|
||||
render_logo(&matrix);
|
||||
render_rgbled_status(false, &matrix);
|
||||
render_layer_status(&matrix);
|
||||
}
|
||||
matrix_update(&display, &matrix);
|
||||
}
|
||||
|
@@ -6,12 +6,11 @@
|
||||
# See TOP/docs/config_options.md for more information.
|
||||
#
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||
AUTO_SHIFT_ENABLE = yes
|
||||
|
||||
# Helix Spacific Build Options
|
||||
# you can uncomment and edit follows 7 Variables
|
||||
# jp: 以下の7つの変数を必要に応じて編集し、コメントアウトをはずします。
|
||||
HELIX_ROWS = 4 # Helix Rows is 4 or 5
|
||||
# HELIX_ROWS = 5 # Helix Rows is 4 or 5
|
||||
OLED_ENABLE = yes # OLED_ENABLE
|
||||
# LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
|
||||
# LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# Overview
|
||||
|
||||
This layout is based on Balance Twelve (mirror variant) by Sasha Viminitz. Please see [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/)
|
||||
for more information. It's designed for left-handers who use their right hand for the mouse.
|
||||
This layout uses a mirror variant of Balance 12, created by Sasha Viminitz. See [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/)
|
||||
for more information.
|
||||
|
||||
## To build
|
||||
|
||||
@@ -19,74 +19,14 @@ sudo dfu-programmer atmega32u4 launch
|
||||
|
||||
## Layers
|
||||
|
||||
### Base:
|
||||
### Balance 12 base (BA) layer
|
||||

|
||||
|
||||
.--------.-------.-------.-------.--------. .-------.-------.-------.-------.------.
|
||||
| P | L | C | D | W | | U | O | Y | K | Q |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| N | R | S | T | M | | A | E | I | H | V |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| Z Sft | J Ctl | F Alt | G | B | | , | . Alt | ; Ctl | X Sft | Sup |
|
||||
'--------'-------'-------+-------+--------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS P1 | Spc P2 | P3 | | | Sft | |
|
||||
'-------'--------'-----' '-----'-------'-------'
|
||||
### Numeric/Punctuation (NP) layer
|
||||

|
||||
|
||||
### P1: Punctuation (1)
|
||||
### Function/Cursor (FC) layer
|
||||

|
||||
|
||||
.--------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | | | | | | | / | ^ | <20> | ~ |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | | | | & | \ | ` | $ | Ent |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | % | Alt | Ctl | Sft | Sup |
|
||||
'--------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| P1 | | | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
|
||||
### P2: Punctuation (2)
|
||||
|
||||
.-------.-------.-------.-------.-------. .-------.-------.-------.-------.------.
|
||||
| Esc | | NC | FV | | | ( | ) | " | ? | |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | { | } | ' | ! | Ent |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | Ent | | # | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS | P2 | | | | Sft | |
|
||||
'-------'-------'-----' '-----'-------'-------'
|
||||
|
||||
### P3: Punctuation (3)
|
||||
|
||||
.-------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | Break | Pscr | ScLk | | < | > | + | _ | = |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | Caps | | | [ | ] | * | - | Ent |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | @ | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| BS | | P3 | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
|
||||
### Numerals / Cursor control
|
||||
|
||||
.-------.-------.-------.------.-------. .------.-------.-------.------.------.
|
||||
| 1 | 2 | 3 | 4 | 5 | | Home | Up | End | PgUp | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| 6 | 7 | 8 | 9 | 0 | | Left | Down | Right | PgDn | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| Sft | Ctl | Alt | Del | . | | Ins | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+------+-------+-----. .-----+------+-------+-------'------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'------'-------'-----' '-----'------'-------'
|
||||
|
||||
### FV: Function keys / Cursor control (Vim)
|
||||
|
||||
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
|
||||
| F1 | F2 | F3 | F4 | F5 | | 0 | K | $ | Ctl-B | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| F6 | F7 | F8 | F9 | F10 | | H | J | L | Ctl-F | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| Sft | Ctl | Alt | F11 | F12 | | | Alt | Ctl | Sft | Sup |
|
||||
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'-----'-------'-----' '-----'------'-------'
|
||||
### Plover (PL) layer
|
||||

|
||||
|
@@ -1,141 +1,95 @@
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "keymap_steno.h"
|
||||
|
||||
enum layers {
|
||||
BA, // Base (Balance Twelve mirror variant)
|
||||
P1, // Punctuation (1)
|
||||
P2, // Punctuation (2)
|
||||
P3, // Punctuation (2)
|
||||
NC, // Numerals / Cursor control
|
||||
FV // Function keys / Cursor control (Vim)
|
||||
_BA, // Base (Balance Twelve mirror variant)
|
||||
_NP, // Numeric/Punctuation
|
||||
_FC, // Function
|
||||
_PL // Plover
|
||||
};
|
||||
|
||||
// Abbreviations - base
|
||||
#define KX_P1_BSPC LT(P1, KC_BSPC)
|
||||
#define KX_P2_SPC LT(P2, KC_SPC)
|
||||
|
||||
#define KX_SFT_Z MT(MOD_LSFT, KC_Z)
|
||||
#define KX_CTL_J MT(MOD_LCTL, KC_J)
|
||||
#define KX_ALT_F MT(MOD_LALT, KC_F)
|
||||
|
||||
#define KX_ALT_DOT MT(MOD_LALT, KC_DOT)
|
||||
#define KX_CTL_SCLN MT(MOD_LCTL, KC_SCLN)
|
||||
#define KX_SFT_X MT(MOD_LSFT, KC_X)
|
||||
|
||||
#define KX_AT LSFT(KC_QUOT)
|
||||
#define KX_DQUOT LSFT(KC_2)
|
||||
#define KX_PIPE LSFT(KC_NUBS)
|
||||
#define KX_TILDA LSFT(KC_NUHS)
|
||||
|
||||
// Abbreviations
|
||||
#define KX_SFT_Z MT(MOD_LSFT, KC_Z)
|
||||
#define KX_SFT_X MT(MOD_LSFT, KC_X)
|
||||
#define LT_ESC_FC LT(_FC, KC_ESC)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
.--------.-------.-------.-------.--------. .-------.-------.-------.-------.------.
|
||||
| P | L | C | D | W | | U | O | Y | K | Q |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| N | R | S | T | M | | A | E | I | H | V |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| Z Sft | J Ctl | F Alt | G | B | | , | . Alt | ; Ctl | X Sft | Sup |
|
||||
'--------'-------'-------+-------+--------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS P1 | Spc P2 | P3 | | | Sft | |
|
||||
'-------'--------'-----' '-----'-------'-------'
|
||||
*/
|
||||
[BA] = LAYOUT(
|
||||
KC_P, KC_L, KC_C, KC_D, KC_W, XXXXXXX, XXXXXXX, KC_U, KC_O, KC_Y, KC_K, KC_Q,
|
||||
KC_N, KC_R, KC_S, KC_T, KC_M, XXXXXXX, XXXXXXX, KC_A, KC_E, KC_I, KC_H, KC_V,
|
||||
KX_SFT_Z, KX_CTL_J, KX_ALT_F, KC_G, KC_B, XXXXXXX, XXXXXXX, KC_COMM, KX_ALT_DOT, KX_CTL_SCLN, KX_SFT_X, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KX_P1_BSPC, KX_P2_SPC, MO(P3), XXXXXXX, KC_RSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
|
||||
/* Base
|
||||
.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
|
||||
| P | L | C | D | W | | | U | O | Y | K | Q |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| N | R | S | T | M | | BS | A | E | I | H | V |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Z Sft | J | F | G | B | | Ent | ' @ | , < | . > | X Sft | |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Ctl | Alt | Sup | NP | Spc | Esc FC | Sft | Sft | Sup | Alt | Ctl | |
|
||||
'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
|
||||
*/
|
||||
[_BA] = LAYOUT(
|
||||
KC_P, KC_L, KC_C, KC_D, KC_W, XXXXXXX, XXXXXXX, KC_U, KC_O, KC_Y, KC_K, KC_Q,
|
||||
KC_N, KC_R, KC_S, KC_T, KC_M, XXXXXXX, KC_BSPC, KC_A, KC_E, KC_I, KC_H, KC_V,
|
||||
KX_SFT_Z, KC_J, KC_F, KC_G, KC_B, XXXXXXX, KC_ENT, KC_QUOT, KC_COMM, KC_DOT, KX_SFT_X, XXXXXXX,
|
||||
KC_LCTL, KC_LALT, KC_LGUI, MO(_NP), KC_SPC, LT_ESC_FC, KC_LSFT, KC_LSFT, KC_LGUI, KC_LALT, KC_LCTL, XXXXXXX
|
||||
),
|
||||
|
||||
/* P1: Punctuation (1)
|
||||
.--------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | | | | | | | / | ^ | <EFBFBD> | ~ |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | | | | & | \ | ` | $ | Ent |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | % | Alt | Ctl | Sft | Sup |
|
||||
'--------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| P1 | | | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[P1] = LAYOUT(
|
||||
KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KX_PIPE, KC_SLSH, KC_CIRC, KC_HASH, KX_TILDA,
|
||||
KC_TAB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_AMPR, KC_NUBS, KC_GRV, KC_DLR, KC_ENT,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX, KC_PERC, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
/* Numeric/Punctuation (NP)
|
||||
.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
|
||||
| 1 ! | 2 " | 3 <20> | 4 $ | 5 % | PL | | 6 ^ | 7 & | 8 * | 9 ( | 0 ) |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | | [ { | ] } | - _ | ; : | \ | |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Sft | | | Del | Ins | | | / ? | = + | # ~ | ` | |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Ctl | Alt | Sup | NP | Spc | | Sft | Sft | Sup | Alt | Ctl | |
|
||||
'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
|
||||
*/
|
||||
[_NP] = LAYOUT(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, TO(_PL), XXXXXXX, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_TAB, C(KC_X), C(KC_C), C(KC_V), C(KC_Z), XXXXXXX, _______, KC_LBRC, KC_RBRC, KC_MINS, KC_SCLN, KC_NUBS,
|
||||
KC_LSFT, XXXXXXX, XXXXXXX, KC_DEL, KC_INS, XXXXXXX, XXXXXXX, KC_SLSH, KC_EQL, KC_NUHS, KC_GRV, XXXXXXX,
|
||||
_______, _______, _______, _______, _______, XXXXXXX, _______, _______, _______, _______, _______, XXXXXXX
|
||||
),
|
||||
|
||||
/* P2: Punctuation (2)
|
||||
.-------.-------.-------.-------.-------. .-------.-------.-------.-------.------.
|
||||
| Esc | | NC | FV | | | ( | ) | " | ? | |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | { | } | ' | ! | Ent |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | Ent | | # | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS | P2 | | | | Sft | |
|
||||
'-------'-------'-----' '-----'-------'-------'
|
||||
/* Function/Cursor (FC)
|
||||
.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
|
||||
| F1 | F2 | F3 | F4 | F5 | | | Home | Up | End | PgUp | |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| F6 | F7 | F8 | F9 | F10 | | | Left | Down | Right | PgDn | |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Sft | | | F11 | F12 | | | PScr | Break | ScLk | Caps | |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| Ctl | Alt | Sup | | Spc | | Sft | Sft | Sup | Alt | Ctl | |
|
||||
'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
|
||||
*/
|
||||
[P2] = LAYOUT(
|
||||
KC_ESC, XXXXXXX, TO(NC), TO(FV), XXXXXXX, XXXXXXX, XXXXXXX, KC_LPRN, KC_RPRN, KX_DQUOT, KC_QUES, XXXXXXX,
|
||||
KC_TAB, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), LCTL(KC_Z), XXXXXXX, XXXXXXX, KC_LCBR, KC_RCBR, KC_QUOT, KC_EXLM, KC_ENT,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, KC_ENT, XXXXXXX, XXXXXXX, KC_NUHS, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
[_FC] = LAYOUT(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX,
|
||||
KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, XXXXXXX,
|
||||
_______, XXXXXXX, XXXXXXX, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_PSCR, KC_BRK, KC_SLCK, KC_CAPS, XXXXXXX,
|
||||
_______, _______, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, XXXXXXX
|
||||
),
|
||||
|
||||
/* P3: Punctuation (3)
|
||||
.-------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | Break | Pscr | ScLk | | < | > | + | _ | = |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | Caps | | | [ | ] | * | - | Ent |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | @ | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| BS | | P3 | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
/* Plover (PL)
|
||||
.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
|
||||
| # | # | # | # | # | BA | # | # | # | # | # | # |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| S | T | P | H | * | | * | F | P | L | T | D |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| S | K | W | R | * | | * | R | B | G | S | Z |
|
||||
|--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
| | | | A | O | | E | U | | | | |
|
||||
'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
|
||||
*/
|
||||
[P3] = LAYOUT(
|
||||
KC_ESC, XXXXXXX, KC_BRK, KC_PSCR, KC_SLCK, XXXXXXX, XXXXXXX, KC_LABK, KC_RABK, KC_PLUS, KC_UNDS, KC_EQL,
|
||||
KC_TAB, XXXXXXX, XXXXXXX, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_ASTR, KC_MINS, KC_ENT,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX, KX_AT, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, XXXXXXX, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* NC: Numerals / Cursor control
|
||||
.-------.-------.-------.------.-------. .------.-------.-------.------.------.
|
||||
| 1 | 2 | 3 | 4 | 5 | | Home | Up | End | PgUp | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| 6 | 7 | 8 | 9 | 0 | | Left | Down | Right | PgDn | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| Sft | Ctl | Alt | Del | . | | Ins | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+------+-------+-----. .-----+------+-------+-------'------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'------'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[NC] = LAYOUT(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX,
|
||||
KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, XXXXXXX,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, KC_DOT, XXXXXXX, XXXXXXX, KC_INS, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, TO(BA), XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* FV: Function keys / Cursor control (Vim)
|
||||
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
|
||||
| F1 | F2 | F3 | F4 | F5 | | 0 | K | $ | Ctl-B | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| F6 | F7 | F8 | F9 | F10 | | H | J | L | Ctl-F | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| Sft | Ctl | Alt | F11 | F12 | | | Alt | Ctl | Sft | Sup |
|
||||
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'-----'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[FV] = LAYOUT(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, KC_0, KC_K, KC_DLR, LCTL(KC_B), XXXXXXX,
|
||||
KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, KC_H, KC_J, KC_L, LCTL(KC_F), XXXXXXX,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, TO(BA), XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
[_PL] = LAYOUT(
|
||||
STN_NUM, STN_NUM, STN_NUM, STN_NUM, STN_NUM, TO(_BA), STN_NUM, STN_NUM, STN_NUM, STN_NUM, STN_NUM, STN_NUM,
|
||||
STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, XXXXXXX, STN_ST1, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR,
|
||||
STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, XXXXXXX, STN_ST2, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, STN_A, STN_O, XXXXXXX, STN_E, STN_U, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
void matrix_init_user() {
|
||||
steno_set_mode(STENO_MODE_GEMINI);
|
||||
}
|
||||
|
@@ -6,5 +6,5 @@ MIDI_ENABLE = no
|
||||
MOUSEKEY_ENABLE = no
|
||||
NKRO_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = no
|
||||
STENO_ENABLE = no
|
||||
VIRTSER_ENABLE = no
|
||||
STENO_ENABLE = yes
|
||||
VIRTSER_ENABLE = yes
|
||||
|
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define VENDOR_ID 0x4B36 // K6 - ok60
|
||||
#define PRODUCT_ID 0x6060
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER OK60
|
||||
|
36
keyboards/ok60/keymaps/via/keymap.c
Normal file
36
keyboards/ok60/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,36 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT_60_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_LSFT,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL
|
||||
),
|
||||
|
||||
[1] = LAYOUT_60_ansi(
|
||||
RESET, 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,
|
||||
_______, RGB_TOG, KC_UP, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______,
|
||||
_______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, BL_DEC, BL_TOGG, BL_INC, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[2] = LAYOUT_60_ansi(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[3] = LAYOUT_60_ansi(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
2
keyboards/ok60/keymaps/via/rules.mk
Normal file
2
keyboards/ok60/keymaps/via/rules.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
@@ -18,19 +18,19 @@ def json2c(cli):
|
||||
This command uses the `qmk.keymap` module to generate a keymap.c from a configurator export. The generated keymap is written to stdout, or to a file if -o is provided.
|
||||
"""
|
||||
# Error checking
|
||||
if not cli.args.filename.exists():
|
||||
cli.log.error('JSON file does not exist!')
|
||||
cli.print_usage()
|
||||
exit(1)
|
||||
|
||||
if cli.args.filename.name == '-':
|
||||
if cli.args.filename and cli.args.filename.name == '-':
|
||||
# TODO(skullydazed/anyone): Read file contents from STDIN
|
||||
cli.log.error('Reading from STDIN is not (yet) supported.')
|
||||
cli.print_usage()
|
||||
exit(1)
|
||||
|
||||
if not cli.args.filename.exists():
|
||||
cli.log.error('JSON file does not exist!')
|
||||
cli.print_usage()
|
||||
exit(1)
|
||||
|
||||
# Environment processing
|
||||
if cli.args.output.name == ('-'):
|
||||
if cli.args.output and cli.args.output.name == '-':
|
||||
cli.args.output = None
|
||||
|
||||
# Parse the configurator json
|
||||
|
@@ -84,3 +84,9 @@ def test_list_keymaps_no_keyboard_found():
|
||||
result = check_subcommand('list-keymaps', '-kb', 'asdfghjkl')
|
||||
assert result.returncode == 0
|
||||
assert 'does not exist' in result.stdout
|
||||
|
||||
|
||||
def test_json2c():
|
||||
result = check_subcommand('json2c', 'keyboards/handwired/onekey/keymaps/default_json/keymap.json')
|
||||
assert result.returncode == 0
|
||||
assert result.stdout == '#include QMK_KEYBOARD_H\nconst uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {\t[0] = LAYOUT(KC_A)};\n\n'
|
||||
|
@@ -8,12 +8,12 @@ def test_template_onekey_proton_c():
|
||||
|
||||
def test_template_onekey_pytest():
|
||||
templ = qmk.keymap.template('handwired/onekey/pytest')
|
||||
assert templ == 'const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__};\n'
|
||||
assert templ == '#include QMK_KEYBOARD_H\nconst uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__};\n'
|
||||
|
||||
|
||||
def test_generate_onekey_pytest():
|
||||
templ = qmk.keymap.generate('handwired/onekey/pytest', 'LAYOUT', [['KC_A']])
|
||||
assert templ == 'const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT(KC_A)};\n'
|
||||
assert templ == '#include QMK_KEYBOARD_H\nconst uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {\t[0] = LAYOUT(KC_A)};\n'
|
||||
|
||||
|
||||
# FIXME(skullydazed): Add a test for qmk.keymap.write that mocks up an FD.
|
||||
|
Reference in New Issue
Block a user