Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d511e52c1f | ||
|
|
789e199450 | ||
|
|
a747c1c3de | ||
|
|
a521fc2b6c | ||
|
|
8651eef298 | ||
|
|
f4799481cd | ||
|
|
675b153525 | ||
|
|
5df2424651 | ||
|
|
f9c53ca71a | ||
|
|
0d189582c1 | ||
|
|
c6b667623a | ||
|
|
d96380e654 | ||
|
|
7e80686f1e | ||
|
|
e967471c4f | ||
|
|
eca3f9d935 |
No files matched your search
+4
-1
@@ -231,13 +231,16 @@ endif
|
|||||||
# We can assume a ChibiOS target When MCU_FAMILY is defined since it's
|
# We can assume a ChibiOS target When MCU_FAMILY is defined since it's
|
||||||
# not used for LUFA
|
# not used for LUFA
|
||||||
ifdef MCU_FAMILY
|
ifdef MCU_FAMILY
|
||||||
FIRMWARE_FORMAT?=bin
|
|
||||||
PLATFORM=CHIBIOS
|
PLATFORM=CHIBIOS
|
||||||
|
PLATFORM_KEY=chibios
|
||||||
|
FIRMWARE_FORMAT?=bin
|
||||||
else ifdef ARM_ATSAM
|
else ifdef ARM_ATSAM
|
||||||
PLATFORM=ARM_ATSAM
|
PLATFORM=ARM_ATSAM
|
||||||
|
PLATFORM_KEY=arm_atsam
|
||||||
FIRMWARE_FORMAT=bin
|
FIRMWARE_FORMAT=bin
|
||||||
else
|
else
|
||||||
PLATFORM=AVR
|
PLATFORM=AVR
|
||||||
|
PLATFORM_KEY=avr
|
||||||
FIRMWARE_FORMAT?=hex
|
FIRMWARE_FORMAT?=hex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ all: elf
|
|||||||
|
|
||||||
VPATH += $(COMMON_VPATH)
|
VPATH += $(COMMON_VPATH)
|
||||||
PLATFORM:=TEST
|
PLATFORM:=TEST
|
||||||
|
PLATFORM_KEY:=test
|
||||||
|
|
||||||
ifneq ($(filter $(FULL_TESTS),$(TEST)),)
|
ifneq ($(filter $(FULL_TESTS),$(TEST)),)
|
||||||
include tests/$(TEST)/rules.mk
|
include tests/$(TEST)/rules.mk
|
||||||
|
|||||||
+2
-10
@@ -35,11 +35,7 @@ ifeq ($(strip $(AUDIO_ENABLE)), yes)
|
|||||||
MUSIC_ENABLE := 1
|
MUSIC_ENABLE := 1
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_audio.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_audio.c
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_clicky.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_clicky.c
|
||||||
ifeq ($(PLATFORM),AVR)
|
SRC += $(QUANTUM_DIR)/audio/audio_$(PLATFORM_KEY).c
|
||||||
SRC += $(QUANTUM_DIR)/audio/audio.c
|
|
||||||
else
|
|
||||||
SRC += $(QUANTUM_DIR)/audio/audio_arm.c
|
|
||||||
endif
|
|
||||||
SRC += $(QUANTUM_DIR)/audio/voices.c
|
SRC += $(QUANTUM_DIR)/audio/voices.c
|
||||||
SRC += $(QUANTUM_DIR)/audio/luts.c
|
SRC += $(QUANTUM_DIR)/audio/luts.c
|
||||||
endif
|
endif
|
||||||
@@ -315,11 +311,7 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
|||||||
else
|
else
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight_driver_common.c
|
SRC += $(QUANTUM_DIR)/backlight/backlight_driver_common.c
|
||||||
ifeq ($(strip $(BACKLIGHT_DRIVER)), pwm)
|
ifeq ($(strip $(BACKLIGHT_DRIVER)), pwm)
|
||||||
ifeq ($(PLATFORM),AVR)
|
SRC += $(QUANTUM_DIR)/backlight/backlight_$(PLATFORM_KEY).c
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c
|
|
||||||
else
|
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight_$(strip $(BACKLIGHT_DRIVER)).c
|
SRC += $(QUANTUM_DIR)/backlight/backlight_$(strip $(BACKLIGHT_DRIVER)).c
|
||||||
endif
|
endif
|
||||||
|
|||||||
+2
-1
@@ -52,7 +52,7 @@
|
|||||||
* Simple Keycodes
|
* Simple Keycodes
|
||||||
* [Full List](keycodes.md)
|
* [Full List](keycodes.md)
|
||||||
* [Basic Keycodes](keycodes_basic.md)
|
* [Basic Keycodes](keycodes_basic.md)
|
||||||
* [Layer Switching](feature_advanced_keycodes.md)
|
* [Modifier Keys](feature_advanced_keycodes.md)
|
||||||
* [Quantum Keycodes](quantum_keycodes.md)
|
* [Quantum Keycodes](quantum_keycodes.md)
|
||||||
|
|
||||||
* Advanced Keycodes
|
* Advanced Keycodes
|
||||||
@@ -71,6 +71,7 @@
|
|||||||
* [Combos](feature_combo.md)
|
* [Combos](feature_combo.md)
|
||||||
* [Debounce API](feature_debounce_type.md)
|
* [Debounce API](feature_debounce_type.md)
|
||||||
* [Key Lock](feature_key_lock.md)
|
* [Key Lock](feature_key_lock.md)
|
||||||
|
* [Layers](feature_layers.md)
|
||||||
* [One Shot Keys](one_shot_keys.md)
|
* [One Shot Keys](one_shot_keys.md)
|
||||||
* [Pointing Device](feature_pointing_device.md)
|
* [Pointing Device](feature_pointing_device.md)
|
||||||
* [Swap Hands](feature_swap_hands.md)
|
* [Swap Hands](feature_swap_hands.md)
|
||||||
|
|||||||
@@ -1,46 +1,3 @@
|
|||||||
# Switching and Toggling Layers :id=switching-and-toggling-layers
|
|
||||||
|
|
||||||
These functions allow you to activate layers in various ways. Note that layers are not generally independent layouts -- multiple layers can be activated at once, and it's typical for layers to use `KC_TRNS` to allow keypresses to pass through to lower layers. For a detailed explanation of layers, see [Keymap Overview](keymap.md#keymap-and-layers). When using momentary layer switching with MO(), LM(), TT(), or LT(), make sure to leave the key on the above layers transparent or it may not work as intended.
|
|
||||||
|
|
||||||
* `DF(layer)` - switches the default layer. The default layer is the always-active base layer that other layers stack on top of. See below for more about the default layer. This might be used to switch from QWERTY to Dvorak layout. (Note that this is a temporary switch that only persists until the keyboard loses power. To modify the default layer in a persistent way requires deeper customization, such as calling the `set_single_persistent_default_layer` function inside of [process_record_user](custom_quantum_functions.md#programming-the-behavior-of-any-keycode).)
|
|
||||||
* `MO(layer)` - momentarily activates *layer*. As soon as you let go of the key, the layer is deactivated.
|
|
||||||
* `LM(layer, mod)` - Momentarily activates *layer* (like `MO`), but with modifier(s) *mod* active. Only supports layers 0-15 and the left modifiers: `MOD_LCTL`, `MOD_LSFT`, `MOD_LALT`, `MOD_LGUI` (note the use of `MOD_` constants instead of `KC_`). These modifiers can be combined using bitwise OR, e.g. `LM(_RAISE, MOD_LCTL | MOD_LALT)`.
|
|
||||||
* `LT(layer, kc)` - momentarily activates *layer* when held, and sends *kc* when tapped. Only supports layers 0-15.
|
|
||||||
* `OSL(layer)` - momentarily activates *layer* until the next key is pressed. See [One Shot Keys](one_shot_keys.md) for details and additional functionality.
|
|
||||||
* `TG(layer)` - toggles *layer*, activating it if it's inactive and vice versa
|
|
||||||
* `TO(layer)` - activates *layer* and de-activates all other layers (except your default layer). This function is special, because instead of just adding/removing one layer to your active layer stack, it will completely replace your current active layers, uniquely allowing you to replace higher layers with a lower one. This is activated on keydown (as soon as the key is pressed).
|
|
||||||
* `TT(layer)` - Layer Tap-Toggle. If you hold the key down, *layer* is activated, and then is de-activated when you let go (like `MO`). If you repeatedly tap it, the layer will be toggled on or off (like `TG`). It needs 5 taps by default, but you can change this by defining `TAPPING_TOGGLE` -- for example, `#define TAPPING_TOGGLE 2` to toggle on just two taps.
|
|
||||||
|
|
||||||
## Caveats
|
|
||||||
|
|
||||||
Currently, `LT()` and `MT()` are limited to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. Modifiers specified as part of a Layer Tap or Mod Tap's keycode will be ignored. If you need to apply modifiers to your tapped keycode, [Tap Dance](feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
|
||||||
|
|
||||||
Additionally, if at least one right-handed modifier is specified in a Mod Tap or Layer Tap, it will cause all modifiers specified to become right-handed, so it is not possible to mix and match the two.
|
|
||||||
|
|
||||||
# Working with Layers
|
|
||||||
|
|
||||||
Care must be taken when switching layers, it's possible to lock yourself into a layer with no way to deactivate that layer (without unplugging your keyboard.) We've created some guidelines to help users avoid the most common problems.
|
|
||||||
|
|
||||||
## Beginners
|
|
||||||
|
|
||||||
If you are just getting started with QMK you will want to keep everything simple. Follow these guidelines when setting up your layers:
|
|
||||||
|
|
||||||
* Setup layer 0 as your default, "base" layer. This is your normal typing layer, and could be whatever layout you want (qwerty, dvorak, colemak, etc.). It's important to set this as the lowest layer since it will typically have most or all of the keyboard's keys defined, so would block other layers from having any effect if it were above them (i.e., had a higher layer number).
|
|
||||||
* Arrange your layers in a "tree" layout, with layer 0 as the root. Do not try to enter the same layer from more than one other layer.
|
|
||||||
* In a layer's keymap, only reference higher-numbered layers. Because layers are processed from the highest-numbered (topmost) active layer down, modifying the state of lower layers can be tricky and error-prone.
|
|
||||||
|
|
||||||
## Intermediate Users
|
|
||||||
|
|
||||||
Sometimes you need more than one base layer. For example, if you want to switch between QWERTY and Dvorak, switch between layouts for different countries, or switch your layout for different videogames. Your base layers should always be the lowest numbered layers. When you have multiple base layers you should always treat them as mutually exclusive. When one base layer is on the others are off.
|
|
||||||
|
|
||||||
## Advanced Users
|
|
||||||
|
|
||||||
Once you have a good feel for how layers work and what you can do, you can get more creative. The rules listed in the beginner section will help you be successful by avoiding some of the tricker details but they can be constraining, especially for ultra-compact keyboard users. Understanding how layers work will allow you to use them in more advanced ways.
|
|
||||||
|
|
||||||
Layers stack on top of each other in numerical order. When determining what a keypress does, QMK scans the layers from the top down, stopping when it reaches the first active layer that is not set to `KC_TRNS`. As a result if you activate a layer that is numerically lower than your current layer, and your current layer (or another layer that is active and higher than your target layer) has something other than `KC_TRNS`, that is the key that will be sent, not the key on the layer you just activated. This is the cause of most people's "why doesn't my layer get switched" problem.
|
|
||||||
|
|
||||||
Sometimes, you might want to switch between layers in a macro or as part of a tap dance routine. `layer_on` activates a layer, and `layer_off` deactivates it. More layer-related functions can be found in [action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_layer.h).
|
|
||||||
|
|
||||||
# Modifier Keys :id=modifier-keys
|
# Modifier Keys :id=modifier-keys
|
||||||
|
|
||||||
These allow you to combine a modifier with a keycode. When pressed, the keydown event for the modifier, then `kc` will be sent. On release, the keyup event for `kc`, then the modifier will be sent.
|
These allow you to combine a modifier with a keycode. When pressed, the keydown event for the modifier, then `kc` will be sent. On release, the keyup event for `kc`, then the modifier will be sent.
|
||||||
@@ -63,10 +20,14 @@ These allow you to combine a modifier with a keycode. When pressed, the keydown
|
|||||||
|
|
||||||
You can also chain them, for example `LCTL(LALT(KC_DEL))` makes a key that sends Control+Alt+Delete with a single keypress.
|
You can also chain them, for example `LCTL(LALT(KC_DEL))` makes a key that sends Control+Alt+Delete with a single keypress.
|
||||||
|
|
||||||
# Legacy Content
|
# Legacy Content :id=legacy-content
|
||||||
|
|
||||||
This page used to encompass a large set of features. We have moved many sections that used to be part of this page to their own pages. Everything below this point is simply a redirect so that people following old links on the web find what they're looking for.
|
This page used to encompass a large set of features. We have moved many sections that used to be part of this page to their own pages. Everything below this point is simply a redirect so that people following old links on the web find what they're looking for.
|
||||||
|
|
||||||
|
## Layers :id=switching-and-toggling-layers
|
||||||
|
|
||||||
|
* [Layers](feature_layers.md)
|
||||||
|
|
||||||
## Mod-Tap :id=mod-tap
|
## Mod-Tap :id=mod-tap
|
||||||
|
|
||||||
* [Mod-Tap](mod_tap.md)
|
* [Mod-Tap](mod_tap.md)
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ If you would like to change the hotkey assignments for Bootmagic, `#define` thes
|
|||||||
|
|
||||||
# Bootmagic Lite :id=bootmagic-lite
|
# Bootmagic Lite :id=bootmagic-lite
|
||||||
|
|
||||||
In addition to the full blown Bootmagic feature, is the Bootmagic Lite feature that only handles jumping into the bootloader. This is great for boards that don't have a physical reset button but you need a way to jump into the bootloader, and don't want to deal with the headache that Bootmagic can cause.
|
In addition to the full blown Bootmagic feature, is the Bootmagic Lite feature that only handles jumping into the bootloader. This is great for boards that don't have a physical reset button but you need a way to jump into the bootloader, and don't want to deal with the headache that Bootmagic can cause.
|
||||||
|
|
||||||
To enable this version of Bootmagic, you need to enable it in your `rules.mk` with:
|
To enable this version of Bootmagic, you need to enable it in your `rules.mk` with:
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ To enable this version of Bootmagic, you need to enable it in your `rules.mk` wi
|
|||||||
BOOTMAGIC_ENABLE = lite
|
BOOTMAGIC_ENABLE = lite
|
||||||
```
|
```
|
||||||
|
|
||||||
Additionally, you may want to specify which key to use. This is especially useful for keyboards that have unusual matrices. To do so, you need to specify the row and column of the key that you want to use. Add these entries to your `config.h` file:
|
Additionally, you may want to specify which key to use. This is especially useful for keyboards that have unusual matrices. To do so, you need to specify the row and column of the key that you want to use. Add these entries to your `config.h` file:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#define BOOTMAGIC_LITE_ROW 0
|
#define BOOTMAGIC_LITE_ROW 0
|
||||||
@@ -144,9 +144,20 @@ And to trigger the bootloader, you hold this key down when plugging the keyboard
|
|||||||
|
|
||||||
!> Using bootmagic lite will **always reset** the EEPROM, so you will lose any settings that have been saved.
|
!> Using bootmagic lite will **always reset** the EEPROM, so you will lose any settings that have been saved.
|
||||||
|
|
||||||
|
## Split Keyboards
|
||||||
|
|
||||||
|
When handedness is predetermined via an option like `SPLIT_HAND_PIN`, you might need to configure a different key between halves. This To do so, add these entries to your `config.h` file:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define BOOTMAGIC_LITE_ROW_RIGHT 4
|
||||||
|
#define BOOTMAGIC_LITE_COLUMN_RIGHT 1
|
||||||
|
```
|
||||||
|
|
||||||
|
By default, these values are not set.
|
||||||
|
|
||||||
## Advanced Bootmagic Lite
|
## Advanced Bootmagic Lite
|
||||||
|
|
||||||
The `bootmagic_lite` function is defined weakly, so that you can replace this in your code, if you need. A great example of this is the Zeal60 boards that have some additional handling needed.
|
The `bootmagic_lite` function is defined weakly, so that you can replace this in your code, if you need. A great example of this is the Zeal60 boards that have some additional handling needed.
|
||||||
|
|
||||||
To replace the function, all you need to do is add something like this to your code:
|
To replace the function, all you need to do is add something like this to your code:
|
||||||
|
|
||||||
@@ -163,4 +174,4 @@ void bootmagic_lite(void) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You can additional feature here. For instance, resetting the eeprom or requiring additional keys to be pressed to trigger bootmagic. Keep in mind that `bootmagic_lite` is called before a majority of features are initialized in the firmware.
|
You can additional feature here. For instance, resetting the eeprom or requiring additional keys to be pressed to trigger bootmagic. Keep in mind that `bootmagic_lite` is called before a majority of features are initialized in the firmware.
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
# Layers :id=layers
|
||||||
|
|
||||||
|
One of the most powerful and well used features of QMK Firmware is the ability to use layers. For most people, this amounts to a function key that allows for different keys, much like what you would see on a laptop or tablet keyboard.
|
||||||
|
|
||||||
|
For a detailed explanation of how the layer stack works, checkout [Keymap Overview](keymap.md#keymap-and-layers).
|
||||||
|
|
||||||
|
## Switching and Toggling Layers :id=switching-and-toggling-layers
|
||||||
|
|
||||||
|
These functions allow you to activate layers in various ways. Note that layers are not generally independent layouts -- multiple layers can be activated at once, and it's typical for layers to use `KC_TRNS` to allow keypresses to pass through to lower layers. When using momentary layer switching with MO(), LM(), TT(), or LT(), make sure to leave the key on the above layers transparent or it may not work as intended.
|
||||||
|
|
||||||
|
* `DF(layer)` - switches the default layer. The default layer is the always-active base layer that other layers stack on top of. See below for more about the default layer. This might be used to switch from QWERTY to Dvorak layout. (Note that this is a temporary switch that only persists until the keyboard loses power. To modify the default layer in a persistent way requires deeper customization, such as calling the `set_single_persistent_default_layer` function inside of [process_record_user](custom_quantum_functions.md#programming-the-behavior-of-any-keycode).)
|
||||||
|
* `MO(layer)` - momentarily activates *layer*. As soon as you let go of the key, the layer is deactivated.
|
||||||
|
* `LM(layer, mod)` - Momentarily activates *layer* (like `MO`), but with modifier(s) *mod* active. Only supports layers 0-15 and the left modifiers: `MOD_LCTL`, `MOD_LSFT`, `MOD_LALT`, `MOD_LGUI` (note the use of `MOD_` constants instead of `KC_`). These modifiers can be combined using bitwise OR, e.g. `LM(_RAISE, MOD_LCTL | MOD_LALT)`.
|
||||||
|
* `LT(layer, kc)` - momentarily activates *layer* when held, and sends *kc* when tapped. Only supports layers 0-15.
|
||||||
|
* `OSL(layer)` - momentarily activates *layer* until the next key is pressed. See [One Shot Keys](one_shot_keys.md) for details and additional functionality.
|
||||||
|
* `TG(layer)` - toggles *layer*, activating it if it's inactive and vice versa
|
||||||
|
* `TO(layer)` - activates *layer* and de-activates all other layers (except your default layer). This function is special, because instead of just adding/removing one layer to your active layer stack, it will completely replace your current active layers, uniquely allowing you to replace higher layers with a lower one. This is activated on keydown (as soon as the key is pressed).
|
||||||
|
* `TT(layer)` - Layer Tap-Toggle. If you hold the key down, *layer* is activated, and then is de-activated when you let go (like `MO`). If you repeatedly tap it, the layer will be toggled on or off (like `TG`). It needs 5 taps by default, but you can change this by defining `TAPPING_TOGGLE` -- for example, `#define TAPPING_TOGGLE 2` to toggle on just two taps.
|
||||||
|
|
||||||
|
### Caveats :id=caveats
|
||||||
|
|
||||||
|
Currently, `LT()` and `MT()` are limited to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. Specifically, dual function keys like `LT` and `MT` use a 16 bit keycode. 4 bits are used for the function identifier, the next 12 are divided into the parameters. Layer Tap uses 4 bits for the layer (and is why it's limited to layers 0-16, actually), while Mod Tap does the same, 4 bits for the identifier, 4 bits for which mods are used, and all of them use 8 bits for the keycode. Because of this, the keycode used is limited to `0xFF` (0-255), which are the basic keycodes only.
|
||||||
|
|
||||||
|
Expanding this would be complicated, at best. Moving to a 32-bit keycode would solve a lot of this, but would double the amount of space that the keymap matrix uses. And it could potentially cause issues, too. If you need to apply modifiers to your tapped keycode, [Tap Dance](feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
||||||
|
|
||||||
|
Additionally, if at least one right-handed modifier is specified in a Mod Tap or Layer Tap, it will cause all modifiers specified to become right-handed, so it is not possible to mix and match the two.
|
||||||
|
|
||||||
|
## Working with Layers :id=working-with-layers
|
||||||
|
|
||||||
|
Care must be taken when switching layers, it's possible to lock yourself into a layer with no way to deactivate that layer (without unplugging your keyboard.) We've created some guidelines to help users avoid the most common problems.
|
||||||
|
|
||||||
|
### Beginners :id=beginners
|
||||||
|
|
||||||
|
If you are just getting started with QMK you will want to keep everything simple. Follow these guidelines when setting up your layers:
|
||||||
|
|
||||||
|
* Setup layer 0 as your default, "base" layer. This is your normal typing layer, and could be whatever layout you want (qwerty, dvorak, colemak, etc.). It's important to set this as the lowest layer since it will typically have most or all of the keyboard's keys defined, so would block other layers from having any effect if it were above them (i.e., had a higher layer number).
|
||||||
|
* Arrange your layers in a "tree" layout, with layer 0 as the root. Do not try to enter the same layer from more than one other layer.
|
||||||
|
* In a layer's keymap, only reference higher-numbered layers. Because layers are processed from the highest-numbered (topmost) active layer down, modifying the state of lower layers can be tricky and error-prone.
|
||||||
|
|
||||||
|
### Intermediate Users :id=intermediate-users
|
||||||
|
|
||||||
|
Sometimes you need more than one base layer. For example, if you want to switch between QWERTY and Dvorak, switch between layouts for different countries, or switch your layout for different videogames. Your base layers should always be the lowest numbered layers. When you have multiple base layers you should always treat them as mutually exclusive. When one base layer is on the others are off.
|
||||||
|
|
||||||
|
### Advanced Users :id=advanced-users
|
||||||
|
|
||||||
|
Once you have a good feel for how layers work and what you can do, you can get more creative. The rules listed in the beginner section will help you be successful by avoiding some of the tricker details but they can be constraining, especially for ultra-compact keyboard users. Understanding how layers work will allow you to use them in more advanced ways.
|
||||||
|
|
||||||
|
Layers stack on top of each other in numerical order. When determining what a keypress does, QMK scans the layers from the top down, stopping when it reaches the first active layer that is not set to `KC_TRNS`. As a result if you activate a layer that is numerically lower than your current layer, and your current layer (or another layer that is active and higher than your target layer) has something other than `KC_TRNS`, that is the key that will be sent, not the key on the layer you just activated. This is the cause of most people's "why doesn't my layer get switched" problem.
|
||||||
|
|
||||||
|
Sometimes, you might want to switch between layers in a macro or as part of a tap dance routine. `layer_on` activates a layer, and `layer_off` deactivates it. More layer-related functions can be found in [action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_layer.h).
|
||||||
|
|
||||||
|
## Functions :id=functions
|
||||||
|
|
||||||
|
There are a number of functions (and variables) related to how you can use or manipulate the layers.
|
||||||
|
|
||||||
|
|Function |Description |
|
||||||
|
|----------------------------------------------|---------------------------------------------------------------------------------------------------------|
|
||||||
|
| `layer_state_set(layer_mask)` | Directly sets the layer state (recommended, do not use unless you know what you are doing). |
|
||||||
|
| `layer_clear()` | Clears all layers (turns them all off). |
|
||||||
|
| `layer_move(layer)` | Turns specified layer on, and all other layers off. |
|
||||||
|
| `layer_on(layer)` | Turns specified layer on, leaves all other layers in existing state. |
|
||||||
|
| `layer_off(layer)` | Turns specified layer off, leaves all other layers in existing state. |
|
||||||
|
| `layer_invert(layer)` | Interverts/toggles the state of the specified layer |
|
||||||
|
| `layer_or(layer_mask)` | Turns on layers based on matching bits between specifed layer and existing layer state. |
|
||||||
|
| `layer_and(layer_mask)` | Turns on layers based on matching enabled bits between specifed layer and existing layer state. |
|
||||||
|
| `layer_xor(layer_mask)` | Turns on layers based on non-matching bits between specifed layer and existing layer state. |
|
||||||
|
| `layer_debug(layer_mask)` | Prints out the current bit mask and highest active layer to debugger console. |
|
||||||
|
| `default_layer_set(layer_mask)` | Directly sets the default layer state (recommended, do not use unless you know what you are doing). |
|
||||||
|
| `default_layer_or(layer_mask)` | Turns on layers based on matching bits between specifed layer and existing default layer state. |
|
||||||
|
| `default_layer_and(layer_mask)` | Turns on layers based on matching enabled bits between specifed layer and existing default layer state. |
|
||||||
|
| `default_layer_xor(layer_mask)` | Turns on layers based on non-matching bits between specifed layer and existing default layer state. |
|
||||||
|
| `default_layer_debug(layer_mask)` | Prints out the current bit mask and highest active default layer to debugger console. |
|
||||||
|
| [`set_single_persistent_default_layer(layer)`](ref_functions.md#setting-the-persistent-default-layer) | Sets the default layer and writes it to persistent memory (EEPROM). |
|
||||||
|
| [`update_tri_layer(x, y, z)`](ref_functions.md#update_tri_layerx-y-z) | Checks if layers `x` and `y` are both on, and sets `z` based on that (on if both on, otherwise off). |
|
||||||
|
| [`update_tri_layer_state(state, x, y, z)`](ref_functions.md#update_tri_layer_statestate-x-y-z) | Does the same as `update_tri_layer(x, y, z)`, but from `layer_state_set_*` functions. |
|
||||||
|
|
||||||
|
|
||||||
|
In additional to the functions that you can call, there are a number of callback functions that get called every time the layer changes. This passed the layer state to the function, which can be read or modified.
|
||||||
|
|
||||||
|
|Callbacks |Description |
|
||||||
|
|-----------------------------------------------------|----------------------------------------------------------------------------------------|
|
||||||
|
| `layer_state_set_kb(layer_state_t state)` | Callback for layer functions, for keyboard. |
|
||||||
|
| `layer_state_set_user(layer_state_t state)` | Callback for layer functions, for users. |
|
||||||
|
| `default_layer_state_set_kb(layer_state_t state)` | Callback for default layer functions, for keyboard. Called on keyboard initialization. |
|
||||||
|
| `default_layer_state_set_user(layer_state_t state)` | Callback for default layer functions, for users. Called on keyboard initialization. |
|
||||||
|
|
||||||
|
?> For additional details on how you can use these callbacks, check out the [Layer Change Code](custom_quantum_functions.md#layer-change-code) document.
|
||||||
|
|
||||||
|
|Check functions |Description |
|
||||||
|
|-------------------------------------------|------------------------------------------------------------------------------|
|
||||||
|
| `layer_state_cmp(cmp_layer_state, layer)` | This checks the `cmp_layer_state` to see if the specific `layer` is enabled. This is meant for use with the layer callbacks. |
|
||||||
|
| `layer_state_is(layer)` | This checks the layer state to see if the specific `layer` is enabled. (calls `layer_state_cmp` for the global layer state). |
|
||||||
|
|
||||||
|
!> There is `IS_LAYER_ON(layer)` as well, however the `layer_state_cmp` function has some additional handling to ensure that on layer 0 that it returns the correct value. Otherwise, if you check to see if layer 0 is on, you may get an incorrect value returned.
|
||||||
@@ -74,9 +74,9 @@ SEQ_THREE_KEYS(KC_C, KC_C, KC_C) {
|
|||||||
|
|
||||||
## Strict Key Processing
|
## Strict Key Processing
|
||||||
|
|
||||||
By default, the Leader Key feature will filter the keycode out of [`Mod-Tap`](mod_tap.md) and [`Layer Tap`](feature_advanced_keycodes.md#switching-and-toggling-layers) functions when checking for the Leader sequences. That means if you're using `LT(3, KC_A)`, it will pick this up as `KC_A` for the sequence, rather than `LT(3, KC_A)`, giving a more expected behavior for newer users.
|
By default, the Leader Key feature will filter the keycode out of [`Mod-Tap`](mod_tap.md) and [`Layer Tap`](feature_layers.md#switching-and-toggling-layers) functions when checking for the Leader sequences. That means if you're using `LT(3, KC_A)`, it will pick this up as `KC_A` for the sequence, rather than `LT(3, KC_A)`, giving a more expected behavior for newer users.
|
||||||
|
|
||||||
While, this may be fine for most, if you want to specify the whole keycode (eg, `LT(3, KC_A)` from the example above) in the sequence, you can enable this by added `#define LEADER_KEY_STRICT_KEY_PROCESSING` to your `config.h` file. This well then disable the filtering, and you'll need to specify the whole keycode.
|
While, this may be fine for most, if you want to specify the whole keycode (eg, `LT(3, KC_A)` from the example above) in the sequence, you can enable this by added `#define LEADER_KEY_STRICT_KEY_PROCESSING` to your `config.h` file. This will then disable the filtering, and you'll need to specify the whole keycode.
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
|
|||||||
+15
-15
@@ -182,16 +182,16 @@ To define a layer, we modify `keymap.c` to list out LED ranges and the colors we
|
|||||||
```c
|
```c
|
||||||
// Light LEDs 6 to 9 and 12 to 15 red when caps lock is active. Hard to ignore!
|
// Light LEDs 6 to 9 and 12 to 15 red when caps lock is active. Hard to ignore!
|
||||||
const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||||
{6, 4, HSV_RED}, // Light 4 LEDs, starting with LED 6
|
{6, 4, HSV_RED}, // Light 4 LEDs, starting with LED 6
|
||||||
{12, 4, HSV_RED} // Light 4 LEDs, starting with LED 12
|
{12, 4, HSV_RED} // Light 4 LEDs, starting with LED 12
|
||||||
);
|
);
|
||||||
// Light LEDs 9 & 10 in cyan when keyboard layer 1 is active
|
// Light LEDs 9 & 10 in cyan when keyboard layer 1 is active
|
||||||
const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||||
{9, 2, HSV_CYAN}
|
{9, 2, HSV_CYAN}
|
||||||
);
|
);
|
||||||
// Light LEDs 11 & 12 in purple when keyboard layer 2 is active
|
// Light LEDs 11 & 12 in purple when keyboard layer 2 is active
|
||||||
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||||
{11, 2, HSV_PURPLE},
|
{11, 2, HSV_PURPLE}
|
||||||
);
|
);
|
||||||
// etc..
|
// etc..
|
||||||
```
|
```
|
||||||
@@ -201,14 +201,14 @@ We combine these layers into an array using the `RGBLIGHT_LAYERS_LIST` macro, an
|
|||||||
```c
|
```c
|
||||||
// Now define the array of layers. Later layers take precedence
|
// Now define the array of layers. Later layers take precedence
|
||||||
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||||
my_capslock_layer,
|
my_capslock_layer,
|
||||||
my_layer1_layer, // Overrides caps lock layer
|
my_layer1_layer, // Overrides caps lock layer
|
||||||
my_layer2_layer // Overrides other layers
|
my_layer2_layer // Overrides other layers
|
||||||
);
|
);
|
||||||
|
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
// Enable the LED layers
|
// Enable the LED layers
|
||||||
rgblight_layers = my_rgb_layers;
|
rgblight_layers = my_rgb_layers;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -216,15 +216,15 @@ Finally, we enable and disable the lighting layers whenever the state of the key
|
|||||||
|
|
||||||
```c
|
```c
|
||||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
// Both layers will light up if both kb layers are active
|
// Both layers will light up if both kb layers are active
|
||||||
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
|
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
|
||||||
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
|
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_user(led_t led_state) {
|
bool led_update_user(led_t led_state) {
|
||||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -326,7 +326,7 @@ See also: [Key Lock](feature_key_lock.md)
|
|||||||
|
|
||||||
## Layer Switching :id=layer-switching
|
## Layer Switching :id=layer-switching
|
||||||
|
|
||||||
See also: [Layer Switching](feature_advanced_keycodes.md#switching-and-toggling-layers)
|
See also: [Layer Switching](feature_layers.md#switching-and-toggling-layers)
|
||||||
|
|
||||||
|Key |Description |
|
|Key |Description |
|
||||||
|----------------|----------------------------------------------------------------------------------|
|
|----------------|----------------------------------------------------------------------------------|
|
||||||
|
|||||||
@@ -42,9 +42,13 @@ We've tried to make QMK as easy to set up as possible. You only have to prepare
|
|||||||
You will need to install MSYS2, Git, and the QMK CLI.
|
You will need to install MSYS2, Git, and the QMK CLI.
|
||||||
|
|
||||||
* Follow the installation instructions on the [MSYS2 homepage](http://www.msys2.org).
|
* Follow the installation instructions on the [MSYS2 homepage](http://www.msys2.org).
|
||||||
* Close any open MSYS2 terminals and open a new MSYS2 MinGW 64-bit terminal.
|
* Close any open MSYS2 terminals and open a new MSYS2 MinGW 64-bit terminal. NOTE: This is **not** the same as the MSYS terminal that opens when installation is completed.
|
||||||
|
|
||||||
After opening a new MSYS2 MinGW 64-bit terminal run these commands:
|
After opening a new MSYS2 MinGW 64-bit terminal, make sure `pacman` is up to date with:
|
||||||
|
|
||||||
|
pacman -Syu
|
||||||
|
|
||||||
|
You may be asked to close and reopen the window. Do this and keep running the above command until it says `there is nothing to do`. Then run the following:
|
||||||
|
|
||||||
pacman -S git python3-pip
|
pacman -S git python3-pip
|
||||||
python3 -m pip install qmk
|
python3 -m pip install qmk
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1 +1,33 @@
|
|||||||
# Dummy rules.mk, rev0 uses parent rules.mk as is
|
# MCU name
|
||||||
|
MCU = atmega32u2
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = yes # 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 = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
@@ -1 +1,33 @@
|
|||||||
# Dummy rules.mk, rev1 uses parent rules.mk as is
|
# MCU name
|
||||||
|
MCU = atmega32u2
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = yes # 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 = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
# MCU name
|
|
||||||
MCU = atmega32u2
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Build Options
|
|
||||||
# change yes to no to disable
|
|
||||||
#
|
|
||||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
|
||||||
COMMAND_ENABLE = yes # 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 = yes # USB Nkey Rollover
|
|
||||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
|
||||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
|
||||||
MIDI_ENABLE = no # MIDI support
|
|
||||||
UNICODE_ENABLE = no # Unicode
|
|
||||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
|
||||||
AUDIO_ENABLE = no # Audio output on port C6
|
|
||||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
|
||||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Claw44 rev1",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "yfuku",
|
||||||
|
"width": 17.5,
|
||||||
|
"height": 4.5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"L00", "x":0, "y":1.18},
|
||||||
|
{"label":"L01", "x":1, "y":1.03},
|
||||||
|
{"label":"L02", "x":2, "y":0.35},
|
||||||
|
{"label":"L03", "x":3, "y":0},
|
||||||
|
{"label":"L04", "x":4, "y":0.05},
|
||||||
|
{"label":"L05", "x":5, "y":0.10},
|
||||||
|
{"label":"R00", "x":11.5, "y":0.10},
|
||||||
|
{"label":"R01", "x":12.5, "y":0.05},
|
||||||
|
{"label":"R02", "x":13.5, "y":0},
|
||||||
|
{"label":"R03", "x":14.5, "y":0.35},
|
||||||
|
{"label":"R04", "x":15.5, "y":1.08},
|
||||||
|
{"label":"R05", "x":16.5, "y":1.18},
|
||||||
|
{"label":"L10", "x":0, "y":2.18},
|
||||||
|
{"label":"L11", "x":1, "y":2.03},
|
||||||
|
{"label":"L12", "x":2, "y":1.35},
|
||||||
|
{"label":"L13", "x":3, "y":1},
|
||||||
|
{"label":"L14", "x":4, "y":1.05},
|
||||||
|
{"label":"L15", "x":5, "y":1.10},
|
||||||
|
{"label":"R10", "x":11.5, "y":1.10},
|
||||||
|
{"label":"R11", "x":12.5, "y":1.05},
|
||||||
|
{"label":"R12", "x":13.5, "y":1},
|
||||||
|
{"label":"R13", "x":14.5, "y":1.35},
|
||||||
|
{"label":"R14", "x":15.5, "y":2.03},
|
||||||
|
{"label":"R15", "x":16.5, "y":2.18},
|
||||||
|
{"label":"L20", "x":0, "y":3.18},
|
||||||
|
{"label":"L21", "x":1, "y":3.03},
|
||||||
|
{"label":"L22", "x":2, "y":2.35},
|
||||||
|
{"label":"L23", "x":3, "y":2},
|
||||||
|
{"label":"L24", "x":4, "y":2.05},
|
||||||
|
{"label":"L25", "x":5, "y":2.10},
|
||||||
|
{"label":"R20", "x":11.5, "y":2.10},
|
||||||
|
{"label":"R21", "x":12.5, "y":2.05},
|
||||||
|
{"label":"R22", "x":13.5, "y":2},
|
||||||
|
{"label":"R23", "x":14.5, "y":2.35},
|
||||||
|
{"label":"R24", "x":15.5, "y":3.03},
|
||||||
|
{"label":"R25", "x":16.5, "y":3.18},
|
||||||
|
{"label":"L30", "x":4, "y":3.05},
|
||||||
|
{"label":"L31", "x":5, "y":3.10},
|
||||||
|
{"label":"L32", "x":6, "y":3.20, "w":1.25},
|
||||||
|
{"label":"L33", "x":7.25, "y":3.50},
|
||||||
|
{"label":"R30", "x":9.25, "y":3.50},
|
||||||
|
{"label":"R31", "x":10.25, "y":3.20, "w":1.25},
|
||||||
|
{"label":"R32", "x":11.5, "y":3.10},
|
||||||
|
{"label":"R33", "x":12.5, "y":3.05}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,79 +6,366 @@
|
|||||||
"height": 5,
|
"height": 5,
|
||||||
"layouts": {
|
"layouts": {
|
||||||
"LAYOUT_all": {
|
"LAYOUT_all": {
|
||||||
"layout": [
|
"layout": [
|
||||||
{"label":"K00 (B3,B2)", "x":0, "y":0},
|
{"label":"K00 (B3,B2)", "x":0, "y":0},
|
||||||
{"label":"K01 (B3,F5)", "x":1, "y":0},
|
{"label":"K01 (B3,F5)", "x":1, "y":0},
|
||||||
{"label":"K02 (B3,F6)", "x":2, "y":0},
|
{"label":"K02 (B3,F6)", "x":2, "y":0},
|
||||||
{"label":"K03 (B3,D0)", "x":3, "y":0},
|
{"label":"K03 (B3,D0)", "x":3, "y":0},
|
||||||
{"label":"K04 (B3,D1)", "x":4, "y":0},
|
{"label":"K04 (B3,D1)", "x":4, "y":0},
|
||||||
{"label":"K05 (B3,D2)", "x":5, "y":0},
|
{"label":"K05 (B3,D2)", "x":5, "y":0},
|
||||||
{"label":"K06 (B3,D3)", "x":6, "y":0},
|
{"label":"K06 (B3,D3)", "x":6, "y":0},
|
||||||
{"label":"K07 (B3,D5)", "x":7, "y":0},
|
{"label":"K07 (B3,D5)", "x":7, "y":0},
|
||||||
{"label":"K08 (B3,D4)", "x":8, "y":0},
|
{"label":"K08 (B3,D4)", "x":8, "y":0},
|
||||||
{"label":"K09 (B3,D6)", "x":9, "y":0},
|
{"label":"K09 (B3,D6)", "x":9, "y":0},
|
||||||
{"label":"K0A (B3,D7)", "x":10, "y":0},
|
{"label":"K0A (B3,D7)", "x":10, "y":0},
|
||||||
{"label":"K0B (B3,B4)", "x":11, "y":0},
|
{"label":"K0B (B3,B4)", "x":11, "y":0},
|
||||||
{"label":"K0C (B3,B5)", "x":12, "y":0},
|
{"label":"K0C (B3,B5)", "x":12, "y":0},
|
||||||
{"label":"K0D (B3,B6)", "x":13, "y":0},
|
{"label":"K0D (B3,B6)", "x":13, "y":0},
|
||||||
{"label":"K0E (B3,C6)", "x":14, "y":0},
|
{"label":"K0E (B3,C6)", "x":14, "y":0},
|
||||||
{"label":"K0F (B3,C7)", "x":15, "y":0},
|
{"label":"K0F (B3,C7)", "x":15, "y":0},
|
||||||
{"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5},
|
{"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5},
|
||||||
{"label":"K11 (B7,F5)", "x":1.5, "y":1},
|
{"label":"K11 (B7,F5)", "x":1.5, "y":1},
|
||||||
{"label":"K12 (B7,F6)", "x":2.5, "y":1},
|
{"label":"K12 (B7,F6)", "x":2.5, "y":1},
|
||||||
{"label":"K13 (B7,D0)", "x":3.5, "y":1},
|
{"label":"K13 (B7,D0)", "x":3.5, "y":1},
|
||||||
{"label":"K14 (B7,D1)", "x":4.5, "y":1},
|
{"label":"K14 (B7,D1)", "x":4.5, "y":1},
|
||||||
{"label":"K15 (B7,D2)", "x":5.5, "y":1},
|
{"label":"K15 (B7,D2)", "x":5.5, "y":1},
|
||||||
{"label":"K16 (B7,D3)", "x":6.5, "y":1},
|
{"label":"K16 (B7,D3)", "x":6.5, "y":1},
|
||||||
{"label":"K17 (B7,D5)", "x":7.5, "y":1},
|
{"label":"K17 (B7,D5)", "x":7.5, "y":1},
|
||||||
{"label":"K18 (B7,D4)", "x":8.5, "y":1},
|
{"label":"K18 (B7,D4)", "x":8.5, "y":1},
|
||||||
{"label":"K19 (B7,D6)", "x":9.5, "y":1},
|
{"label":"K19 (B7,D6)", "x":9.5, "y":1},
|
||||||
{"label":"K1A (B7,D7)", "x":10.5, "y":1},
|
{"label":"K1A (B7,D7)", "x":10.5, "y":1},
|
||||||
{"label":"K1B (B7,B4)", "x":11.5, "y":1},
|
{"label":"K1B (B7,B4)", "x":11.5, "y":1},
|
||||||
{"label":"K1C (B7,B5)", "x":12.5, "y":1},
|
{"label":"K1C (B7,B5)", "x":12.5, "y":1},
|
||||||
{"label":"K1D (B7,B6)", "x":13.5, "y":1, "w":1.5},
|
{"label":"K1D (B7,B6)", "x":13.5, "y":1, "w":1.5},
|
||||||
{"label":"K1F (B7,C7)", "x":15, "y":1},
|
{"label":"K1F (B7,C7)", "x":15, "y":1},
|
||||||
{"label":"K20 (F0,B2)", "x":0, "y":2, "w":1.75},
|
{"label":"K20 (F0,B2)", "x":0, "y":2, "w":1.75},
|
||||||
{"label":"K21 (F0,F5)", "x":1.75, "y":2},
|
{"label":"K21 (F0,F5)", "x":1.75, "y":2},
|
||||||
{"label":"K22 (F0,F6)", "x":2.75, "y":2},
|
{"label":"K22 (F0,F6)", "x":2.75, "y":2},
|
||||||
{"label":"K23 (F0,D0)", "x":3.75, "y":2},
|
{"label":"K23 (F0,D0)", "x":3.75, "y":2},
|
||||||
{"label":"K24 (F0,D1)", "x":4.75, "y":2},
|
{"label":"K24 (F0,D1)", "x":4.75, "y":2},
|
||||||
{"label":"K25 (F0,D2)", "x":5.75, "y":2},
|
{"label":"K25 (F0,D2)", "x":5.75, "y":2},
|
||||||
{"label":"K26 (F0,D3)", "x":6.75, "y":2},
|
{"label":"K26 (F0,D3)", "x":6.75, "y":2},
|
||||||
{"label":"K27 (F0,D5)", "x":7.75, "y":2},
|
{"label":"K27 (F0,D5)", "x":7.75, "y":2},
|
||||||
{"label":"K28 (F0,D4)", "x":8.75, "y":2},
|
{"label":"K28 (F0,D4)", "x":8.75, "y":2},
|
||||||
{"label":"K29 (F0,D6)", "x":9.75, "y":2},
|
{"label":"K29 (F0,D6)", "x":9.75, "y":2},
|
||||||
{"label":"K2A (F0,D7)", "x":10.75, "y":2},
|
{"label":"K2A (F0,D7)", "x":10.75, "y":2},
|
||||||
{"label":"K2B (F0,B4)", "x":11.75, "y":2},
|
{"label":"K2B (F0,B4)", "x":11.75, "y":2},
|
||||||
{"label":"K2C (F0,B5)", "x":12.75, "y":2},
|
{"label":"K2C (F0,B5)", "x":12.75, "y":2},
|
||||||
{"label":"K2D (F0,B6)", "x":13.75, "y":2, "w":1.25},
|
{"label":"K2D (F0,B6)", "x":13.75, "y":2, "w":1.25},
|
||||||
{"label":"K2F (F0,C7)", "x":15, "y":2},
|
{"label":"K2F (F0,C7)", "x":15, "y":2},
|
||||||
{"label":"K30 (F1,B2)", "x":0, "y":3, "w":1.25},
|
{"label":"K30 (F1,B2)", "x":0, "y":3, "w":1.25},
|
||||||
{"label":"K31 (F1,F5)", "x":1.25, "y":3},
|
{"label":"K31 (F1,F5)", "x":1.25, "y":3},
|
||||||
{"label":"K32 (F1,F6)", "x":2.25, "y":3},
|
{"label":"K32 (F1,F6)", "x":2.25, "y":3},
|
||||||
{"label":"K33 (F1,D0)", "x":3.25, "y":3},
|
{"label":"K33 (F1,D0)", "x":3.25, "y":3},
|
||||||
{"label":"K34 (F1,D1)", "x":4.25, "y":3},
|
{"label":"K34 (F1,D1)", "x":4.25, "y":3},
|
||||||
{"label":"K35 (F1,D2)", "x":5.25, "y":3},
|
{"label":"K35 (F1,D2)", "x":5.25, "y":3},
|
||||||
{"label":"K36 (F1,D3)", "x":6.25, "y":3},
|
{"label":"K36 (F1,D3)", "x":6.25, "y":3},
|
||||||
{"label":"K37 (F1,D5)", "x":7.25, "y":3},
|
{"label":"K37 (F1,D5)", "x":7.25, "y":3},
|
||||||
{"label":"K38 (F1,D4)", "x":8.25, "y":3},
|
{"label":"K38 (F1,D4)", "x":8.25, "y":3},
|
||||||
{"label":"K39 (F1,D6)", "x":9.25, "y":3},
|
{"label":"K39 (F1,D6)", "x":9.25, "y":3},
|
||||||
{"label":"K3A (F1,D7)", "x":10.25, "y":3},
|
{"label":"K3A (F1,D7)", "x":10.25, "y":3},
|
||||||
{"label":"K3B (F1,B4)", "x":11.25, "y":3},
|
{"label":"K3B (F1,B4)", "x":11.25, "y":3},
|
||||||
{"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75},
|
{"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75},
|
||||||
{"label":"K3E (F1,C6)", "x":14, "y":3},
|
{"label":"K3E (F1,C6)", "x":14, "y":3},
|
||||||
{"label":"K3F (F1,C7)", "x":15, "y":3},
|
{"label":"K3F (F1,C7)", "x":15, "y":3},
|
||||||
{"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225},
|
{"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225},
|
||||||
{"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25},
|
{"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25},
|
||||||
{"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25},
|
{"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25},
|
||||||
{"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25},
|
{"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25},
|
||||||
{"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25},
|
{"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25},
|
||||||
{"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25},
|
{"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25},
|
||||||
{"label":"K4D (F4,B6)", "x":13, "y":4},
|
{"label":"K4D (F4,B6)", "x":13, "y":4},
|
||||||
{"label":"K4E (F4,C6)", "x":14, "y":4},
|
{"label":"K4E (F4,C6)", "x":14, "y":4},
|
||||||
{"label":"K4F (F4,C7)", "x":15, "y":4}
|
{"label":"K4F (F4,C7)", "x":15, "y":4}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
}
|
"LAYOUT_65_ansi_blocker": {
|
||||||
}
|
"layout": [
|
||||||
|
{"label":"K00 (B3,B2)", "x":0, "y":0},
|
||||||
|
{"label":"K01 (B3,F5)", "x":1, "y":0},
|
||||||
|
{"label":"K02 (B3,F6)", "x":2, "y":0},
|
||||||
|
{"label":"K03 (B3,D0)", "x":3, "y":0},
|
||||||
|
{"label":"K04 (B3,D1)", "x":4, "y":0},
|
||||||
|
{"label":"K05 (B3,D2)", "x":5, "y":0},
|
||||||
|
{"label":"K06 (B3,D3)", "x":6, "y":0},
|
||||||
|
{"label":"K07 (B3,D5)", "x":7, "y":0},
|
||||||
|
{"label":"K08 (B3,D4)", "x":8, "y":0},
|
||||||
|
{"label":"K09 (B3,D6)", "x":9, "y":0},
|
||||||
|
{"label":"K0A (B3,D7)", "x":10, "y":0},
|
||||||
|
{"label":"K0B (B3,B4)", "x":11, "y":0},
|
||||||
|
{"label":"K0C (B3,B5)", "x":12, "y":0},
|
||||||
|
{"label":"K0D (B3,B6)", "x":13, "y":0, "w":2},
|
||||||
|
{"label":"K0F (B3,C7)", "x":15, "y":0},
|
||||||
|
{"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5},
|
||||||
|
{"label":"K11 (B7,F5)", "x":1.5, "y":1},
|
||||||
|
{"label":"K12 (B7,F6)", "x":2.5, "y":1},
|
||||||
|
{"label":"K13 (B7,D0)", "x":3.5, "y":1},
|
||||||
|
{"label":"K14 (B7,D1)", "x":4.5, "y":1},
|
||||||
|
{"label":"K15 (B7,D2)", "x":5.5, "y":1},
|
||||||
|
{"label":"K16 (B7,D3)", "x":6.5, "y":1},
|
||||||
|
{"label":"K17 (B7,D5)", "x":7.5, "y":1},
|
||||||
|
{"label":"K18 (B7,D4)", "x":8.5, "y":1},
|
||||||
|
{"label":"K19 (B7,D6)", "x":9.5, "y":1},
|
||||||
|
{"label":"K1A (B7,D7)", "x":10.5, "y":1},
|
||||||
|
{"label":"K1B (B7,B4)", "x":11.5, "y":1},
|
||||||
|
{"label":"K1C (B7,B5)", "x":12.5, "y":1},
|
||||||
|
{"label":"K1D (B7,B6)", "x":13.5, "y":1, "w":1.5},
|
||||||
|
{"label":"K1F (B7,C7)", "x":15, "y":1},
|
||||||
|
{"label":"K20 (F0,B2)", "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,D0)", "x":3.75, "y":2},
|
||||||
|
{"label":"K24 (F0,D1)", "x":4.75, "y":2},
|
||||||
|
{"label":"K25 (F0,D2)", "x":5.75, "y":2},
|
||||||
|
{"label":"K26 (F0,D3)", "x":6.75, "y":2},
|
||||||
|
{"label":"K27 (F0,D5)", "x":7.75, "y":2},
|
||||||
|
{"label":"K28 (F0,D4)", "x":8.75, "y":2},
|
||||||
|
{"label":"K29 (F0,D6)", "x":9.75, "y":2},
|
||||||
|
{"label":"K2A (F0,D7)", "x":10.75, "y":2},
|
||||||
|
{"label":"K2B (F0,B4)", "x":11.75, "y":2},
|
||||||
|
{"label":"K2D (F0,B6)", "x":12.75, "y":2, "w":2.25},
|
||||||
|
{"label":"K2F (F0,C7)", "x":15, "y":2},
|
||||||
|
{"label":"K30 (F1,B2)", "x":0, "y":3, "w":2.25},
|
||||||
|
{"label":"K32 (F1,F6)", "x":2.25, "y":3},
|
||||||
|
{"label":"K33 (F1,D0)", "x":3.25, "y":3},
|
||||||
|
{"label":"K34 (F1,D1)", "x":4.25, "y":3},
|
||||||
|
{"label":"K35 (F1,D2)", "x":5.25, "y":3},
|
||||||
|
{"label":"K36 (F1,D3)", "x":6.25, "y":3},
|
||||||
|
{"label":"K37 (F1,D5)", "x":7.25, "y":3},
|
||||||
|
{"label":"K38 (F1,D4)", "x":8.25, "y":3},
|
||||||
|
{"label":"K39 (F1,D6)", "x":9.25, "y":3},
|
||||||
|
{"label":"K3A (F1,D7)", "x":10.25, "y":3},
|
||||||
|
{"label":"K3B (F1,B4)", "x":11.25, "y":3},
|
||||||
|
{"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75},
|
||||||
|
{"label":"K3E (F1,C6)", "x":14, "y":3},
|
||||||
|
{"label":"K3F (F1,C7)", "x":15, "y":3},
|
||||||
|
{"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225},
|
||||||
|
{"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25},
|
||||||
|
{"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25},
|
||||||
|
{"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25},
|
||||||
|
{"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K4D (F4,B6)", "x":13, "y":4},
|
||||||
|
{"label":"K4E (F4,C6)", "x":14, "y":4},
|
||||||
|
{"label":"K4F (F4,C7)", "x":15, "y":4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_65_ansi_blocker_split_bs": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"K00 (B3,B2)", "x":0, "y":0},
|
||||||
|
{"label":"K01 (B3,F5)", "x":1, "y":0},
|
||||||
|
{"label":"K02 (B3,F6)", "x":2, "y":0},
|
||||||
|
{"label":"K03 (B3,D0)", "x":3, "y":0},
|
||||||
|
{"label":"K04 (B3,D1)", "x":4, "y":0},
|
||||||
|
{"label":"K05 (B3,D2)", "x":5, "y":0},
|
||||||
|
{"label":"K06 (B3,D3)", "x":6, "y":0},
|
||||||
|
{"label":"K07 (B3,D5)", "x":7, "y":0},
|
||||||
|
{"label":"K08 (B3,D4)", "x":8, "y":0},
|
||||||
|
{"label":"K09 (B3,D6)", "x":9, "y":0},
|
||||||
|
{"label":"K0A (B3,D7)", "x":10, "y":0},
|
||||||
|
{"label":"K0B (B3,B4)", "x":11, "y":0},
|
||||||
|
{"label":"K0C (B3,B5)", "x":12, "y":0},
|
||||||
|
{"label":"K0D (B3,B6)", "x":13, "y":0},
|
||||||
|
{"label":"K0E (B3,C6)", "x":14, "y":0},
|
||||||
|
{"label":"K0F (B3,C7)", "x":15, "y":0},
|
||||||
|
{"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5},
|
||||||
|
{"label":"K11 (B7,F5)", "x":1.5, "y":1},
|
||||||
|
{"label":"K12 (B7,F6)", "x":2.5, "y":1},
|
||||||
|
{"label":"K13 (B7,D0)", "x":3.5, "y":1},
|
||||||
|
{"label":"K14 (B7,D1)", "x":4.5, "y":1},
|
||||||
|
{"label":"K15 (B7,D2)", "x":5.5, "y":1},
|
||||||
|
{"label":"K16 (B7,D3)", "x":6.5, "y":1},
|
||||||
|
{"label":"K17 (B7,D5)", "x":7.5, "y":1},
|
||||||
|
{"label":"K18 (B7,D4)", "x":8.5, "y":1},
|
||||||
|
{"label":"K19 (B7,D6)", "x":9.5, "y":1},
|
||||||
|
{"label":"K1A (B7,D7)", "x":10.5, "y":1},
|
||||||
|
{"label":"K1B (B7,B4)", "x":11.5, "y":1},
|
||||||
|
{"label":"K1C (B7,B5)", "x":12.5, "y":1},
|
||||||
|
{"label":"K1D (B7,B6)", "x":13.5, "y":1, "w":1.5},
|
||||||
|
{"label":"K1F (B7,C7)", "x":15, "y":1},
|
||||||
|
{"label":"K20 (F0,B2)", "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,D0)", "x":3.75, "y":2},
|
||||||
|
{"label":"K24 (F0,D1)", "x":4.75, "y":2},
|
||||||
|
{"label":"K25 (F0,D2)", "x":5.75, "y":2},
|
||||||
|
{"label":"K26 (F0,D3)", "x":6.75, "y":2},
|
||||||
|
{"label":"K27 (F0,D5)", "x":7.75, "y":2},
|
||||||
|
{"label":"K28 (F0,D4)", "x":8.75, "y":2},
|
||||||
|
{"label":"K29 (F0,D6)", "x":9.75, "y":2},
|
||||||
|
{"label":"K2A (F0,D7)", "x":10.75, "y":2},
|
||||||
|
{"label":"K2B (F0,B4)", "x":11.75, "y":2},
|
||||||
|
{"label":"K2D (F0,B6)", "x":12.75, "y":2, "w":2.25},
|
||||||
|
{"label":"K2F (F0,C7)", "x":15, "y":2},
|
||||||
|
{"label":"K30 (F1,B2)", "x":0, "y":3, "w":2.25},
|
||||||
|
{"label":"K32 (F1,F6)", "x":2.25, "y":3},
|
||||||
|
{"label":"K33 (F1,D0)", "x":3.25, "y":3},
|
||||||
|
{"label":"K34 (F1,D1)", "x":4.25, "y":3},
|
||||||
|
{"label":"K35 (F1,D2)", "x":5.25, "y":3},
|
||||||
|
{"label":"K36 (F1,D3)", "x":6.25, "y":3},
|
||||||
|
{"label":"K37 (F1,D5)", "x":7.25, "y":3},
|
||||||
|
{"label":"K38 (F1,D4)", "x":8.25, "y":3},
|
||||||
|
{"label":"K39 (F1,D6)", "x":9.25, "y":3},
|
||||||
|
{"label":"K3A (F1,D7)", "x":10.25, "y":3},
|
||||||
|
{"label":"K3B (F1,B4)", "x":11.25, "y":3},
|
||||||
|
{"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75},
|
||||||
|
{"label":"K3E (F1,C6)", "x":14, "y":3},
|
||||||
|
{"label":"K3F (F1,C7)", "x":15, "y":3},
|
||||||
|
{"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225},
|
||||||
|
{"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25},
|
||||||
|
{"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25},
|
||||||
|
{"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25},
|
||||||
|
{"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K4D (F4,B6)", "x":13, "y":4},
|
||||||
|
{"label":"K4E (F4,C6)", "x":14, "y":4},
|
||||||
|
{"label":"K4F (F4,C7)", "x":15, "y":4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_65_iso_blocker": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"K00 (B3,B2)", "x":0, "y":0},
|
||||||
|
{"label":"K01 (B3,F5)", "x":1, "y":0},
|
||||||
|
{"label":"K02 (B3,F6)", "x":2, "y":0},
|
||||||
|
{"label":"K03 (B3,D0)", "x":3, "y":0},
|
||||||
|
{"label":"K04 (B3,D1)", "x":4, "y":0},
|
||||||
|
{"label":"K05 (B3,D2)", "x":5, "y":0},
|
||||||
|
{"label":"K06 (B3,D3)", "x":6, "y":0},
|
||||||
|
{"label":"K07 (B3,D5)", "x":7, "y":0},
|
||||||
|
{"label":"K08 (B3,D4)", "x":8, "y":0},
|
||||||
|
{"label":"K09 (B3,D6)", "x":9, "y":0},
|
||||||
|
{"label":"K0A (B3,D7)", "x":10, "y":0},
|
||||||
|
{"label":"K0B (B3,B4)", "x":11, "y":0},
|
||||||
|
{"label":"K0C (B3,B5)", "x":12, "y":0},
|
||||||
|
{"label":"K0D (B3,B6)", "x":13, "y":0, "w":2},
|
||||||
|
{"label":"K0F (B3,C7)", "x":15, "y":0},
|
||||||
|
{"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5},
|
||||||
|
{"label":"K11 (B7,F5)", "x":1.5, "y":1},
|
||||||
|
{"label":"K12 (B7,F6)", "x":2.5, "y":1},
|
||||||
|
{"label":"K13 (B7,D0)", "x":3.5, "y":1},
|
||||||
|
{"label":"K14 (B7,D1)", "x":4.5, "y":1},
|
||||||
|
{"label":"K15 (B7,D2)", "x":5.5, "y":1},
|
||||||
|
{"label":"K16 (B7,D3)", "x":6.5, "y":1},
|
||||||
|
{"label":"K17 (B7,D5)", "x":7.5, "y":1},
|
||||||
|
{"label":"K18 (B7,D4)", "x":8.5, "y":1},
|
||||||
|
{"label":"K19 (B7,D6)", "x":9.5, "y":1},
|
||||||
|
{"label":"K1A (B7,D7)", "x":10.5, "y":1},
|
||||||
|
{"label":"K1B (B7,B4)", "x":11.5, "y":1},
|
||||||
|
{"label":"K1C (B7,B5)", "x":12.5, "y":1},
|
||||||
|
{"label":"K1F (B7,C7)", "x":15, "y":1},
|
||||||
|
{"label":"K20 (F0,B2)", "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,D0)", "x":3.75, "y":2},
|
||||||
|
{"label":"K24 (F0,D1)", "x":4.75, "y":2},
|
||||||
|
{"label":"K25 (F0,D2)", "x":5.75, "y":2},
|
||||||
|
{"label":"K26 (F0,D3)", "x":6.75, "y":2},
|
||||||
|
{"label":"K27 (F0,D5)", "x":7.75, "y":2},
|
||||||
|
{"label":"K28 (F0,D4)", "x":8.75, "y":2},
|
||||||
|
{"label":"K29 (F0,D6)", "x":9.75, "y":2},
|
||||||
|
{"label":"K2A (F0,D7)", "x":10.75, "y":2},
|
||||||
|
{"label":"K2B (F0,B4)", "x":11.75, "y":2},
|
||||||
|
{"label":"K2C (F0,B5)", "x":12.75, "y":2},
|
||||||
|
{"label":"K2D (F0,B6)", "x":13.75, "y":1, "w":1.25, "h":2},
|
||||||
|
{"label":"K2F (F0,C7)", "x":15, "y":2},
|
||||||
|
{"label":"K30 (F1,B2)", "x":0, "y":3, "w":1.25},
|
||||||
|
{"label":"K31 (F1,F5)", "x":1.25, "y":3},
|
||||||
|
{"label":"K32 (F1,F6)", "x":2.25, "y":3},
|
||||||
|
{"label":"K33 (F1,D0)", "x":3.25, "y":3},
|
||||||
|
{"label":"K34 (F1,D1)", "x":4.25, "y":3},
|
||||||
|
{"label":"K35 (F1,D2)", "x":5.25, "y":3},
|
||||||
|
{"label":"K36 (F1,D3)", "x":6.25, "y":3},
|
||||||
|
{"label":"K37 (F1,D5)", "x":7.25, "y":3},
|
||||||
|
{"label":"K38 (F1,D4)", "x":8.25, "y":3},
|
||||||
|
{"label":"K39 (F1,D6)", "x":9.25, "y":3},
|
||||||
|
{"label":"K3A (F1,D7)", "x":10.25, "y":3},
|
||||||
|
{"label":"K3B (F1,B4)", "x":11.25, "y":3},
|
||||||
|
{"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75},
|
||||||
|
{"label":"K3E (F1,C6)", "x":14, "y":3},
|
||||||
|
{"label":"K3F (F1,C7)", "x":15, "y":3},
|
||||||
|
{"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225},
|
||||||
|
{"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25},
|
||||||
|
{"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25},
|
||||||
|
{"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25},
|
||||||
|
{"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K4D (F4,B6)", "x":13, "y":4},
|
||||||
|
{"label":"K4E (F4,C6)", "x":14, "y":4},
|
||||||
|
{"label":"K4F (F4,C7)", "x":15, "y":4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_65_iso_blocker_split_bs": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"K00 (B3,B2)", "x":0, "y":0},
|
||||||
|
{"label":"K01 (B3,F5)", "x":1, "y":0},
|
||||||
|
{"label":"K02 (B3,F6)", "x":2, "y":0},
|
||||||
|
{"label":"K03 (B3,D0)", "x":3, "y":0},
|
||||||
|
{"label":"K04 (B3,D1)", "x":4, "y":0},
|
||||||
|
{"label":"K05 (B3,D2)", "x":5, "y":0},
|
||||||
|
{"label":"K06 (B3,D3)", "x":6, "y":0},
|
||||||
|
{"label":"K07 (B3,D5)", "x":7, "y":0},
|
||||||
|
{"label":"K08 (B3,D4)", "x":8, "y":0},
|
||||||
|
{"label":"K09 (B3,D6)", "x":9, "y":0},
|
||||||
|
{"label":"K0A (B3,D7)", "x":10, "y":0},
|
||||||
|
{"label":"K0B (B3,B4)", "x":11, "y":0},
|
||||||
|
{"label":"K0C (B3,B5)", "x":12, "y":0},
|
||||||
|
{"label":"K0D (B3,B6)", "x":13, "y":0},
|
||||||
|
{"label":"K0E (B3,C6)", "x":14, "y":0},
|
||||||
|
{"label":"K0F (B3,C7)", "x":15, "y":0},
|
||||||
|
{"label":"K10 (B7,B2)", "x":0, "y":1, "w":1.5},
|
||||||
|
{"label":"K11 (B7,F5)", "x":1.5, "y":1},
|
||||||
|
{"label":"K12 (B7,F6)", "x":2.5, "y":1},
|
||||||
|
{"label":"K13 (B7,D0)", "x":3.5, "y":1},
|
||||||
|
{"label":"K14 (B7,D1)", "x":4.5, "y":1},
|
||||||
|
{"label":"K15 (B7,D2)", "x":5.5, "y":1},
|
||||||
|
{"label":"K16 (B7,D3)", "x":6.5, "y":1},
|
||||||
|
{"label":"K17 (B7,D5)", "x":7.5, "y":1},
|
||||||
|
{"label":"K18 (B7,D4)", "x":8.5, "y":1},
|
||||||
|
{"label":"K19 (B7,D6)", "x":9.5, "y":1},
|
||||||
|
{"label":"K1A (B7,D7)", "x":10.5, "y":1},
|
||||||
|
{"label":"K1B (B7,B4)", "x":11.5, "y":1},
|
||||||
|
{"label":"K1C (B7,B5)", "x":12.5, "y":1},
|
||||||
|
{"label":"K1F (B7,C7)", "x":15, "y":1},
|
||||||
|
{"label":"K20 (F0,B2)", "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,D0)", "x":3.75, "y":2},
|
||||||
|
{"label":"K24 (F0,D1)", "x":4.75, "y":2},
|
||||||
|
{"label":"K25 (F0,D2)", "x":5.75, "y":2},
|
||||||
|
{"label":"K26 (F0,D3)", "x":6.75, "y":2},
|
||||||
|
{"label":"K27 (F0,D5)", "x":7.75, "y":2},
|
||||||
|
{"label":"K28 (F0,D4)", "x":8.75, "y":2},
|
||||||
|
{"label":"K29 (F0,D6)", "x":9.75, "y":2},
|
||||||
|
{"label":"K2A (F0,D7)", "x":10.75, "y":2},
|
||||||
|
{"label":"K2B (F0,B4)", "x":11.75, "y":2},
|
||||||
|
{"label":"K2C (F0,B5)", "x":12.75, "y":2},
|
||||||
|
{"label":"K2D (F0,B6)", "x":13.75, "y":1, "w":1.25, "h":2},
|
||||||
|
{"label":"K2F (F0,C7)", "x":15, "y":2},
|
||||||
|
{"label":"K30 (F1,B2)", "x":0, "y":3, "w":1.25},
|
||||||
|
{"label":"K31 (F1,F5)", "x":1.25, "y":3},
|
||||||
|
{"label":"K32 (F1,F6)", "x":2.25, "y":3},
|
||||||
|
{"label":"K33 (F1,D0)", "x":3.25, "y":3},
|
||||||
|
{"label":"K34 (F1,D1)", "x":4.25, "y":3},
|
||||||
|
{"label":"K35 (F1,D2)", "x":5.25, "y":3},
|
||||||
|
{"label":"K36 (F1,D3)", "x":6.25, "y":3},
|
||||||
|
{"label":"K37 (F1,D5)", "x":7.25, "y":3},
|
||||||
|
{"label":"K38 (F1,D4)", "x":8.25, "y":3},
|
||||||
|
{"label":"K39 (F1,D6)", "x":9.25, "y":3},
|
||||||
|
{"label":"K3A (F1,D7)", "x":10.25, "y":3},
|
||||||
|
{"label":"K3B (F1,B4)", "x":11.25, "y":3},
|
||||||
|
{"label":"K3C (F1,B5)", "x":12.25, "y":3, "w":1.75},
|
||||||
|
{"label":"K3E (F1,C6)", "x":14, "y":3},
|
||||||
|
{"label":"K3F (F1,C7)", "x":15, "y":3},
|
||||||
|
{"label":"K40 (F4,B2)", "x":0, "y":4, "w":1.225},
|
||||||
|
{"label":"K41 (F4,F5)", "x":1.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K42 (F4,F6)", "x":2.5, "y":4, "w":1.25},
|
||||||
|
{"label":"K46 (F4,D3)", "x":3.75, "y":4, "w":6.25},
|
||||||
|
{"label":"K4A (F4,D7)", "x":10, "y":4, "w":1.25},
|
||||||
|
{"label":"K4B (F4,B4)", "x":11.25, "y":4, "w":1.25},
|
||||||
|
{"label":"K4D (F4,B6)", "x":13, "y":4},
|
||||||
|
{"label":"K4E (F4,C6)", "x":14, "y":4},
|
||||||
|
{"label":"K4F (F4,C7)", "x":15, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
// Default layer
|
||||||
|
[0] = LAYOUT_65_ansi_blocker_split_bs(
|
||||||
|
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_HOME,
|
||||||
|
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, KC_END,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
// Fn1 Layer
|
||||||
|
[1] = LAYOUT_65_ansi_blocker_split_bs(
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_DEL, KC_TRNS,
|
||||||
|
KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default ANSI keymap for Lodestone
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
// Default layer
|
||||||
|
[0] = LAYOUT_65_iso_blocker_split_bs(
|
||||||
|
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_HOME,
|
||||||
|
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_PGUP,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN,
|
||||||
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
// Fn1 Layer
|
||||||
|
[1] = LAYOUT_65_iso_blocker_split_bs(
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_DEL, KC_TRNS,
|
||||||
|
KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default ISO keymap for Lodestone
|
||||||
@@ -35,3 +35,59 @@
|
|||||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, ___, K3E, K3F }, \
|
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, ___, K3E, K3F }, \
|
||||||
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \
|
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_65_ansi_blocker( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, 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, K3E, K3F, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4D, K4E, K4F \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, ___, 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, ___, K3E, K3F }, \
|
||||||
|
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \
|
||||||
|
}
|
||||||
|
|
||||||
|
#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, K3E, K3F, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4D, K4E, 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, ___, 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, ___, K3E, K3F }, \
|
||||||
|
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_65_iso_blocker( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, 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, K2C, K2D, K2F, \
|
||||||
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3E, K3F, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4D, K4E, K4F \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, ___, 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, K2C, K2D, ___, K2F }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, ___, K3E, K3F }, \
|
||||||
|
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_65_iso_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, K1F, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2F, \
|
||||||
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3E, K3F, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4D, K4E, 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, ___, ___, K1F }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, ___, K2F }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, ___, K3E, K3F }, \
|
||||||
|
{ K40, K41, K42, ___, ___, ___, K46, ___, ___, ___, K4A, K4B, ___, K4D, K4E, K4F }, \
|
||||||
|
}
|
||||||
@@ -31,3 +31,5 @@ AUDIO_ENABLE = no # Audio output on port C6
|
|||||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
LTO_ENABLE = yes
|
LTO_ENABLE = yes
|
||||||
|
|
||||||
|
LAYOUTS = 65_ansi_blocker 65_iso_blocker
|
||||||
@@ -30,4 +30,4 @@ SRC = keyboards/wilba_tech/wt_main.c \
|
|||||||
keyboards/wilba_tech/wt_rgb_backlight.c \
|
keyboards/wilba_tech/wt_rgb_backlight.c \
|
||||||
drivers/issi/is31fl3733.c \
|
drivers/issi/is31fl3733.c \
|
||||||
quantum/color.c \
|
quantum/color.c \
|
||||||
drivers/arm/i2c_master.c
|
drivers/chibios/i2c_master.c
|
||||||
@@ -28,4 +28,4 @@ SRC = keyboards/wilba_tech/wt_main.c \
|
|||||||
keyboards/wilba_tech/wt_rgb_backlight.c \
|
keyboards/wilba_tech/wt_rgb_backlight.c \
|
||||||
drivers/issi/is31fl3733.c \
|
drivers/issi/is31fl3733.c \
|
||||||
quantum/color.c \
|
quantum/color.c \
|
||||||
drivers/arm/i2c_master.c
|
drivers/chibios/i2c_master.c
|
||||||
@@ -30,4 +30,4 @@ SRC = keyboards/wilba_tech/wt_main.c \
|
|||||||
keyboards/wilba_tech/wt_rgb_backlight.c \
|
keyboards/wilba_tech/wt_rgb_backlight.c \
|
||||||
drivers/issi/is31fl3733.c \
|
drivers/issi/is31fl3733.c \
|
||||||
quantum/color.c \
|
quantum/color.c \
|
||||||
drivers/arm/i2c_master.c
|
drivers/chibios/i2c_master.c
|
||||||
@@ -30,4 +30,4 @@ SRC = keyboards/wilba_tech/wt_main.c \
|
|||||||
keyboards/wilba_tech/wt_rgb_backlight.c \
|
keyboards/wilba_tech/wt_rgb_backlight.c \
|
||||||
drivers/issi/is31fl3733.c \
|
drivers/issi/is31fl3733.c \
|
||||||
quantum/color.c \
|
quantum/color.c \
|
||||||
drivers/arm/i2c_master.c
|
drivers/chibios/i2c_master.c
|
||||||
@@ -41,6 +41,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
/* Encoders */
|
/* Encoders */
|
||||||
#define ENCODERS_PAD_A { F4, F6 }
|
#define ENCODERS_PAD_A { F4, F6 }
|
||||||
#define ENCODERS_PAD_B { F5, F7 }
|
#define ENCODERS_PAD_B { F5, F7 }
|
||||||
|
#define ENCODER_RESOLUTION 2
|
||||||
|
// if you want to reverse encoder direction
|
||||||
|
// #define ENCODER_DIRECTION_FLIP
|
||||||
|
|
||||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
#define DEBOUNCE 5
|
#define DEBOUNCE 5
|
||||||
|
|||||||
@@ -116,55 +116,55 @@ void encoder_update_user(uint8_t index, bool clockwise) {
|
|||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// Zoom
|
// Zoom
|
||||||
tap_code16(!clockwise ? G(KC_EQL) : G(KC_MINS));
|
tap_code16(!clockwise ? G(KC_MINS) : G(KC_EQL));
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// rotate canvas
|
// rotate canvas
|
||||||
tap_code(!clockwise ? KC_QUOT : KC_MINS);
|
tap_code(!clockwise ? KC_MINS : KC_QUOT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MAC_PS_1:
|
case MAC_PS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// Zoom
|
// Zoom
|
||||||
tap_code16(!clockwise ? G(KC_EQL) : G(KC_MINS));
|
tap_code16(!clockwise ? G(KC_MINS) : G(KC_EQL));
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// undo / redo
|
// undo / redo
|
||||||
tap_code16(!clockwise ? S(G(KC_Z)) : G(KC_Z));
|
tap_code16(!clockwise ? G(KC_Z) : S(G(KC_Z)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WIN_CS_1:
|
case WIN_CS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// Zoom
|
// Zoom
|
||||||
tap_code16(!clockwise ? C(KC_EQL) : C(KC_MINS));
|
tap_code16(!clockwise ? C(KC_MINS) : C(KC_EQL));
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// rotate canvas
|
// rotate canvas
|
||||||
tap_code(!clockwise ? KC_QUOT : KC_MINS);
|
tap_code(!clockwise ? KC_MINS : KC_QUOT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WIN_PS_1:
|
case WIN_PS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// Zoom
|
// Zoom
|
||||||
tap_code16(!clockwise ? C(KC_SCLN) : C(KC_MINS));
|
tap_code16(!clockwise ? C(KC_MINS) : C(KC_SCLN));
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// undo / redo
|
// undo / redo
|
||||||
tap_code16(!clockwise ? C(S(KC_Z)) : C(KC_Z));
|
tap_code16(!clockwise ? C(KC_Z) : C(S(KC_Z)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IOS_CS_1:
|
case IOS_CS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// Zoom
|
// Zoom
|
||||||
tap_code16(!clockwise ? G(KC_SCLN) : G(KC_MINS));
|
tap_code16(!clockwise ? G(KC_MINS) : G(KC_SCLN));
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// rotate canvas
|
// rotate canvas
|
||||||
tap_code(!clockwise ? KC_EQL : KC_MINS);
|
tap_code(!clockwise ? KC_MINS : KC_EQL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -176,55 +176,55 @@ void encoder_update_user(uint8_t index, bool clockwise) {
|
|||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// size of brush
|
// size of brush
|
||||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
tap_code(!clockwise ? KC_LBRC : KC_RBRC);
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// opacity of brush
|
// opacity of brush
|
||||||
tap_code16(!clockwise ? G(KC_RBRC) : G(KC_LBRC));
|
tap_code16(!clockwise ? G(KC_LBRC) : G(KC_RBRC));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MAC_PS_1:
|
case MAC_PS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// size of brush
|
// size of brush
|
||||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
tap_code(!clockwise ? KC_LBRC : KC_RBRC);
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// opacity of brush
|
// opacity of brush
|
||||||
tap_code16(!clockwise ? KC_RCBR : KC_LCBR);
|
tap_code16(!clockwise ? KC_LCBR : KC_RCBR);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WIN_CS_1:
|
case WIN_CS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// rotate canvas
|
// rotate canvas
|
||||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
tap_code(!clockwise ? KC_LBRC : KC_RBRC);
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// opacity of brush
|
// opacity of brush
|
||||||
tap_code16(!clockwise ? C(KC_RBRC) : C(KC_LBRC));
|
tap_code16(!clockwise ? C(KC_LBRC) : C(KC_RBRC));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WIN_PS_1:
|
case WIN_PS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// rotate canvas
|
// rotate canvas
|
||||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
tap_code(!clockwise ? KC_LBRC : KC_RBRC);
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// opacity of brush
|
// opacity of brush
|
||||||
tap_code16(!clockwise ? KC_RCBR : KC_LCBR);
|
tap_code16(!clockwise ? KC_LCBR : KC_RCBR);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IOS_CS_1:
|
case IOS_CS_1:
|
||||||
if (currentLayer % 2 == 0) {
|
if (currentLayer % 2 == 0) {
|
||||||
// default layer
|
// default layer
|
||||||
// size of brush
|
// size of brush
|
||||||
tap_code(!clockwise ? KC_BSLS : KC_RBRC);
|
tap_code(!clockwise ? KC_RBRC : KC_BSLS);
|
||||||
} else {
|
} else {
|
||||||
// Fn Layer
|
// Fn Layer
|
||||||
// opacity of brush
|
// opacity of brush
|
||||||
tap_code16(!clockwise ? G(KC_BSLS) : G(KC_RBRC));
|
tap_code16(!clockwise ? G(KC_RBRC) : G(KC_BSLS));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ A left hand device with rotary encoder, for artists.
|
|||||||
|
|
||||||
* Keyboard Maintainer: [niltea](https://github.com/niltea)
|
* Keyboard Maintainer: [niltea](https://github.com/niltea)
|
||||||
* Hardware Supported: Palette1202
|
* Hardware Supported: Palette1202
|
||||||
* Hardware Availability: [Pixiv Booth](https://booth.pm/)
|
* Hardware Availability: [Pixiv Booth](https://niltea.booth.pm/)
|
||||||
* [PCB & Case](https://github.com/niltea/Palette1202)
|
* [PCB & Case](https://github.com/niltea/Palette1202)
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
#else
|
#else
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
#include "drivers/arm/i2c_master.h"
|
#include "drivers/chibios/i2c_master.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RGB_BACKLIGHT_DAWN60)
|
#if defined(RGB_BACKLIGHT_DAWN60)
|
||||||
|
|||||||
@@ -3,18 +3,18 @@
|
|||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
#define LAYOUT( \
|
#define LAYOUT( \
|
||||||
K00, K01, K02, K03, K04, K05, K20, K21, K22, K23, K24, K25, \
|
K00, K01, K02, K03, K04, K05, K40, K41, K42, K43, K44, K45,\
|
||||||
K40, K41, K42, K43, K44, K45, K60, K61, K62, K63, K64, K65, \
|
K10, K11, K12, K13, K14, K15, K50, K51, K52, K53, K54, K55,\
|
||||||
K10, K11, K12, K13, K14, K15, K30, K31, K32, K33, K34, K35, \
|
K20, K21, K22, K23, K24, K25, K60, K61, K62, K63, K64, K65,\
|
||||||
K50, K51, K52, K53, K54, K55, K70, K71, K72, K73, K74, K75 \
|
K30, K31, K32, K33, K34, K35, K70, K71, K72, K73, K74, K75 \
|
||||||
) { \
|
) { \
|
||||||
{ K00, K01, K02, K03, K04, K05 }, \
|
{ K00, K01, K02, K03, K04, K05 }, \
|
||||||
{ K10, K11, K12, K13, K14, K15 }, \
|
{ K10, K11, K12, K13, K14, K15 }, \
|
||||||
{ K20, K21, K22, K23, K24, K25 }, \
|
{ K20, K21, K22, K23, K24, K25 }, \
|
||||||
{ K30, K31, K32, K33, K34, K35 }, \
|
{ K30, K31, K32, K33, K34, K35 }, \
|
||||||
{ K40, K41, K42, K43, K44, K45 }, \
|
{ K40, K41, K42, K43, K44, K45 }, \
|
||||||
{ K50, K51, K52, K53, K54, K55 }, \
|
{ K50, K51, K52, K53, K54, K55 }, \
|
||||||
{ K60, K61, K62, K63, K64, K65 }, \
|
{ K60, K61, K62, K63, K64, K65 }, \
|
||||||
{ K70, K71, K72, K73, K74, K75 } \
|
{ K70, K71, K72, K73, K74, K75 } \
|
||||||
}
|
}
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -581,32 +581,6 @@ void tap_random_base64(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak)) void bootmagic_lite(void) {
|
|
||||||
// The lite version of TMK's bootmagic based on Wilba.
|
|
||||||
// 100% less potential for accidentally making the
|
|
||||||
// keyboard do stupid things.
|
|
||||||
|
|
||||||
// We need multiple scans because debouncing can't be turned off.
|
|
||||||
matrix_scan();
|
|
||||||
#if defined(DEBOUNCE) && DEBOUNCE > 0
|
|
||||||
wait_ms(DEBOUNCE * 2);
|
|
||||||
#else
|
|
||||||
wait_ms(30);
|
|
||||||
#endif
|
|
||||||
matrix_scan();
|
|
||||||
|
|
||||||
// If the Esc and space bar are held down on power up,
|
|
||||||
// reset the EEPROM valid state and jump to bootloader.
|
|
||||||
// Assumes Esc is at [0,0].
|
|
||||||
// This isn't very generalized, but we need something that doesn't
|
|
||||||
// rely on user's keymaps in firmware or EEPROM.
|
|
||||||
if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) {
|
|
||||||
eeconfig_disable();
|
|
||||||
// Jump to bootloader.
|
|
||||||
bootloader_jump();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_init_quantum() {
|
void matrix_init_quantum() {
|
||||||
#ifdef BOOTMAGIC_LITE
|
#ifdef BOOTMAGIC_LITE
|
||||||
bootmagic_lite();
|
bootmagic_lite();
|
||||||
|
|||||||
@@ -92,36 +92,6 @@ void via_eeprom_reset(void) {
|
|||||||
eeconfig_disable();
|
eeconfig_disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override bootmagic_lite() so it can flag EEPROM as invalid
|
|
||||||
// as well as jump to bootloader, thus performing a "factory reset"
|
|
||||||
// of dynamic keymaps and optionally backlight/other settings.
|
|
||||||
void bootmagic_lite(void) {
|
|
||||||
// The lite version of TMK's bootmagic based on Wilba.
|
|
||||||
// 100% less potential for accidentally making the
|
|
||||||
// keyboard do stupid things.
|
|
||||||
|
|
||||||
// We need multiple scans because debouncing can't be turned off.
|
|
||||||
matrix_scan();
|
|
||||||
#if defined(DEBOUNCE) && DEBOUNCE > 0
|
|
||||||
wait_ms(DEBOUNCE * 2);
|
|
||||||
#else
|
|
||||||
wait_ms(30);
|
|
||||||
#endif
|
|
||||||
matrix_scan();
|
|
||||||
|
|
||||||
// If the Esc and space bar are held down on power up,
|
|
||||||
// reset the EEPROM valid state and jump to bootloader.
|
|
||||||
// Assumes Esc is at [0,0].
|
|
||||||
// This isn't very generalized, but we need something that doesn't
|
|
||||||
// rely on user's keymaps in firmware or EEPROM.
|
|
||||||
if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) {
|
|
||||||
// This is the only difference from the default implementation.
|
|
||||||
via_eeprom_reset();
|
|
||||||
// Jump to bootloader.
|
|
||||||
bootloader_jump();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Override this at the keyboard code level to check
|
// Override this at the keyboard code level to check
|
||||||
// VIA's EEPROM valid state and reset to defaults as needed.
|
// VIA's EEPROM valid state and reset to defaults as needed.
|
||||||
// Used by keyboards that store their own state in EEPROM,
|
// Used by keyboards that store their own state in EEPROM,
|
||||||
|
|||||||
+1
-1
@@ -179,7 +179,7 @@ HEX = $(OBJCOPY) -O $(FORMAT)
|
|||||||
EEP =
|
EEP =
|
||||||
BIN = $(OBJCOPY) -O binary
|
BIN = $(OBJCOPY) -O binary
|
||||||
|
|
||||||
COMMON_VPATH += $(DRIVER_PATH)/arm
|
COMMON_VPATH += $(DRIVER_PATH)/chibios
|
||||||
|
|
||||||
THUMBFLAGS = -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB
|
THUMBFLAGS = -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB
|
||||||
|
|
||||||
|
|||||||
+4
-12
@@ -1,13 +1,5 @@
|
|||||||
COMMON_DIR = common
|
COMMON_DIR = common
|
||||||
ifeq ($(PLATFORM),AVR)
|
PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
|
||||||
PLATFORM_COMMON_DIR = $(COMMON_DIR)/avr
|
|
||||||
else ifeq ($(PLATFORM),CHIBIOS)
|
|
||||||
PLATFORM_COMMON_DIR = $(COMMON_DIR)/chibios
|
|
||||||
else ifeq ($(PLATFORM),ARM_ATSAM)
|
|
||||||
PLATFORM_COMMON_DIR = $(COMMON_DIR)/arm_atsam
|
|
||||||
else
|
|
||||||
PLATFORM_COMMON_DIR = $(COMMON_DIR)/test
|
|
||||||
endif
|
|
||||||
|
|
||||||
TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
|
TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
|
||||||
$(COMMON_DIR)/keyboard.c \
|
$(COMMON_DIR)/keyboard.c \
|
||||||
@@ -42,6 +34,8 @@ ifneq ($(strip $(BOOTMAGIC_ENABLE)), no)
|
|||||||
endif
|
endif
|
||||||
ifeq ($(strip $(BOOTMAGIC_ENABLE)), lite)
|
ifeq ($(strip $(BOOTMAGIC_ENABLE)), lite)
|
||||||
TMK_COMMON_DEFS += -DBOOTMAGIC_LITE
|
TMK_COMMON_DEFS += -DBOOTMAGIC_LITE
|
||||||
|
TMK_COMMON_SRC += $(COMMON_DIR)/bootmagic_lite.c
|
||||||
|
|
||||||
TMK_COMMON_DEFS += -DMAGIC_ENABLE
|
TMK_COMMON_DEFS += -DMAGIC_ENABLE
|
||||||
TMK_COMMON_SRC += $(COMMON_DIR)/magic.c
|
TMK_COMMON_SRC += $(COMMON_DIR)/magic.c
|
||||||
else
|
else
|
||||||
@@ -179,6 +173,4 @@ endif
|
|||||||
|
|
||||||
# Search Path
|
# Search Path
|
||||||
VPATH += $(TMK_PATH)/$(COMMON_DIR)
|
VPATH += $(TMK_PATH)/$(COMMON_DIR)
|
||||||
ifeq ($(PLATFORM),CHIBIOS)
|
VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR)
|
||||||
VPATH += $(TMK_PATH)/$(COMMON_DIR)/chibios
|
|
||||||
endif
|
|
||||||
@@ -562,8 +562,6 @@ void process_action(keyrecord_t *record, action_t action) {
|
|||||||
action_macro_play(action_get_macro(record, action.func.id, action.func.opt));
|
action_macro_play(action_get_macro(record, action.func.id, action.func.opt));
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case ACT_COMMAND:
|
|
||||||
break;
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
case ACT_SWAP_HANDS:
|
case ACT_SWAP_HANDS:
|
||||||
switch (action.swap.code) {
|
switch (action.swap.code) {
|
||||||
@@ -1041,9 +1039,6 @@ void debug_action(action_t action) {
|
|||||||
case ACT_MACRO:
|
case ACT_MACRO:
|
||||||
dprint("ACT_MACRO");
|
dprint("ACT_MACRO");
|
||||||
break;
|
break;
|
||||||
case ACT_COMMAND:
|
|
||||||
dprint("ACT_COMMAND");
|
|
||||||
break;
|
|
||||||
case ACT_FUNCTION:
|
case ACT_FUNCTION:
|
||||||
dprint("ACT_FUNCTION");
|
dprint("ACT_FUNCTION");
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -87,9 +87,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* 1100|1111| id(8) Macro record?
|
* 1100|1111| id(8) Macro record?
|
||||||
*
|
*
|
||||||
* 1101|xxxx xxxx xxxx (reserved)
|
* 1101|xxxx xxxx xxxx (reserved)
|
||||||
*
|
* 1110|xxxx xxxx xxxx (reserved)
|
||||||
* ACT_COMMAND(1110):
|
|
||||||
* 1110|opt | id(8) Built-in Command exec
|
|
||||||
*
|
*
|
||||||
* ACT_FUNCTION(1111):
|
* ACT_FUNCTION(1111):
|
||||||
* 1111| address(12) Function?
|
* 1111| address(12) Function?
|
||||||
@@ -115,7 +113,6 @@ enum action_kind_id {
|
|||||||
ACT_LAYER_TAP_EXT = 0b1011, /* Layer 16-31 */
|
ACT_LAYER_TAP_EXT = 0b1011, /* Layer 16-31 */
|
||||||
/* Extensions */
|
/* Extensions */
|
||||||
ACT_MACRO = 0b1100,
|
ACT_MACRO = 0b1100,
|
||||||
ACT_COMMAND = 0b1110,
|
|
||||||
ACT_FUNCTION = 0b1111
|
ACT_FUNCTION = 0b1111
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -167,11 +164,6 @@ typedef union {
|
|||||||
uint8_t page : 2;
|
uint8_t page : 2;
|
||||||
uint8_t kind : 4;
|
uint8_t kind : 4;
|
||||||
} usage;
|
} usage;
|
||||||
struct action_command {
|
|
||||||
uint8_t id : 8;
|
|
||||||
uint8_t opt : 4;
|
|
||||||
uint8_t kind : 4;
|
|
||||||
} command;
|
|
||||||
struct action_function {
|
struct action_function {
|
||||||
uint8_t id : 8;
|
uint8_t id : 8;
|
||||||
uint8_t opt : 4;
|
uint8_t opt : 4;
|
||||||
@@ -287,8 +279,6 @@ enum layer_param_tap_op {
|
|||||||
#define ACTION_MACRO(id) ACTION(ACT_MACRO, (id))
|
#define ACTION_MACRO(id) ACTION(ACT_MACRO, (id))
|
||||||
#define ACTION_MACRO_TAP(id) ACTION(ACT_MACRO, FUNC_TAP << 8 | (id))
|
#define ACTION_MACRO_TAP(id) ACTION(ACT_MACRO, FUNC_TAP << 8 | (id))
|
||||||
#define ACTION_MACRO_OPT(id, opt) ACTION(ACT_MACRO, (opt) << 8 | (id))
|
#define ACTION_MACRO_OPT(id, opt) ACTION(ACT_MACRO, (opt) << 8 | (id))
|
||||||
/* Command */
|
|
||||||
#define ACTION_COMMAND(id, opt) ACTION(ACT_COMMAND, (opt) << 8 | (id))
|
|
||||||
/* Function */
|
/* Function */
|
||||||
enum function_opts {
|
enum function_opts {
|
||||||
FUNC_TAP = 0x8, /* indciates function is tappable */
|
FUNC_TAP = 0x8, /* indciates function is tappable */
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
bool is_keyboard_left(void);
|
||||||
|
|
||||||
|
/** \brief Reset eeprom
|
||||||
|
*
|
||||||
|
* ...just incase someone wants to only change the eeprom behaviour
|
||||||
|
*/
|
||||||
|
__attribute__((weak)) void bootmagic_lite_reset_eeprom(void) {
|
||||||
|
#if defined(VIA_ENABLE)
|
||||||
|
via_eeprom_reset();
|
||||||
|
#else
|
||||||
|
eeconfig_disable();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/** \brief The lite version of TMK's bootmagic based on Wilba.
|
||||||
|
*
|
||||||
|
* 100% less potential for accidentally making the keyboard do stupid things.
|
||||||
|
*/
|
||||||
|
__attribute__((weak)) void bootmagic_lite(void) {
|
||||||
|
// We need multiple scans because debouncing can't be turned off.
|
||||||
|
matrix_scan();
|
||||||
|
#if defined(DEBOUNCE) && DEBOUNCE > 0
|
||||||
|
wait_ms(DEBOUNCE * 2);
|
||||||
|
#else
|
||||||
|
wait_ms(30);
|
||||||
|
#endif
|
||||||
|
matrix_scan();
|
||||||
|
|
||||||
|
// If the configured key (commonly Esc) is held down on power up,
|
||||||
|
// reset the EEPROM valid state and jump to bootloader.
|
||||||
|
// This isn't very generalized, but we need something that doesn't
|
||||||
|
// rely on user's keymaps in firmware or EEPROM.
|
||||||
|
uint8_t row = BOOTMAGIC_LITE_ROW;
|
||||||
|
uint8_t col = BOOTMAGIC_LITE_COLUMN;
|
||||||
|
|
||||||
|
#if defined(SPLIT_KEYBOARD) && defined(BOOTMAGIC_LITE_ROW_RIGHT) && defined(BOOTMAGIC_LITE_COLUMN_RIGHT)
|
||||||
|
if (!is_keyboard_left()) {
|
||||||
|
row = BOOTMAGIC_LITE_ROW_RIGHT;
|
||||||
|
col = BOOTMAGIC_LITE_COLUMN_RIGHT;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (matrix_get_row(row) & (1 << col)) {
|
||||||
|
bootmagic_lite_reset_eeprom();
|
||||||
|
|
||||||
|
// Jump to bootloader.
|
||||||
|
bootloader_jump();
|
||||||
|
}
|
||||||
|
}
|
||||||
+68
-53
@@ -15,66 +15,83 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef REPORT_H
|
#pragma once
|
||||||
#define REPORT_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "keycode.h"
|
#include "keycode.h"
|
||||||
|
|
||||||
/* report id */
|
// clang-format off
|
||||||
#define REPORT_ID_KEYBOARD 1
|
|
||||||
#define REPORT_ID_MOUSE 2
|
|
||||||
#define REPORT_ID_SYSTEM 3
|
|
||||||
#define REPORT_ID_CONSUMER 4
|
|
||||||
#define REPORT_ID_NKRO 5
|
|
||||||
|
|
||||||
/* mouse buttons */
|
/* HID report IDs */
|
||||||
#define MOUSE_BTN1 (1 << 0)
|
enum hid_report_ids {
|
||||||
#define MOUSE_BTN2 (1 << 1)
|
REPORT_ID_KEYBOARD = 1,
|
||||||
#define MOUSE_BTN3 (1 << 2)
|
REPORT_ID_MOUSE,
|
||||||
#define MOUSE_BTN4 (1 << 3)
|
REPORT_ID_SYSTEM,
|
||||||
#define MOUSE_BTN5 (1 << 4)
|
REPORT_ID_CONSUMER,
|
||||||
|
REPORT_ID_NKRO
|
||||||
|
};
|
||||||
|
|
||||||
/* Consumer Page(0x0C)
|
/* Mouse buttons */
|
||||||
* following are supported by Windows: http://msdn.microsoft.com/en-us/windows/hardware/gg463372.aspx
|
enum mouse_buttons {
|
||||||
* see also https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/display-brightness-control
|
MOUSE_BTN1 = (1 << 0),
|
||||||
|
MOUSE_BTN2 = (1 << 1),
|
||||||
|
MOUSE_BTN3 = (1 << 2),
|
||||||
|
MOUSE_BTN4 = (1 << 3),
|
||||||
|
MOUSE_BTN5 = (1 << 4)
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Consumer Page (0x0C)
|
||||||
|
*
|
||||||
|
* See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=75
|
||||||
*/
|
*/
|
||||||
#define AUDIO_MUTE 0x00E2
|
enum consumer_usages {
|
||||||
#define AUDIO_VOL_UP 0x00E9
|
// 15.5 Display Controls (https://www.usb.org/sites/default/files/hutrr41_0.pdf)
|
||||||
#define AUDIO_VOL_DOWN 0x00EA
|
BRIGHTNESS_UP = 0x06F,
|
||||||
#define TRANSPORT_NEXT_TRACK 0x00B5
|
BRIGHTNESS_DOWN = 0x070,
|
||||||
#define TRANSPORT_PREV_TRACK 0x00B6
|
// 15.7 Transport Controls
|
||||||
#define TRANSPORT_STOP 0x00B7
|
TRANSPORT_RECORD = 0x0B2,
|
||||||
#define TRANSPORT_STOP_EJECT 0x00CC
|
TRANSPORT_FAST_FORWARD = 0x0B3,
|
||||||
#define TRANSPORT_PLAY_PAUSE 0x00CD
|
TRANSPORT_REWIND = 0x0B4,
|
||||||
#define BRIGHTNESS_UP 0x006F
|
TRANSPORT_NEXT_TRACK = 0x0B5,
|
||||||
#define BRIGHTNESS_DOWN 0x0070
|
TRANSPORT_PREV_TRACK = 0x0B6,
|
||||||
/* application launch */
|
TRANSPORT_STOP = 0x0B7,
|
||||||
#define AL_CC_CONFIG 0x0183
|
TRANSPORT_EJECT = 0x0B8,
|
||||||
#define AL_EMAIL 0x018A
|
TRANSPORT_STOP_EJECT = 0x0CC,
|
||||||
#define AL_CALCULATOR 0x0192
|
TRANSPORT_PLAY_PAUSE = 0x0CD,
|
||||||
#define AL_LOCAL_BROWSER 0x0194
|
// 15.9.1 Audio Controls - Volume
|
||||||
/* application control */
|
AUDIO_MUTE = 0x0E2,
|
||||||
#define AC_SEARCH 0x0221
|
AUDIO_VOL_UP = 0x0E9,
|
||||||
#define AC_HOME 0x0223
|
AUDIO_VOL_DOWN = 0x0EA,
|
||||||
#define AC_BACK 0x0224
|
// 15.15 Application Launch Buttons
|
||||||
#define AC_FORWARD 0x0225
|
AL_CC_CONFIG = 0x183,
|
||||||
#define AC_STOP 0x0226
|
AL_EMAIL = 0x18A,
|
||||||
#define AC_REFRESH 0x0227
|
AL_CALCULATOR = 0x192,
|
||||||
#define AC_BOOKMARKS 0x022A
|
AL_LOCAL_BROWSER = 0x194,
|
||||||
/* supplement for Bluegiga iWRAP HID(not supported by Windows?) */
|
AL_LOCK = 0x19E,
|
||||||
#define AL_LOCK 0x019E
|
// 15.16 Generic GUI Application Controls
|
||||||
#define TRANSPORT_RECORD 0x00B2
|
AC_MINIMIZE = 0x206,
|
||||||
#define TRANSPORT_FAST_FORWARD 0x00B3
|
AC_SEARCH = 0x221,
|
||||||
#define TRANSPORT_REWIND 0x00B4
|
AC_HOME = 0x223,
|
||||||
#define TRANSPORT_EJECT 0x00B8
|
AC_BACK = 0x224,
|
||||||
#define AC_MINIMIZE 0x0206
|
AC_FORWARD = 0x225,
|
||||||
|
AC_STOP = 0x226,
|
||||||
|
AC_REFRESH = 0x227,
|
||||||
|
AC_BOOKMARKS = 0x22A
|
||||||
|
};
|
||||||
|
|
||||||
/* Generic Desktop Page(0x01) - system power control */
|
/* Generic Desktop Page (0x01)
|
||||||
#define SYSTEM_POWER_DOWN 0x0081
|
*
|
||||||
#define SYSTEM_SLEEP 0x0082
|
* See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=26
|
||||||
#define SYSTEM_WAKE_UP 0x0083
|
*/
|
||||||
|
enum desktop_usages {
|
||||||
|
// 4.5.1 System Controls - Power Controls
|
||||||
|
SYSTEM_POWER_DOWN = 0x81,
|
||||||
|
SYSTEM_SLEEP = 0x82,
|
||||||
|
SYSTEM_WAKE_UP = 0x83
|
||||||
|
};
|
||||||
|
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
#define NKRO_SHARED_EP
|
#define NKRO_SHARED_EP
|
||||||
/* key report size(NKRO or boot mode) */
|
/* key report size(NKRO or boot mode) */
|
||||||
@@ -253,5 +270,3 @@ void clear_keys_from_report(report_keyboard_t* keyboard_report);
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in new issue
Block a user