Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ceaae30f5 | ||
|
|
5075a1d9e4 | ||
|
|
3587e20e70 | ||
|
|
963bba1fc3 | ||
|
|
571a589cfa | ||
|
|
3c2d5599b9 | ||
|
|
3b05f25221 | ||
|
|
e05e671871 | ||
|
|
2d5b492550 | ||
|
|
ad8774d6fa | ||
|
|
297aad6ebd | ||
|
|
8f69983c58 | ||
|
|
b779078c60 | ||
|
|
b936048b0b | ||
|
|
7e0dc5376f | ||
|
|
6d1af63842 | ||
|
|
6c4a744a1b | ||
|
|
f7722ef9ca | ||
|
|
76cb2b1160 | ||
|
|
5117dff6a2 | ||
|
|
e5d34fd084 | ||
|
|
bfb2f8e0a8 | ||
|
|
d8f3c28a37 | ||
|
|
eef0cb2f90 | ||
|
|
63e4ad13c8 |
@@ -244,34 +244,6 @@ else
|
|||||||
FIRMWARE_FORMAT?=hex
|
FIRMWARE_FORMAT?=hex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),CHIBIOS)
|
|
||||||
include $(TMK_PATH)/chibios.mk
|
|
||||||
OPT_OS = chibios
|
|
||||||
ifneq ("$(wildcard $(KEYBOARD_PATH_5)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_5)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_5)/boards/$(BOARD)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_5)/boards/$(BOARD)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_4)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_4)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_4)/boards/$(BOARD)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_4)/boards/$(BOARD)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_3)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_3)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_3)/boards/$(BOARD)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_3)/boards/$(BOARD)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_2)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/boards/$(BOARD)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_2)/boards/$(BOARD)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_1)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/boards/$(BOARD)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(KEYBOARD_PATH_1)/boards/$(BOARD)/bootloader_defs.h
|
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/drivers/boards/$(BOARD)/bootloader_defs.h)","")
|
|
||||||
OPT_DEFS += -include $(TOP_DIR)/drivers/boards/$(BOARD)/bootloader_defs.h
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Find all of the config.h files and add them to our CONFIG_H define.
|
# Find all of the config.h files and add them to our CONFIG_H define.
|
||||||
CONFIG_H :=
|
CONFIG_H :=
|
||||||
ifneq ("$(wildcard $(KEYBOARD_PATH_5)/config.h)","")
|
ifneq ("$(wildcard $(KEYBOARD_PATH_5)/config.h)","")
|
||||||
@@ -307,11 +279,6 @@ ifneq ("$(wildcard $(KEYBOARD_PATH_5)/post_config.h)","")
|
|||||||
POST_CONFIG_H += $(KEYBOARD_PATH_5)/post_config.h
|
POST_CONFIG_H += $(KEYBOARD_PATH_5)/post_config.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Save the defines and includes here, so we don't include any keymap specific ones
|
|
||||||
PROJECT_DEFS := $(OPT_DEFS)
|
|
||||||
PROJECT_INC := $(VPATH) $(EXTRAINCDIRS) $(KEYBOARD_PATHS)
|
|
||||||
PROJECT_CONFIG := $(CONFIG_H)
|
|
||||||
|
|
||||||
# Userspace setup and definitions
|
# Userspace setup and definitions
|
||||||
ifeq ("$(USER_NAME)","")
|
ifeq ("$(USER_NAME)","")
|
||||||
USER_NAME := $(KEYMAP)
|
USER_NAME := $(KEYMAP)
|
||||||
@@ -357,23 +324,17 @@ SRC += $(TMK_COMMON_SRC)
|
|||||||
OPT_DEFS += $(TMK_COMMON_DEFS)
|
OPT_DEFS += $(TMK_COMMON_DEFS)
|
||||||
EXTRALDFLAGS += $(TMK_COMMON_LDFLAGS)
|
EXTRALDFLAGS += $(TMK_COMMON_LDFLAGS)
|
||||||
|
|
||||||
ifeq ($(PLATFORM),AVR)
|
include $(TMK_PATH)/$(PLATFORM_KEY).mk
|
||||||
ifeq ($(strip $(PROTOCOL)), VUSB)
|
ifneq ($(strip $(PROTOCOL)),)
|
||||||
include $(TMK_PATH)/protocol/vusb.mk
|
include $(TMK_PATH)/protocol/$(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')).mk
|
||||||
else
|
else
|
||||||
include $(TMK_PATH)/protocol/lufa.mk
|
include $(TMK_PATH)/protocol/$(PLATFORM_KEY).mk
|
||||||
endif
|
|
||||||
include $(TMK_PATH)/avr.mk
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),ARM_ATSAM)
|
# TODO: remove this bodge?
|
||||||
include $(TMK_PATH)/arm_atsam.mk
|
PROJECT_DEFS := $(OPT_DEFS)
|
||||||
include $(TMK_PATH)/protocol/arm_atsam.mk
|
PROJECT_INC := $(VPATH) $(EXTRAINCDIRS) $(KEYBOARD_PATHS)
|
||||||
endif
|
PROJECT_CONFIG := $(CONFIG_H)
|
||||||
|
|
||||||
ifeq ($(PLATFORM),CHIBIOS)
|
|
||||||
include $(TMK_PATH)/protocol/chibios.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
||||||
VISUALIZER_DIR = $(QUANTUM_DIR)/visualizer
|
VISUALIZER_DIR = $(QUANTUM_DIR)/visualizer
|
||||||
|
|||||||
@@ -322,6 +322,11 @@ ifeq ($(strip $(USB_HID_ENABLE)), yes)
|
|||||||
include $(TMK_DIR)/protocol/usb_hid.mk
|
include $(TMK_DIR)/protocol/usb_hid.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(WPM_ENABLE)), yes)
|
||||||
|
SRC += $(QUANTUM_DIR)/wpm.c
|
||||||
|
OPT_DEFS += -DWPM_ENABLE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(ENCODER_ENABLE)), yes)
|
ifeq ($(strip $(ENCODER_ENABLE)), yes)
|
||||||
SRC += $(QUANTUM_DIR)/encoder.c
|
SRC += $(QUANTUM_DIR)/encoder.c
|
||||||
OPT_DEFS += -DENCODER_ENABLE
|
OPT_DEFS += -DENCODER_ENABLE
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
* [Terminal](feature_terminal.md)
|
* [Terminal](feature_terminal.md)
|
||||||
* [Unicode](feature_unicode.md)
|
* [Unicode](feature_unicode.md)
|
||||||
* [Userspace](feature_userspace.md)
|
* [Userspace](feature_userspace.md)
|
||||||
|
* [WPM Calculation](feature_wpm.md)
|
||||||
|
|
||||||
* Hardware Features
|
* Hardware Features
|
||||||
* Displays
|
* Displays
|
||||||
|
|||||||
@@ -88,6 +88,46 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Advanced Macros
|
||||||
|
|
||||||
|
In addition to the `process_record_user()` function, is the `post_process_record_user()` function. This runs after `process_record` and can be used to do things after a keystroke has been sent. This is useful if you want to have a key pressed before and released after a normal key, for instance.
|
||||||
|
|
||||||
|
In this example, we modify most normal keypresses so that `F22` is pressed before the keystroke is normally sent, and release it __only after__ it's been released.
|
||||||
|
|
||||||
|
```c
|
||||||
|
static uint8_t f22_tracker;
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case KC_A ... KC_F21: //notice how it skips over F22
|
||||||
|
case KC_F23 ... KC_EXSEL: //exsel is the last one before the modifier keys
|
||||||
|
if (record->event.pressed) {
|
||||||
|
register_code(KC_F22); //this means to send F22 down
|
||||||
|
f22_tracker++;
|
||||||
|
register_code(keycode);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void post_process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case KC_A ... KC_F21: //notice how it skips over F22
|
||||||
|
case KC_F23 ... KC_EXSEL: //exsel is the last one before the modifier keys
|
||||||
|
if (!record->event.pressed) {
|
||||||
|
f22_tracker--;
|
||||||
|
if (!f22_tracker) {
|
||||||
|
unregister_code(KC_F22); //this means to send F22 up
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### TAP, DOWN and UP
|
### TAP, DOWN and UP
|
||||||
|
|
||||||
You may want to use keys in your macros that you can't write down, such as `Ctrl` or `Home`.
|
You may want to use keys in your macros that you can't write down, such as `Ctrl` or `Home`.
|
||||||
|
|||||||
@@ -396,18 +396,88 @@ The EEPROM for it is currently shared with the RGBLIGHT system (it's generally a
|
|||||||
|
|
||||||
Where `28` is an unused index from `eeconfig.h`.
|
Where `28` is an unused index from `eeconfig.h`.
|
||||||
|
|
||||||
## Suspended state :id=suspended-state
|
## Functions :id=functions
|
||||||
|
|
||||||
To use the suspend feature, add this to your `<keyboard>.c`:
|
### Direct Operation :id=direct-operation
|
||||||
|
|Function |Description |
|
||||||
|
|--------------------------------------------|-------------|
|
||||||
|
|`rgb_matrix_set_color_all(r, g, b)` |Set all of the LEDs to the given RGB value, where `r`/`g`/`b` are between 0 and 255 (not written to EEPROM) |
|
||||||
|
|`rgb_matrix_set_color(index, r, g, b)` |Set a single LED to the given RGB value, where `r`/`g`/`b` are between 0 and 255, and `index` is between 0 and `DRIVER_LED_TOTAL` (not written to EEPROM) |
|
||||||
|
|
||||||
|
### Disable/Enable Effects :id=disable-enable-effects
|
||||||
|
|Function |Description |
|
||||||
|
|--------------------------------------------|-------------|
|
||||||
|
|`rgb_matrix_toggle()` |Toggle effect range LEDs between on and off |
|
||||||
|
|`rgb_matrix_toggle_noeeprom()` |Toggle effect range LEDs between on and off (not written to EEPROM) |
|
||||||
|
|`rgb_matrix_enable()` |Turn effect range LEDs on, based on their previous state |
|
||||||
|
|`rgb_matrix_enable_noeeprom()` |Turn effect range LEDs on, based on their previous state (not written to EEPROM) |
|
||||||
|
|`rgb_matrix_disable()` |Turn effect range LEDs off |
|
||||||
|
|`rgb_matrix_disable_noeeprom()` |Turn effect range LEDs off (not written to EEPROM) |
|
||||||
|
|
||||||
|
### Change Effect Mode :id=change-effect-mode
|
||||||
|
|Function |Description |
|
||||||
|
|--------------------------------------------|-------------|
|
||||||
|
|`rgb_matrix_mode(mode)` |Set the mode, if RGB animations are enabled |
|
||||||
|
|`rgb_matrix_mode_noeeprom(mode)` |Set the mode, if RGB animations are enabled (not written to EEPROM) |
|
||||||
|
|`rgb_matrix_step()` |Change the mode to the next RGB animation in the list of enabled RGB animations |
|
||||||
|
|`rgb_matrix_step_reverse()` |Change the mode to the previous RGB animation in the list of enabled RGB animations |
|
||||||
|
|`rgb_matrix_increase_speed()` |Increases the speed of the animations |
|
||||||
|
|`rgb_matrix_decrease_speed()` |Decreases the speed of the animations |
|
||||||
|
|
||||||
|
### Change Color :id=change-color
|
||||||
|
|Function |Description |
|
||||||
|
|--------------------------------------------|-------------|
|
||||||
|
|`rgb_matrix_increase_hue()` |Increase the hue for effect range LEDs. This wraps around at maximum hue |
|
||||||
|
|`rgb_matrix_decrease_hue()` |Decrease the hue for effect range LEDs. This wraps around at minimum hue |
|
||||||
|
|`rgb_matrix_increase_sat()` |Increase the saturation for effect range LEDs. This wraps around at maximum saturation |
|
||||||
|
|`rgb_matrix_decrease_sat()` |Decrease the saturation for effect range LEDs. This wraps around at minimum saturation |
|
||||||
|
|`rgb_matrix_increase_val()` |Increase the value for effect range LEDs. This wraps around at maximum value |
|
||||||
|
|`rgb_matrix_decrease_val()` |Decrease the value for effect range LEDs. This wraps around at minimum value |
|
||||||
|
|`rgb_matrix_sethsv(h, s, v)` |Set LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 |
|
||||||
|
|`rgb_matrix_sethsv_noeeprom(h, s, v)` |Set LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) |
|
||||||
|
|
||||||
|
### Query Current Status :id=query-current-status
|
||||||
|
|Function |Description |
|
||||||
|
|-----------------------|-----------------|
|
||||||
|
|`rgb_matrix_get_mode()` |Get current mode |
|
||||||
|
|`rgb_matrix_get_hue()` |Get current hue |
|
||||||
|
|`rgb_matrix_get_sat()` |Get current sat |
|
||||||
|
|`rgb_matrix_get_val()` |Get current val |
|
||||||
|
|
||||||
|
## Callbacks :id=callbacks
|
||||||
|
|
||||||
|
### Indicators :id=indicators
|
||||||
|
|
||||||
|
If you want to set custom indicators, such as an LED for Caps Lock, or layer indication, you can use the `rgb_matrix_indicators_kb` or `rgb_matrix_indicators_user` function for that:
|
||||||
|
```c
|
||||||
|
void rgb_matrix_indicators_kb(void) {
|
||||||
|
rgb_matrix_set_color(index, red, green, blue);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Suspended state :id=suspended-state
|
||||||
|
To use the suspend feature, make sure that `#define RGB_DISABLE_WHEN_USB_SUSPENDED true` is added to the `config.h` file.
|
||||||
|
|
||||||
|
Additionally add this to your `<keyboard>.c`:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
void suspend_power_down_kb(void)
|
void suspend_power_down_kb(void) {
|
||||||
{
|
rgb_matrix_set_suspend_state(true);
|
||||||
|
suspend_power_down_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void suspend_wakeup_init_kb(void) {
|
||||||
|
rgb_matrix_set_suspend_state(false);
|
||||||
|
suspend_wakeup_init_user();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
or add this to your `keymap.c`:
|
||||||
|
```c
|
||||||
|
void suspend_power_down_user(void) {
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void suspend_wakeup_init_kb(void)
|
void suspend_wakeup_init_user(void) {
|
||||||
{
|
|
||||||
rgb_matrix_set_suspend_state(false);
|
rgb_matrix_set_suspend_state(false);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
25
docs/feature_wpm.md
Normal file
25
docs/feature_wpm.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# Word Per Minute (WPM) Calculcation
|
||||||
|
|
||||||
|
The WPM feature uses time between keystrokes to compute a rolling average words
|
||||||
|
per minute rate and makes this available for various uses.
|
||||||
|
|
||||||
|
Enable the WPM system by adding this to your `rules.mk`:
|
||||||
|
|
||||||
|
WPM_ENABLE = yes
|
||||||
|
|
||||||
|
For split keyboards using soft serial, the computed WPM
|
||||||
|
score will be available on the master AND slave half.
|
||||||
|
|
||||||
|
## Public Functions
|
||||||
|
|
||||||
|
`uint8_t get_current_wpm(void);`
|
||||||
|
This function returns the current WPM as an unsigned integer.
|
||||||
|
|
||||||
|
|
||||||
|
## Customized keys for WPM calc
|
||||||
|
|
||||||
|
By default, the WPM score only includes letters, numbers, space and some
|
||||||
|
punctuation. If you want to change the set of characters considered as part of
|
||||||
|
the WPM calculation, you can implement `wpm_keycode_user(uint16_t keycode)`
|
||||||
|
and return true for any characters you would like included in the calculation,
|
||||||
|
or false to not count that particular keycode.
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
# Quantum Mechanical Keyboard Firmware
|
# Quantum Mechanical Keyboard Firmware
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: eae21eed7:docs/README.md
|
original document: 0.8.58:docs/README.md
|
||||||
git diff eae21eed7 HEAD -- docs/README.md | cat
|
git diff 0.8.58 HEAD -- docs/README.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
[](https://github.com/qmk/qmk_firmware/tags)
|
[](https://github.com/qmk/qmk_firmware/tags)
|
||||||
@@ -12,26 +12,37 @@
|
|||||||
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
||||||
[](https://github.com/qmk/qmk_firmware/)
|
[](https://github.com/qmk/qmk_firmware/)
|
||||||
|
|
||||||
## QMK ファームウェアとは何か?
|
## QMK ファームウェアとは何でしょうか?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*)は QMK ファームウェア、QMK ツールボックス、qmk.fm およびそれらのドキュメントを保守するオープンソースコミュニティです。QMK ファームウェアは[tmk\_keyboard](http://github.com/tmk/tmk_keyboard) を元にしたキーボードファームウェアで、Atmel AVR コントローラ、より具体的には [OLKB 製品](http://olkb.com)、[ErgoDox EZ](http://www.ergodox-ez.com) キーボードおよび [Clueboard 製品](http://clueboard.co/) のための幾つかの便利な機能を持ちます。また、ChibiOS を使って ARM チップに移植されています。これを使ってあなたの作った手配線のキーボードあるいはカスタムキーボード PCB で作ったキーボードを動かすことができます。
|
QMK (*Quantum Mechanical Keyboard*)は、コンピュータ入力デバイスの開発を中心としたオープンソースコミュニティです。コミュニティには、キーボード、マウス、MIDI デバイスなど、全ての種類の入力デバイスが含まれます。協力者の中心グループは、[QMK ファームウェア](https://github.com/qmk/qmk_firmware)、[QMK Configurator](https://config.qmk.fm)、[QMK ツールボックス](https://github.com/qmk/qmk_toolbox)、[qmk.fm](https://qmk.fm)、そして、このドキュメントを、あなたのようなコミュニティメンバーの助けを借りて保守しています。
|
||||||
|
|
||||||
## 入手方法
|
## 始めましょう
|
||||||
|
|
||||||
QMK のキーマップ、キーボード、機能に貢献をする予定がある場合、最も簡単なのは、[Github を介してリポジトリをフォークし](https://github.com/qmk/qmk_firmware#fork-destination-box)、リポジトリをあなたの開発環境にクローンして変更を加え、それらをプッシュし、[プルリクエスト](https://github.com/qmk/qmk_firmware/pulls)を開くことです。
|
QMK は初めてですか?始めるには2つの方法があります:
|
||||||
|
|
||||||
それ以外の場合は、`git clone https://github.com/qmk/qmk_firmware` を介して直接クローンすることができます。zip または tar ファイルをダウンロードしないでください。コンパイルするためのサブモジュールをダウンロードするために git リポジトリが必要です。
|
* 基本: [QMK Configurator](https://config.qmk.fm)
|
||||||
|
* ドロップダウンからあなたのキーボードを選択し、キーボードをプログラムします。
|
||||||
|
* 見ることができる [紹介ビデオ](https://www.youtube.com/watch?v=-imgglzDMdY) があります。
|
||||||
|
* 読むことができる概要 [ドキュメント](ja/newbs_building_firmware_configurator.md) があります。
|
||||||
|
* 発展: [ソースを使用します](ja/newbs.md)
|
||||||
|
* より強力ですが、使うのはより困難です。
|
||||||
|
|
||||||
## コンパイル方法
|
## 自分用にアレンジします
|
||||||
|
|
||||||
コンパイルをする前に、AVR または ARM 開発のための[環境をインストール](ja/getting_started_build_tools.md)する必要があります。それが完了したら、`make` コマンドを使用して、以下の表記でキーボードとキーマップをビルドします。
|
QMK には、探求すべき多くの[機能](ja/features.md)と、深く知るためのリファレンスドキュメントがたくさんあります。ほとんどの機能は[キーマップ](ja/keymap.md)を変更し、[キーコード](ja/keycodes.md)を変更することで活用されます。
|
||||||
|
|
||||||
make planck/rev4:default
|
## 手助けが必要ですか?
|
||||||
|
|
||||||
これは、`planck` の `rev4` リビジョンを `default` キーマップでビルドします。全てのキーボードにリビジョン(サブプロジェクトまたはフォルダとも呼ばれます)があるわけではありません。その場合は省略されます:
|
[サポートページ](ja/support.md) をチェックして、QMK の使い方について手助けを得る方法を確認してください。
|
||||||
|
|
||||||
make preonic:default
|
## 貢献する
|
||||||
|
|
||||||
## カスタマイズ方法
|
QMK コミュニティに貢献する方法はたくさんあります。始める最も簡単な方法は、それを使って友人に QMK という単語を広めることです。
|
||||||
|
|
||||||
QMK には、探求すべき多くの[機能](ja/features.md)と、深堀りするための[リファレンス ドキュメント](http://docs.qmk.fm)がたくさんあります。ほとんどの機能は[キーマップ](ja/keymap.md)を変更し、[キーコード](ja/keycodes.md)を変更することで活用されます。
|
* フォーラムやチャットルームで人々を支援します:
|
||||||
|
* [/r/olkb](https://www.reddit.com/r/olkb/)
|
||||||
|
* [Discord サーバ](https://discord.gg/Uq7gcHh)
|
||||||
|
* 下にある「Edit This Page」をクリックしてドキュメントに貢献します
|
||||||
|
* [ドキュメントをあなたの言語に翻訳します](ja/translating.md)
|
||||||
|
* [バグを報告します](https://github.com/qmk/qmk_firmware/issues/new/choose)
|
||||||
|
* [プルリクエストを開きます](ja/contributing.md)
|
||||||
|
|||||||
@@ -1,130 +1,162 @@
|
|||||||
* [完全な初心者のガイド](ja/newbs.md)
|
* チュートリアル
|
||||||
* [はじめに](ja/newbs_getting_started.md)
|
* [入門](ja/newbs.md)
|
||||||
* [初めてのファームウェアの構築](ja/newbs_building_firmware.md)
|
* [セットアップ](ja/newbs_getting_started.md)
|
||||||
* [ファームウェアのフラッシュ](ja/newbs_flashing.md)
|
* [初めてのファームウェアの構築](ja/newbs_building_firmware.md)
|
||||||
* [テストとデバッグ](ja/newbs_testing_debugging.md)
|
* [ファームウェアのフラッシュ](ja/newbs_flashing.md)
|
||||||
* [QMK における Git 運用作法](ja/newbs_git_best_practices.md)
|
* [テストとデバッグ](ja/newbs_testing_debugging.md)
|
||||||
* [あなたのフォークの master ブランチ](ja/newbs_git_using_your_master_branch.md)
|
* [手助けを得る/サポート](ja/support.md)
|
||||||
* [マージの競合の解決](ja/newbs_git_resolving_merge_conflicts.md)
|
* [他のリソース](ja/newbs_learn_more_resources.md)
|
||||||
* [同期のとれていない git ブランチの再同期](ja/newbs_git_resynchronize_a_branch.md)
|
|
||||||
* [学習リソース](ja/newbs_learn_more_resources.md)
|
|
||||||
|
|
||||||
* [QMKの基本](ja/README.md)
|
* FAQ
|
||||||
* [QMK の導入](ja/getting_started_introduction.md)
|
* [一般的な FAQ](ja/faq_general.md)
|
||||||
* [QMK CLI](ja/cli.md)
|
* [QMK のビルド/コンパイル](ja/faq_build.md)
|
||||||
* [QMK CLI 設定](ja/cli_configuration.md)
|
* [QMK のデバッグ/トラブルシューティング](ja/faq_debug.md)
|
||||||
* [QMK への貢献](ja/contributing.md)
|
* [キーマップ FAQ](ja/faq_keymap.md)
|
||||||
* [Github の使い方](ja/getting_started_github.md)
|
* [用語](ja/reference_glossary.md)
|
||||||
* [ヘルプ](ja/getting_started_getting_help.md)
|
|
||||||
|
|
||||||
* [破壊的な変更](ja/breaking_changes.md)
|
* Configurator
|
||||||
* [プルリクエストにフラグが付けられた](ja/breaking_changes_instructions.md)
|
* [概要](ja/newbs_building_firmware_configurator.md)
|
||||||
* [2019年8月30日](ja/ChangeLog/20190830.md)
|
* [ステップ・バイ・ステップ](ja/configurator_step_by_step.md)
|
||||||
|
* [トラブルシューティング](ja/configurator_troubleshooting.md)
|
||||||
|
* QMK API
|
||||||
|
* [概要](ja/api_overview.md)
|
||||||
|
* [API ドキュメント](ja/api_docs.md)
|
||||||
|
* [キーボードサポート](ja/reference_configurator_support.md)
|
||||||
|
|
||||||
* [FAQ](ja/faq.md)
|
* CLI
|
||||||
* [一般的な FAQ](ja/faq_general.md)
|
* [概要](ja/cli.md)
|
||||||
* [QMK のビルド/コンパイル](ja/faq_build.md)
|
* [設定](ja/cli_configuration.md)
|
||||||
* [QMK のデバッグ/トラブルシューティング](ja/faq_debug.md)
|
* [コマンド](ja/cli_commands.md)
|
||||||
* [キーマップ](ja/faq_keymap.md)
|
|
||||||
* [Zadig を使ったドライバのインストール](ja/driver_installation_zadig.md)
|
|
||||||
|
|
||||||
* 詳細なガイド
|
* QMK を使う
|
||||||
* [ビルドツールのインストール](ja/getting_started_build_tools.md)
|
* ガイド
|
||||||
* [Vagrant のガイド](ja/getting_started_vagrant.md)
|
* [機能のカスタマイズ](ja/custom_quantum_functions.md)
|
||||||
* [ビルド/コンパイルの説明](ja/getting_started_make_guide.md)
|
* [Zadig を使ったドライバのインストール](ja/driver_installation_zadig.md)
|
||||||
* [ファームウェアのフラッシュ](ja/flashing.md)
|
* [キーマップの概要](ja/keymap.md)
|
||||||
* [機能のカスタマイズ](ja/custom_quantum_functions.md)
|
* [Vagrant のガイド](ja/getting_started_vagrant.md)
|
||||||
* [キーマップの概要](ja/keymap.md)
|
* 書き込み
|
||||||
|
* [書き込み](ja/flashing.md)
|
||||||
|
* [ATmega32A の書き込み (ps2avrgb)](ja/flashing_bootloadhid.md)
|
||||||
|
* IDE
|
||||||
|
* [Eclipse で QMK を使用](ja/other_eclipse.md)
|
||||||
|
* [VSCode で QMK を使用](ja/other_vscode.md)
|
||||||
|
* Git のベストプラクティス
|
||||||
|
* [入門](ja/newbs_git_best_practices.md)
|
||||||
|
* [フォーク](ja/newbs_git_using_your_master_branch.md)
|
||||||
|
* [マージの競合の解決](ja/newbs_git_resolving_merge_conflicts.md)
|
||||||
|
* [ブランチの修正](ja/newbs_git_resynchronize_a_branch.md)
|
||||||
|
* キーボードを作る
|
||||||
|
* [Hand Wiring ガイド](ja/hand_wire.md)
|
||||||
|
* [ISP 書き込みガイド](ja/isp_flashing_guide.md)
|
||||||
|
|
||||||
* [ハードウェア](ja/hardware.md)
|
* 単純なキーコード
|
||||||
* [互換性のあるマイクロコントローラ](ja/compatible_microcontrollers.md)
|
* [完全なリスト](ja/keycodes.md)
|
||||||
* [AVR プロセッサ](ja/hardware_avr.md)
|
* [基本的なキーコード](ja/keycodes_basic.md)
|
||||||
* [ドライバ](ja/hardware_drivers.md)
|
* [修飾キー](ja/feature_advanced_keycodes.md)
|
||||||
|
* [Quantum キーコード](ja/quantum_keycodes.md)
|
||||||
|
|
||||||
* リファレンス
|
* 高度なキーコード
|
||||||
* [キーボード ガイドライン](ja/hardware_keyboard_guidelines.md)
|
* [コマンド](ja/feature_command.md)
|
||||||
* [設定オプション](ja/config_options.md)
|
* [動的マクロ](ja/feature_dynamic_macros.md)
|
||||||
* [キーコード](ja/keycodes.md)
|
* [グレイブ エスケープ](ja/feature_grave_esc.md)
|
||||||
* [コーディング規約 - C](ja/coding_conventions_c.md)
|
* [リーダーキー](ja/feature_leader_key.md)
|
||||||
* [コーディング規約 - Python](ja/coding_conventions_python.md)
|
* [モッドタップ](ja/mod_tap.md)
|
||||||
* [ドキュメント ベストプラクティス](ja/documentation_best_practices.md)
|
* [マクロ](ja/feature_macros.md)
|
||||||
* [ドキュメント テンプレート](ja/documentation_templates.md)
|
* [マウスキー](ja/feature_mouse_keys.md)
|
||||||
* [用語](ja/reference_glossary.md)
|
* [Space Cadet Shift](ja/feature_space_cadet.md)
|
||||||
* [ユニットテスト](ja/unit_testing.md)
|
* [US ANSI シフトキー](ja/keycodes_us_ansi_shifted.md)
|
||||||
* [便利な関数](ja/ref_functions.md)
|
|
||||||
* [Configurator サポート](ja/reference_configurator_support.md)
|
|
||||||
* [info.json 形式](ja/reference_info_json.md)
|
|
||||||
* [Python CLI 開発](ja/cli_development.md)
|
|
||||||
|
|
||||||
* [機能](ja/features.md)
|
* ソフトウェア機能
|
||||||
* [基本的なキーコード](ja/keycodes_basic.md)
|
* [自動シフト](ja/feature_auto_shift.md)
|
||||||
* [US ANSI シフトキー](ja/keycodes_us_ansi_shifted.md)
|
* [コンボ](ja/feature_combo.md)
|
||||||
* [Quantum キーコード](ja/quantum_keycodes.md)
|
* [デバウンス API](ja/feature_debounce_type.md)
|
||||||
* [Advanced キーコード](ja/feature_advanced_keycodes.md)
|
* [キーロック](ja/feature_key_lock.md)
|
||||||
* [オーディオ](ja/feature_audio.md)
|
* [レイヤー](ja/feature_layers.md)
|
||||||
* [自動シフト](ja/feature_auto_shift.md)
|
* [One Shot Keys](ja/one_shot_keys.md)
|
||||||
* [バックライト](ja/feature_backlight.md)
|
* [ポインティング デバイス](ja/feature_pointing_device.md)
|
||||||
* [ブルートゥース](ja/feature_bluetooth.md)
|
* [Swap Hands](ja/feature_swap_hands.md)
|
||||||
* [ブートマジック](ja/feature_bootmagic.md)
|
* [タップダンス](ja/feature_tap_dance.md)
|
||||||
* [コンボ](ja/feature_combo.md)
|
* [タップホールド設定](ja/tap_hold.md)
|
||||||
* [コマンド](ja/feature_command.md)
|
* [ターミナル](ja/feature_terminal.md)
|
||||||
* [デバウンス API](ja/feature_debounce_type.md)
|
* [ユニコード](ja/feature_unicode.md)
|
||||||
* [DIP スイッチ](ja/feature_dip_switch.md)
|
* [ユーザスペース](ja/feature_userspace.md)
|
||||||
* [動的マクロ](ja/feature_dynamic_macros.md)
|
* [WPM 計算](ja/feature_wpm.md)
|
||||||
* [エンコーダ](ja/feature_encoders.md)
|
|
||||||
* [グレイブ エスケープ](ja/feature_grave_esc.md)
|
|
||||||
* [触覚フィードバック](ja/feature_haptic_feedback.md)
|
|
||||||
* [HD44780 LCD コントローラ](ja/feature_hd44780.md)
|
|
||||||
* [キーロック](ja/feature_key_lock.md)
|
|
||||||
* [レイアウト](ja/feature_layouts.md)
|
|
||||||
* [リーダー キー](ja/feature_leader_key.md)
|
|
||||||
* [LED マトリックス](ja/feature_led_matrix.md)
|
|
||||||
* [マクロ](ja/feature_macros.md)
|
|
||||||
* [マウスキー](ja/feature_mouse_keys.md)
|
|
||||||
* [OLED ドライバ](ja/feature_oled_driver.md)
|
|
||||||
* [One Shot Keys](ja/one_shot_keys.md)
|
|
||||||
* [ポインティング デバイス](ja/feature_pointing_device.md)
|
|
||||||
* [PS/2 マウス](ja/feature_ps2_mouse.md)
|
|
||||||
* [RGB ライト](ja/feature_rgblight.md)
|
|
||||||
* [RGB マトリックス](ja/feature_rgb_matrix.md)
|
|
||||||
* [Space Cadet](ja/feature_space_cadet.md)
|
|
||||||
* [分割キーボード](ja/feature_split_keyboard.md)
|
|
||||||
* [Stenography](ja/feature_stenography.md)
|
|
||||||
* [Swap Hands](ja/feature_swap_hands.md)
|
|
||||||
* [タップ ダンス](ja/feature_tap_dance.md)
|
|
||||||
* [ターミナル](ja/feature_terminal.md)
|
|
||||||
* [感熱式プリンタ](ja/feature_thermal_printer.md)
|
|
||||||
* [ユニコード](ja/feature_unicode.md)
|
|
||||||
* [ユーザスペース](ja/feature_userspace.md)
|
|
||||||
* [Velocikey](ja/feature_velocikey.md)
|
|
||||||
|
|
||||||
* メーカーおよびモッダーのために
|
* ハードウェア機能
|
||||||
* [Hand Wiring ガイド](ja/hand_wire.md)
|
* 表示
|
||||||
* [ISP 書き込みガイド](ja/isp_flashing_guide.md)
|
* [HD44780 LCD コントローラ](ja/feature_hd44780.md)
|
||||||
* [ARM デバッグ ガイド](ja/arm_debugging.md)
|
* [OLED ドライバ](ja/feature_oled_driver.md)
|
||||||
* [ADC ドライバ](ja/adc_driver.md)
|
* 電飾
|
||||||
* [I2C ドライバ](ja/i2c_driver.md)
|
* [バックライト](ja/feature_backlight.md)
|
||||||
* [WS2812 ドライバ](ja/ws2812_driver.md)
|
* [LED マトリックス](ja/feature_led_matrix.md)
|
||||||
* [EEPROM ドライバ](ja/eeprom_driver.md)
|
* [RGB ライト](ja/feature_rgblight.md)
|
||||||
* [GPIO コントロール](ja/internals_gpio_control.md)
|
* [RGB マトリックス](ja/feature_rgb_matrix.md)
|
||||||
* [カスタムマトリックス](ja/custom_matrix.md)
|
* [オーディオ](ja/feature_audio.md)
|
||||||
* [Proton C 規約](ja/proton_c_conversion.md)
|
* [Bluetooth](ja/feature_bluetooth.md)
|
||||||
|
* [ブートマジック](ja/feature_bootmagic.md)
|
||||||
|
* [カスタムマトリックス](ja/custom_matrix.md)
|
||||||
|
* [DIP スイッチ](ja/feature_dip_switch.md)
|
||||||
|
* [エンコーダ](ja/feature_encoders.md)
|
||||||
|
* [触覚フィードバック](ja/feature_haptic_feedback.md)
|
||||||
|
* [Proton C 規約](ja/proton_c_conversion.md)
|
||||||
|
* [PS/2 マウス](ja/feature_ps2_mouse.md)
|
||||||
|
* [分割キーボード](ja/feature_split_keyboard.md)
|
||||||
|
* [Stenography](ja/feature_stenography.md)
|
||||||
|
* [感熱式プリンタ](ja/feature_thermal_printer.md)
|
||||||
|
* [Velocikey](ja/feature_velocikey.md)
|
||||||
|
|
||||||
* より深く知るために
|
* QMK の開発
|
||||||
* [キーボードがどのように動作するか](ja/how_keyboards_work.md)
|
* 破壊的な変更
|
||||||
* [QMK の理解](ja/understanding_qmk.md)
|
* [概要](ja/breaking_changes.md)
|
||||||
|
* [プルリクエストにフラグが付けられた](ja/breaking_changes_instructions.md)
|
||||||
|
* 履歴
|
||||||
|
* [2020年2月29日](ja/ChangeLog/20200229.md)
|
||||||
|
* [2019年8月30日](ja/ChangeLog/20190830.md)
|
||||||
|
|
||||||
* 他の話題
|
* C 開発
|
||||||
* [Eclipse で QMK を使用](ja/other_eclipse.md)
|
* [ARM デバッグ ガイド](ja/arm_debugging.md)
|
||||||
* [VSCode で QMK を使用](ja/other_vscode.md)
|
* [AVR プロセッサ](ja/hardware_avr.md)
|
||||||
* [サポート](ja/getting_started_getting_help.md)
|
* [コーディング規約](ja/coding_conventions_c.md)
|
||||||
* [翻訳を追加する方法](ja/translating.md)
|
* [互換性のあるマイクロコントローラ](ja/compatible_microcontrollers.md)
|
||||||
|
* [ドライバ](ja/hardware_drivers.md)
|
||||||
|
* [ADC ドライバ](ja/adc_driver.md)
|
||||||
|
* [I2C ドライバ](ja/i2c_driver.md)
|
||||||
|
* [WS2812 ドライバ](ja/ws2812_driver.md)
|
||||||
|
* [EEPROM ドライバ](ja/eeprom_driver.md)
|
||||||
|
* [GPIO コントロール](ja/internals_gpio_control.md)
|
||||||
|
* [キーボード ガイドライン](ja/hardware_keyboard_guidelines.md)
|
||||||
|
|
||||||
* QMK の内部詳細(作成中)
|
* Python 開発
|
||||||
* [定義](ja/internals_defines.md)
|
* [コーディング規約](ja/coding_conventions_python.md)
|
||||||
* [Input Callback Reg](ja/internals_input_callback_reg.md)
|
* [QMK CLI 開発](ja/cli_development.md)
|
||||||
* [Midi ドライバ](ja/internals_midi_device.md)
|
|
||||||
* [Midi デバイスのセットアップ手順](ja/internals_midi_device_setup_process.md)
|
* Configurator 開発
|
||||||
* [Midi ユーティリティ](ja/internals_midi_util.md)
|
* QMK API
|
||||||
* [Send Functions](ja/internals_send_functions.md)
|
* [開発環境](ja/api_development_environment.md)
|
||||||
* [Sysex Tools](ja/internals_sysex_tools.md)
|
* [アーキテクチャの概要](ja/api_development_overview.md)
|
||||||
|
|
||||||
|
* QMK Reference
|
||||||
|
* [QMK への貢献](ja/contributing.md)
|
||||||
|
* [QMK ドキュメントの翻訳](ja/translating.md)
|
||||||
|
* [設定オプション](ja/config_options.md)
|
||||||
|
* [Make ドキュメント](ja/getting_started_make_guide.md)
|
||||||
|
* [ドキュメント ベストプラクティス](ja/documentation_best_practices.md)
|
||||||
|
* [ドキュメント テンプレート](ja/documentation_templates.md)
|
||||||
|
* [コミュニティレイアウト](ja/feature_layouts.md)
|
||||||
|
* [ユニットテスト](ja/unit_testing.md)
|
||||||
|
* [便利な関数](ja/ref_functions.md)
|
||||||
|
* [info.json 形式](ja/reference_info_json.md)
|
||||||
|
|
||||||
|
* より深く知るために
|
||||||
|
* [キーボードがどのように動作するか](ja/how_keyboards_work.md)
|
||||||
|
* [マトリックスがどのように動作するか](ja/how_a_matrix_works.md)
|
||||||
|
* [QMK を理解する](ja/understanding_qmk.md)
|
||||||
|
|
||||||
|
* QMK の内部詳細(作成中)
|
||||||
|
* [定義](ja/internals_defines.md)
|
||||||
|
* [Input Callback Reg](ja/internals_input_callback_reg.md)
|
||||||
|
* [Midi デバイス](ja/internals_midi_device.md)
|
||||||
|
* [Midi デバイスのセットアップ手順](ja/internals_midi_device_setup_process.md)
|
||||||
|
* [Midi ユーティリティ](ja/internals_midi_util.md)
|
||||||
|
* [Send Functions](ja/internals_send_functions.md)
|
||||||
|
* [Sysex Tools](ja/internals_sysex_tools.md)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# 貢献方法
|
# 貢献方法
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: d47809575:docs/contributing.md
|
original document: 0.8.62:docs/contributing.md
|
||||||
git diff d47809575 HEAD -- docs/contributing.md | cat
|
git diff 0.8.62 HEAD -- docs/contributing.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
👍🎉 まず、これを読み貢献する時間を作ってくれてありがとうございます!🎉👍
|
👍🎉 まず、これを読み貢献する時間を作ってくれてありがとうございます!🎉👍
|
||||||
@@ -106,7 +106,7 @@ enum my_keycodes {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
### ドキュメントのプレビュー
|
### ドキュメントのプレビュー :id=previewing-the-documentation
|
||||||
|
|
||||||
開発環境をセットアップした場合は、プルリクエストを開く前に以下のコマンドを `qmk_firmware/` フォルダから実行することで、あなたの変更をプレビューすることができます:
|
開発環境をセットアップした場合は、プルリクエストを開く前に以下のコマンドを `qmk_firmware/` フォルダから実行することで、あなたの変更をプレビューすることができます:
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ enum my_keycodes {
|
|||||||
|
|
||||||
ほとんどの初めての QMK 貢献者は、個人のキーマップから始めます。キーマップの標準はかなりカジュアルなものにしようとしています(キーマップは結局のところ作成者の性格を反映しています)が、他の人があなたのキーマップを簡単に見つけて学ぶことができるように、これらのガイドラインに従うようにお願いします。
|
ほとんどの初めての QMK 貢献者は、個人のキーマップから始めます。キーマップの標準はかなりカジュアルなものにしようとしています(キーマップは結局のところ作成者の性格を反映しています)が、他の人があなたのキーマップを簡単に見つけて学ぶことができるように、これらのガイドラインに従うようにお願いします。
|
||||||
|
|
||||||
* [the template](documentation_templates.md) を使って `readme.md` を書きます。
|
* [テンプレート](documentation_templates.md) を使って `readme.md` を書きます。
|
||||||
* 全てのキーマップの PR は squash されるため、コミットがどのように squash されるかを気にする場合は、自分で行う必要があります。
|
* 全てのキーマップの PR は squash されるため、コミットがどのように squash されるかを気にする場合は、自分で行う必要があります。
|
||||||
* キーマップの PR に機能をまとめないでください。最初に機能をサブミットし、次にキーマップのための2つ目の PR をサブミットします。
|
* キーマップの PR に機能をまとめないでください。最初に機能をサブミットし、次にキーマップのための2つ目の PR をサブミットします。
|
||||||
* `Makefile` をキーマップフォルダに含めないでください(もう使われていません)。
|
* `Makefile` をキーマップフォルダに含めないでください(もう使われていません)。
|
||||||
@@ -134,7 +134,7 @@ enum my_keycodes {
|
|||||||
|
|
||||||
また以下のガイドラインに従うことをお願いします:
|
また以下のガイドラインに従うことをお願いします:
|
||||||
|
|
||||||
* [the template](ja/documentation_templates.md) を使って `readme.md` を書きます。
|
* [テンプレート](ja/documentation_templates.md) を使って `readme.md` を書きます。
|
||||||
* コミットの数を適切に保ってください。そうでなければあなたの PR を squash します。
|
* コミットの数を適切に保ってください。そうでなければあなたの PR を squash します。
|
||||||
* コア機能を新しいキーボードにまとめないでください。最初に機能をサブミットし、次にキーボード用に別の PR をサブミットしてください。
|
* コア機能を新しいキーボードにまとめないでください。最初に機能をサブミットし、次にキーボード用に別の PR をサブミットしてください。
|
||||||
* `.c`/`.h` ファイルにすぐ上の親フォルダに従って名前を付けます。例えば、`/keyboards/<kb1>/<kb2>/<kb2>.[ch]`
|
* `.c`/`.h` ファイルにすぐ上の親フォルダに従って名前を付けます。例えば、`/keyboards/<kb1>/<kb2>/<kb2>.[ch]`
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# キーボードの挙動をカスタマイズする方法
|
# キーボードの挙動をカスタマイズする方法
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: 7494490d6:docs/custom_quantum_functions.md
|
original document: 0.8.62:docs/custom_quantum_functions.md
|
||||||
git diff 7494490d6 HEAD -- docs/custom_quantum_functions.md | cat
|
git diff 0.8.62 HEAD -- docs/custom_quantum_functions.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
多くの人にとって、カスタムキーボードはボタンの押下をコンピュータに送信するだけではありません。単純なボタンの押下やマクロよりも複雑なことを実行できるようにしたいでしょう。QMK にはコードを挿入したり、機能を上書きしたり、様々な状況でキーボードの挙動をカスタマイズできるフックがあります。
|
多くの人にとって、カスタムキーボードはボタンの押下をコンピュータに送信するだけではありません。単純なボタンの押下やマクロよりも複雑なことを実行できるようにしたいでしょう。QMK にはコードを挿入したり、機能を上書きしたり、様々な状況でキーボードの挙動をカスタマイズできるフックがあります。
|
||||||
@@ -39,7 +39,7 @@ enum my_keycodes {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
## 任意のキーコードの挙動のプログラミング
|
## 任意のキーコードの挙動のプログラミング :id=programming-the-behavior-of-any-keycode
|
||||||
|
|
||||||
既存のキーの挙動を上書きしたい場合、あるいは新しいキーについて挙動を定義する場合、`process_record_kb()` および `process_record_user()` 関数を使うべきです。これらは実際のキーイベントが処理される前のキー処理中に QMK によって呼び出されます。これらの関数が `true` を返す場合、QMK はキーコードを通常通りに処理します。これは、キーを置き換えるのではなく、キーの機能を拡張するのに便利です。これらの関数が `false` を返す場合、QMK は通常のキー処理をスキップし、必要なキーのアップまたはダウンイベントを送信するのかはユーザ次第です。
|
既存のキーの挙動を上書きしたい場合、あるいは新しいキーについて挙動を定義する場合、`process_record_kb()` および `process_record_user()` 関数を使うべきです。これらは実際のキーイベントが処理される前のキー処理中に QMK によって呼び出されます。これらの関数が `true` を返す場合、QMK はキーコードを通常通りに処理します。これは、キーを置き換えるのではなく、キーの機能を拡張するのに便利です。これらの関数が `false` を返す場合、QMK は通常のキー処理をスキップし、必要なキーのアップまたはダウンイベントを送信するのかはユーザ次第です。
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ void suspend_wakeup_init_user(void) {
|
|||||||
* キーボード/リビジョン : `void suspend_power_down_kb(void)` および `void suspend_wakeup_init_user(void)`
|
* キーボード/リビジョン : `void suspend_power_down_kb(void)` および `void suspend_wakeup_init_user(void)`
|
||||||
* キーマップ: `void suspend_power_down_kb(void)` および `void suspend_wakeup_init_user(void)`
|
* キーマップ: `void suspend_power_down_kb(void)` および `void suspend_wakeup_init_user(void)`
|
||||||
|
|
||||||
# レイヤー切り替えコード
|
# レイヤー切り替えコード :id=layer-change-code
|
||||||
|
|
||||||
これはレイヤーが切り替えられるたびにコードを実行します。レイヤー表示あるいはカスタムレイヤー処理に役立ちます。
|
これはレイヤーが切り替えられるたびにコードを実行します。レイヤー表示あるいはカスタムレイヤー処理に役立ちます。
|
||||||
|
|
||||||
@@ -491,14 +491,24 @@ void eeconfig_init_user(void) { // EEPROM がリセットされます!
|
|||||||
|
|
||||||
# カスタムタッピング期間
|
# カスタムタッピング期間
|
||||||
|
|
||||||
デフォルトでは、タッピング期間はグローバルに設定されていて、キーでは設定することができません。ほとんどのユーザにとって、これは全然問題ありません。しかし、場合によっては、`LT` キーとは異なるタイムアウトによって、デュアルファンクションキーが大幅に改善されます。なぜなら、一部のキーは他のキーよりも押し続けやすいためです。それぞれにカスタムキーコードを使う代わりに、キーごとに設定可能な `TAPPING_TERM` を使用できます。
|
デフォルトでは、タッピング期間と(`IGNORE_MOD_TAP_INTERRUPT` のような)関連オプションはグローバルに設定されていて、キーでは設定することができません。ほとんどのユーザにとって、これは全然問題ありません。しかし、場合によっては、`LT` キーとは異なるタイムアウトによって、デュアルファンクションキーが大幅に改善されます。なぜなら、一部のキーは他のキーよりも押し続けやすいためです。それぞれにカスタムキーコードを使う代わりに、キーごとに設定可能なタイムアウトの挙動を設定できます。
|
||||||
|
|
||||||
この機能を有効にするには、最初に `config.h` に `#define TAPPING_TERM_PER_KEY` を追加する必要があります。
|
キーごとのタイムアウトの挙動を制御するための2つの設定可能なオプションがあります:
|
||||||
|
|
||||||
|
- `TAPPING_TERM_PER_KEY`
|
||||||
|
- `IGNORE_MOD_TAP_INTERRUPT_PER_KEY`
|
||||||
|
|
||||||
|
必要な機能ごとに、`config.h` に `#define` 行を追加する必要があります。
|
||||||
|
|
||||||
|
```
|
||||||
|
#define TAPPING_TERM_PER_KEY
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## `get_tapping_term` の実装例
|
## `get_tapping_term` の実装例
|
||||||
|
|
||||||
キーコードに基づいて `TAPPING TERM` を変更するには、次のようなものを `keymap.c` ファイルに追加します:
|
キーコードに基づいて `TAPPING_TERM` を変更するには、次のようなものを `keymap.c` ファイルに追加します:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
uint16_t get_tapping_term(uint16_t keycode) {
|
uint16_t get_tapping_term(uint16_t keycode) {
|
||||||
@@ -513,6 +523,21 @@ uint16_t get_tapping_term(uint16_t keycode) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### `get_tapping_term` 関数のドキュメント
|
## `get_ignore_mod_tap_interrupt` の実装例
|
||||||
|
|
||||||
|
キーコードに基づいて `IGNORE_MOD_TAP_INTERRUPT` の値を変更するには、次のようなものを `keymap.c` ファイルに追加します:
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool get_ignore_mod_tap_interrupt(uint16_t keycode) {
|
||||||
|
switch (keycode) {
|
||||||
|
case SFT_T(KC_SPC):
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## `get_tapping_term` / `get_ignore_mod_tap_interrupt` 関数のドキュメント
|
||||||
|
|
||||||
ここにある他の多くの関数とは異なり、quantum あるいはキーボードレベルの関数を持つ必要はありません (または理由さえありません)。ここではユーザレベルの関数だけが有用なため、そのようにマークする必要はありません。
|
ここにある他の多くの関数とは異なり、quantum あるいはキーボードレベルの関数を持つ必要はありません (または理由さえありません)。ここではユーザレベルの関数だけが有用なため、そのようにマークする必要はありません。
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
# 書き込みの手順とブートローダ情報
|
# 書き込みの手順とブートローダ情報
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: 7494490d6:docs/flashing.md
|
original document: 0.8.62:docs/flashing.md
|
||||||
git diff 7494490d6 HEAD -- docs/flashing.md | cat
|
git diff 0.8.62 HEAD -- docs/flashing.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
キーボードが使用するブートローダにはかなり多くの種類があり、ほぼ全てが異なる書き込みの方法を使います。幸いなことに、[QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) のようなプロジェクトは、あまり深く考える必要無しに様々なタイプと互換性を持つことを目指していますが、この文章では様々なタイプのブートローダとそれらを書き込むために利用可能な方法について説明します。
|
キーボードが使用するブートローダにはかなり多くの種類があり、ほぼ全てが異なる書き込みの方法を使います。幸いなことに、[QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) のようなプロジェクトは、あまり深く考える必要無しに様々なタイプと互換性を持つことを目指していますが、この文章では様々なタイプのブートローダとそれらを書き込むために利用可能な方法について説明します。
|
||||||
|
|
||||||
`rules.mk` の `BOOTLOADER` 変数で選択されたブートローダがある場合、QMK は .hex ファイルがデバイスに書き込むのに適切なサイズかどうかを自動的に計算し、合計サイズをバイト単位で(最大値とともに)出力します。この処理を手動で実行するには、`check-size` を付けてコンパイルします。例えば、`make planck/rev4:default:check-size`。
|
`rules.mk` の `BOOTLOADER` 変数で選択されたブートローダがある場合、QMK は .hex ファイルがデバイスに書き込むのに適切なサイズかどうかを自動的に計算し、合計サイズをバイト単位で(最大値とともに)出力します。
|
||||||
|
|
||||||
## DFU
|
## DFU
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ BOOTLOADER = caterina
|
|||||||
make <keyboard>:<keymap>:avrdude
|
make <keyboard>:<keymap>:avrdude
|
||||||
|
|
||||||
|
|
||||||
#### Caterina コマンド
|
### Caterina コマンド
|
||||||
|
|
||||||
ファームウェアを DFU デバイスに書き込むために使用できる DFU コマンドがいくつかあります。
|
ファームウェアを DFU デバイスに書き込むために使用できる DFU コマンドがいくつかあります。
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
# キーマップの概要
|
# キーマップの概要
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
original document: 7494490d6:docs/keymap.md
|
original document: 0.8.62:docs/keymap.md
|
||||||
git diff 7494490d6 HEAD -- docs/keymap.md | cat
|
git diff 0.8.62 HEAD -- docs/keymap.md | cat
|
||||||
-->
|
-->
|
||||||
|
|
||||||
QMK のキーマップは C のソースファイルの中で定義されます。そのデータ構造は配列の配列です。外側はレイヤーを要素とする配列で、レイヤーはキーを要素とする配列。ほとんどのキーボードは `LAYOUT()` マクロを定義して、この配列の配列を作成しやすくしています。
|
QMK のキーマップは C のソースファイルの中で定義されます。そのデータ構造は配列の配列です。外側はレイヤーを要素とする配列で、レイヤーはキーを要素とする配列。ほとんどのキーボードは `LAYOUT()` マクロを定義して、この配列の配列を作成しやすくしています。
|
||||||
|
|
||||||
|
|
||||||
## キーマップとレイヤー
|
## キーマップとレイヤー :id=keymap-and-layers
|
||||||
QMKでは、**`const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS]`**は、**アクションコード**を保持している **16 bit** データの中でキーマップ情報の複数の**レイヤー**を保持します。最大で**32個のレイヤー**を定義することができます。
|
QMKでは、**`const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS]`**は、**アクションコード**を保持している **16 bit** データの中でキーマップ情報の複数の**レイヤー**を保持します。最大で**32個のレイヤー**を定義することができます。
|
||||||
|
|
||||||
普通のキー定義の場合、**アクションコード**の上位8ビットは全て0で、下位8ビットは**キーコード**としてキーによって生成された USB HID usage コードを保持します。
|
普通のキー定義の場合、**アクションコード**の上位8ビットは全て0で、下位8ビットは**キーコード**としてキーによって生成された USB HID usage コードを保持します。
|
||||||
@@ -32,7 +32,8 @@ QMKでは、**`const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS]`**は
|
|||||||
|
|
||||||
TMK の歴史的経緯から、キーマップに保存されたアクションコードは、一部のドキュメントではキーコードと呼ばれる場合があります。
|
TMK の歴史的経緯から、キーマップに保存されたアクションコードは、一部のドキュメントではキーコードと呼ばれる場合があります。
|
||||||
|
|
||||||
### キーマップレイヤーステータス
|
### キーマップレイヤーステータス :id=keymap-layer-status
|
||||||
|
|
||||||
キーマップレイヤーの状態は、2つの32ビットパラメータによって決定されます。
|
キーマップレイヤーの状態は、2つの32ビットパラメータによって決定されます。
|
||||||
|
|
||||||
* **`default_layer_state`** は、常に有効で参照される基本キーマップレイヤー (0-31) を示します (デフォルトレイヤー)。
|
* **`default_layer_state`** は、常に有効で参照される基本キーマップレイヤー (0-31) を示します (デフォルトレイヤー)。
|
||||||
|
|||||||
@@ -162,6 +162,15 @@ The `process_record()` function itself is deceptively simple, but hidden within
|
|||||||
|
|
||||||
At any step during this chain of events a function (such as `process_record_kb()`) can `return false` to halt all further processing.
|
At any step during this chain of events a function (such as `process_record_kb()`) can `return false` to halt all further processing.
|
||||||
|
|
||||||
|
After this is called, `post_process_record()` is called, which can be used to handle additional cleanup that needs to be run after the keycode is normally handled.
|
||||||
|
|
||||||
|
* [`void post_process_record(keyrecord_t *record)`]()
|
||||||
|
* [`void post_process_record_quantum(keyrecord_t *record)`]()
|
||||||
|
* [Map this record to a keycode]()
|
||||||
|
* [`void post_process_clicky(uint16_t keycode, keyrecord_t *record)`]()
|
||||||
|
* [`void post_process_record_kb(uint16_t keycode, keyrecord_t *record)`]()
|
||||||
|
* [`void post_process_record_user(uint16_t keycode, keyrecord_t *record)`]()
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
#### Mouse Handling
|
#### Mouse Handling
|
||||||
|
|
||||||
|
|||||||
@@ -125,6 +125,70 @@
|
|||||||
{ k50, ___, k52, ___ } \
|
{ k50, ___, k52, ___ } \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 6x4 numpad with split Plus and 0 keys
|
||||||
|
* ,-------------------.
|
||||||
|
* | 00 | 01 | 02 | 03 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 10 | 11 | 12 | 13 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 20 | 21 | 22 | 23 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 30 | 31 | 32 | 33 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 40 | 41 | 42 | |
|
||||||
|
* |----|----|----| 43 |
|
||||||
|
* | 50 | 51 | 52 | |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
#define LAYOUT_numpad_6x4_split_plus_zero( \
|
||||||
|
k00, k01, k02, k03, \
|
||||||
|
k10, k11, k12, k13, \
|
||||||
|
k20, k21, k22, k23, \
|
||||||
|
k30, k31, k32, k33, \
|
||||||
|
k40, k41, k42, \
|
||||||
|
k50, k51, k52, k43 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02, k03 }, \
|
||||||
|
{ k10, k11, k12, k13 }, \
|
||||||
|
{ k20, k21, k22, k23 }, \
|
||||||
|
{ k30, k31, k32, k33 }, \
|
||||||
|
{ k40, k41, k42, k43 }, \
|
||||||
|
{ k50, k51, k52, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 6x4 numpad with split 0 key
|
||||||
|
* ,-------------------.
|
||||||
|
* | 00 | 01 | 02 | 03 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 10 | 11 | 12 | 13 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 20 | 21 | 22 | |
|
||||||
|
* |----|----|----| 23 |
|
||||||
|
* | 30 | 31 | 32 | |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 40 | 41 | 42 | |
|
||||||
|
* |----|----|----| 43 |
|
||||||
|
* | 50 | 51 | 52 | |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
#define LAYOUT_numpad_6x4_split_zero( \
|
||||||
|
k00, k01, k02, k03, \
|
||||||
|
k10, k11, k12, k13, \
|
||||||
|
k20, k21, k22, \
|
||||||
|
k30, k31, k32, k23, \
|
||||||
|
k40, k41, k42, \
|
||||||
|
k50, k51, k52, k43 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02, k03 }, \
|
||||||
|
{ k10, k11, k12, k13 }, \
|
||||||
|
{ k20, k21, k22, k23 }, \
|
||||||
|
{ k30, k31, k32, ___ }, \
|
||||||
|
{ k40, k41, k42, k43 }, \
|
||||||
|
{ k50, k51, k52, ___ } \
|
||||||
|
}
|
||||||
// Add backwards compatibility for existing keymaps
|
// Add backwards compatibility for existing keymaps
|
||||||
#define cospad_bl_led_on backlight_enable
|
#define cospad_bl_led_on backlight_enable
|
||||||
#define cospad_bl_led_off backlight_disable
|
#define cospad_bl_led_off backlight_disable
|
||||||
|
|||||||
@@ -102,6 +102,71 @@
|
|||||||
{"x":2, "y":5},
|
{"x":2, "y":5},
|
||||||
{"x":3, "y":5}
|
{"x":3, "y":5}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"LAYOUT_numpad_6x4_split_plus_zero": {
|
||||||
|
"key_count": 23,
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4},
|
||||||
|
{"x":1, "y":4},
|
||||||
|
{"x":2, "y":4},
|
||||||
|
|
||||||
|
{"x":0, "y":5},
|
||||||
|
{"x":1, "y":5},
|
||||||
|
{"x":2, "y":5},
|
||||||
|
{"x":3, "y":4, "h":2}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_numpad_6x4_split_zero": {
|
||||||
|
"key_count": 22,
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":2, "h":2},
|
||||||
|
|
||||||
|
{"x":0, "y":4},
|
||||||
|
{"x":1, "y":4},
|
||||||
|
{"x":2, "y":4},
|
||||||
|
|
||||||
|
{"x":0, "y":5},
|
||||||
|
{"x":1, "y":5},
|
||||||
|
{"x":2, "y":5},
|
||||||
|
{"x":3, "y":4, "h":2}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
81
keyboards/cospad/keymaps/split_plus_and_zero/keymap.c
Normal file
81
keyboards/cospad/keymaps/split_plus_and_zero/keymap.c
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This keymap is based on the default keymap for the cospad.
|
||||||
|
* It was adapted for the split Plus and split 0 layout focusing on the "00" key.
|
||||||
|
*/
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
DBL_ZRO = SAFE_RANGE,
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case DBL_ZRO:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
// when keycode DBL_ZRO is pressed
|
||||||
|
SEND_STRING("00");
|
||||||
|
} else {
|
||||||
|
// when keycode DBL_ZRO is released
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names {
|
||||||
|
_BL,
|
||||||
|
_FL
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _BL: (Base Layer) Default Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |Esc |TAB | FN | BS |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | NL | / | * | - |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 7 | 8 | 9 | ~ |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 4 | 5 | 6 | + |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 1 | 2 | 3 | |
|
||||||
|
* |----|----|----| En |
|
||||||
|
* | 0 | 00 | . | |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_BL] = LAYOUT_numpad_6x4_split_plus_zero(
|
||||||
|
KC_ESC, KC_TAB, MO(_FL), KC_BSPC,
|
||||||
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_TILD,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_P1, KC_P2, KC_P3,
|
||||||
|
KC_P0, DBL_ZRO, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |RGBT| | | |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |RGBM|RGBP|BTOG| |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |HUD |HUI |BON | |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |SAD |SAI |BOFF| |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |VAD |VAS |BSTP| |
|
||||||
|
* |----|----|----| |
|
||||||
|
* | | |RST | |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_FL] = LAYOUT_numpad_6x4_split_plus_zero(
|
||||||
|
RGB_TOG, _______, _______, _______,
|
||||||
|
RGB_MOD, RGB_M_P, BL_TOGG, _______,
|
||||||
|
RGB_HUD, RGB_HUI, BL_ON, _______,
|
||||||
|
RGB_SAD, RGB_SAI, BL_OFF, _______,
|
||||||
|
RGB_VAD, RGB_VAI, BL_STEP,
|
||||||
|
_______, _______, RESET, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
81
keyboards/cospad/keymaps/split_zero/keymap.c
Normal file
81
keyboards/cospad/keymaps/split_zero/keymap.c
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This keymap is based on the default keymap for the cospad.
|
||||||
|
* It was adapted for the split 0 layout focusing on the "00" key.
|
||||||
|
*/
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
DBL_ZRO = SAFE_RANGE,
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case DBL_ZRO:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
// when keycode DBL_ZRO is pressed
|
||||||
|
SEND_STRING("00");
|
||||||
|
} else {
|
||||||
|
// when keycode DBL_ZRO is released
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names {
|
||||||
|
_BL,
|
||||||
|
_FL
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _BL: (Base Layer) Default Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |Esc |TAB | FN | BS |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | NL | / | * | - |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 7 | 8 | 9 | |
|
||||||
|
* |----|----|----| + |
|
||||||
|
* | 4 | 5 | 6 | |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 1 | 2 | 3 | |
|
||||||
|
* |----|----|----| En |
|
||||||
|
* | 0 | 00 | . | |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_BL] = LAYOUT_numpad_6x4_split_zero(
|
||||||
|
KC_ESC, KC_TAB, MO(_FL), KC_BSPC,
|
||||||
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
KC_P7, KC_P8, KC_P9,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_P1, KC_P2, KC_P3,
|
||||||
|
KC_P0, DBL_ZRO, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |RGBT| | | |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |RGBM|RGBP|BTOG| |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |HUD |HUI |BON | |
|
||||||
|
* |----|----|----| |
|
||||||
|
* |SAD |SAI |BOFF| |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |VAD |VAS |BSTP| |
|
||||||
|
* |----|----|----| |
|
||||||
|
* | | |RST | |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_FL] = LAYOUT_numpad_6x4_split_zero(
|
||||||
|
RGB_TOG, _______, _______, _______,
|
||||||
|
RGB_MOD, RGB_M_P, BL_TOGG, _______,
|
||||||
|
RGB_HUD, RGB_HUI, BL_ON,
|
||||||
|
RGB_SAD, RGB_SAI, BL_OFF, _______,
|
||||||
|
RGB_VAD, RGB_VAI, BL_STEP,
|
||||||
|
_______, _______, RESET, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
36
keyboards/ergodash/rev1/keymaps/shadowprogr/config.h
Normal file
36
keyboards/ergodash/rev1/keymaps/shadowprogr/config.h
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
This is the c configuration file for the keymap
|
||||||
|
|
||||||
|
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
||||||
|
Copyright 2015 Jack Humbert
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
/* Use I2C or Serial, not both */
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
// #define USE_I2C
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
#define MASTER_LEFT
|
||||||
|
// #define MASTER_RIGHT
|
||||||
|
// #define EE_HANDS
|
||||||
|
|
||||||
|
#define LEADER_PER_KEY_TIMING
|
||||||
|
#define LEADER_TIMEOUT 250
|
||||||
199
keyboards/ergodash/rev1/keymaps/shadowprogr/keymap.c
Normal file
199
keyboards/ergodash/rev1/keymaps/shadowprogr/keymap.c
Normal file
@@ -0,0 +1,199 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
_WINDOWS,
|
||||||
|
_LINUX,
|
||||||
|
_NUMPAD,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_ADJUST,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
WINDOWS = SAFE_RANGE,
|
||||||
|
LINUX,
|
||||||
|
NUMPAD,
|
||||||
|
LOWER,
|
||||||
|
RAISE,
|
||||||
|
ADJUST
|
||||||
|
};
|
||||||
|
|
||||||
|
#define CTL_ENT MT(MOD_RCTL, KC_PENT)
|
||||||
|
#define NUMPAD MO(_NUMPAD)
|
||||||
|
#define SHELL LCA(KC_T)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/* Windows Qwerty
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 |BSpace |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | \ |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Esc | A | S | D | F | G | Home | | Del | H | J | K | L | : | ' |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Shift | Z | X | C | V | B | - | | = | N | M | , | . | / | Shift |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | LCtrl | LGUI | LAlt |Numpad ||||||||| Space | Lower | Enter ||||||||| Enter | Raise |BSpace ||||||||| F5 | RAlt | RGui |Ctl/Ent|
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
*/
|
||||||
|
[_WINDOWS] = LAYOUT( \
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, \
|
||||||
|
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_DEL, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MINS, KC_EQL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, NUMPAD, KC_SPC, LOWER, KC_ENT, KC_ENT, RAISE, KC_BSPC, KC_F5, KC_RALT, KC_RGUI, CTL_ENT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Linux Qwerty
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 |BSpace |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | \ |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Esc | A | S | D | F | G | Home | | Del | H | J | K | L | : | ' |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Shift | Z | X | C | V | B | - | | = | N | M | , | . | / | Shift |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | LCtrl | LGUI | LAlt |Numpad ||||||||| Space | Lower | Enter ||||||||| Enter | Raise |BSpace ||||||||| Shell | RAlt | RGui |Ctl/Ent|
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
*/
|
||||||
|
[_LINUX] = LAYOUT( \
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, \
|
||||||
|
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_DEL, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MINS, KC_EQL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, NUMPAD, KC_SPC, LOWER, KC_ENT, KC_ENT, RAISE, KC_BSPC, SHELL, KC_RALT, KC_RGUI, CTL_ENT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Numpad
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|NumLock| / | * | - |XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX| 7 | 8 | 9 | |XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+ + +-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX| 4 | 5 | 6 | |XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX| 1 | 2 | 3 | |XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+ Enter +-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|Numpad |||||||||XXXXXXX|XXXXXXX|XXXXXXX|||||||||XXXXXXX|XXXXXXX|XXXXXXX||||||||| 0 | . | | Enter |
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
*/
|
||||||
|
[_NUMPAD] = LAYOUT( \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_BSPC, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_7, KC_KP_8, KC_KP_9, KC_PPLS, XXXXXXX, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_4, KC_KP_5, KC_KP_6, KC_PPLS, XXXXXXX, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_1, KC_KP_2, KC_KP_3, KC_PENT, XXXXXXX, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, NUMPAD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_0, KC_PDOT, KC_PENT, KC_PENT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Lower
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
* | F11 | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F12 |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | ( | { | [ | | | | ] | } | ) | | | |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | | |PageUp | | | | | | | | | |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | |VolDown| VolUp | | |PageDwn| | | | | | | | | |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | ||||||||| | Lower | ||||||||| | Raise | ||||||||| | | | |
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
*/
|
||||||
|
[_LOWER] = LAYOUT( \
|
||||||
|
KC_F11, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F12, \
|
||||||
|
_______, _______, _______, KC_LPRN, KC_LCBR, KC_LBRC, _______, _______, KC_RBRC, KC_RCBR, KC_RPRN, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
KC_CAPS, KC_VOLD, KC_VOLU, _______, _______, KC_PGDN, _______, _______, _______, _______, _______, _______, _______, KC_CAPS, \
|
||||||
|
_______, _______, _______, _______, _______, LOWER, _______, _______, RAISE, _______, _______, _______, _______, _______ \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Raise
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
* | F11 | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F12 |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | ( | { | [ | | | | ] | } | ) | | | |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | | | | End | | | Left | Down | Up | Right | | |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | | | | | | | | | | | | |
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | | | | ||||||||| | Lower | ||||||||| | Raise | ||||||||| | | | |
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
*/
|
||||||
|
[_RAISE] = LAYOUT( \
|
||||||
|
KC_F11, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F12, \
|
||||||
|
_______, _______, _______, KC_LPRN, KC_LCBR, KC_LBRC, _______, _______, KC_RBRC, KC_RCBR, KC_RPRN, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, KC_END, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, \
|
||||||
|
KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, KC_MPLY, KC_CAPS, \
|
||||||
|
_______, _______, _______, _______, _______, LOWER, _______, _______, RAISE, _______, _______, _______, _______, _______ \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Adjust
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
* |XXXXXXX|Windows| Linux |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX| Cycle |On/Off |XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|On/Off | Cycle |XXXXXXX|XXXXXXX|XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* | Reset |XXXXXXX|XXXXXXX|Breathe| Inc |XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|Hue inc|Sat inc| Inc |XXXXXXX|XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| Dec |XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|Hue dec|Sat dec| Dec |XXXXXXX|XXXXXXX|
|
||||||
|
* |-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
* |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|||||||||XXXXXXX| Lower |XXXXXXX|||||||||XXXXXXX| Raise |XXXXXXX|||||||||XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|
|
||||||
|
* .---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
*/
|
||||||
|
[_ADJUST] = LAYOUT( \
|
||||||
|
XXXXXXX, WINDOWS, LINUX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, BL_STEP, BL_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, RGB_MOD, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||||
|
RESET, XXXXXXX, XXXXXXX, BL_BRTG, BL_INC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, BL_DEC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUD, RGB_SAD, RGB_VAD, XXXXXXX, XXXXXXX, \
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX \
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case WINDOWS:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
set_single_persistent_default_layer(_WINDOWS);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case LINUX:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
set_single_persistent_default_layer(_LINUX);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case LOWER:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case RAISE:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case ADJUST:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
89
keyboards/ergodash/rev1/keymaps/shadowprogr/readme.md
Normal file
89
keyboards/ergodash/rev1/keymaps/shadowprogr/readme.md
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
# ShadowProgr's layout for ErgoDash
|
||||||
|
|
||||||
|
There are 2 different QWERTY base layers for use with Windows and Linux OSes. Beside those 2 there are also a numpad layer and 3 modifier layers (lower, raise and adjust).
|
||||||
|
|
||||||
|
## Layouts
|
||||||
|
### Windows
|
||||||
|
```
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
| ` | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 |BSpace |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | \ |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Esc | A | S | D | F | G | Home | | Del | H | J | K | L | : | ' |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Shift | Z | X | C | V | B | - | | = | N | M | , | . | / | Shift |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| LCtrl | LGUI | LAlt |Numpad ||||||||| Space | Lower | Enter ||||||||| Enter | Raise |BSpace ||||||||| F5 | RAlt | RGui |Ctl/Ent|
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
```
|
||||||
|
### Linux
|
||||||
|
```
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
| ` | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 |BSpace |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | \ |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Esc | A | S | D | F | G | Home | | Del | H | J | K | L | : | ' |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Shift | Z | X | C | V | B | - | | = | N | M | , | . | / | Shift |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| LCtrl | LGUI | LAlt |Numpad ||||||||| Space | Lower | Enter ||||||||| Enter | Raise |BSpace ||||||||| Shell | RAlt | RGui |Ctl/Ent|
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
```
|
||||||
|
### Numpad
|
||||||
|
```
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|NumLock| / | * | - |XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX| 7 | 8 | 9 | |XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+ + +-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX| 4 | 5 | 6 | |XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX| 1 | 2 | 3 | |XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+ Enter +-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|Numpad |||||||||XXXXXXX|XXXXXXX|XXXXXXX|||||||||XXXXXXX|XXXXXXX|XXXXXXX||||||||| 0 | . | | Enter |
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
```
|
||||||
|
### Lower
|
||||||
|
```
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
| F11 | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F12 |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | ( | { | [ | | | | ] | } | ) | | | |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | | |PageUp | | | | | | | | | |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| |VolDown| VolUp | | |PageDwn| | | | | | | | | |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | ||||||||| | Lower | ||||||||| | Raise | ||||||||| | | | |
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
```
|
||||||
|
### Raise
|
||||||
|
```
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
| F11 | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F12 |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | ( | { | [ | | | | ] | } | ) | | | |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | | | | End | | | Left | Down | Up | Right | | |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | | | | | | | | | | | | |
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| | | | ||||||||| | Lower | ||||||||| | Raise | ||||||||| | | | |
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
```
|
||||||
|
### Adjust
|
||||||
|
```
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
|XXXXXXX|Windows| Linux |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX| Cycle |On/Off |XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|On/Off | Cycle |XXXXXXX|XXXXXXX|XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
| Reset |XXXXXXX|XXXXXXX|Breathe| Inc |XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|Hue inc|Sat inc| Inc |XXXXXXX|XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| Dec |XXXXXXX|XXXXXXX| |XXXXXXX|XXXXXXX|Hue dec|Sat dec| Dec |XXXXXXX|XXXXXXX|
|
||||||
|
|-------+-------+-------+-------+-------+-------+-------+-----------------------+-------+-------+-------+-------+-------+-------+-------|
|
||||||
|
|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|||||||||XXXXXXX| Lower |XXXXXXX|||||||||XXXXXXX| Raise |XXXXXXX|||||||||XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|
|
||||||
|
.---------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
|
```
|
||||||
3
keyboards/ergodash/rev1/keymaps/shadowprogr/rules.mk
Normal file
3
keyboards/ergodash/rev1/keymaps/shadowprogr/rules.mk
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
BACKLIGHT_ENABLE = yes
|
||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
AUDIO_ENABLE = no
|
||||||
@@ -27,3 +27,5 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
|
||||||
#define RGB_DI_PIN A1
|
#define RGB_DI_PIN A1
|
||||||
|
|
||||||
|
#define ADC_PIN A0
|
||||||
|
|||||||
@@ -27,3 +27,5 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
|
||||||
#define RGB_DI_PIN A1
|
#define RGB_DI_PIN A1
|
||||||
|
|
||||||
|
#define ADC_PIN A0
|
||||||
|
|||||||
@@ -27,3 +27,5 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
|
||||||
#define RGB_DI_PIN A1
|
#define RGB_DI_PIN A1
|
||||||
|
|
||||||
|
#define ADC_PIN A0
|
||||||
|
|||||||
@@ -21,3 +21,9 @@
|
|||||||
#define MATRIX_COL_PINS { F4 }
|
#define MATRIX_COL_PINS { F4 }
|
||||||
#define MATRIX_ROW_PINS { F5 }
|
#define MATRIX_ROW_PINS { F5 }
|
||||||
#define UNUSED_PINS
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN B6
|
||||||
|
|
||||||
|
#define RGB_DI_PIN F6
|
||||||
|
|
||||||
|
#define ADC_PIN F6
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
@@ -2,10 +2,6 @@
|
|||||||
#include "analog.h"
|
#include "analog.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef ADC_PIN
|
|
||||||
# define ADC_PIN A0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
ADC_SAMPLE = SAFE_RANGE,
|
ADC_SAMPLE = SAFE_RANGE,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,3 +21,9 @@
|
|||||||
#define MATRIX_COL_PINS { F4 }
|
#define MATRIX_COL_PINS { F4 }
|
||||||
#define MATRIX_ROW_PINS { F5 }
|
#define MATRIX_ROW_PINS { F5 }
|
||||||
#define UNUSED_PINS
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN B6
|
||||||
|
|
||||||
|
#define RGB_DI_PIN F6
|
||||||
|
|
||||||
|
#define ADC_PIN F6
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
#define MATRIX_COL_PINS { A3 }
|
#define MATRIX_COL_PINS { A2 }
|
||||||
#define MATRIX_ROW_PINS { A2 }
|
#define MATRIX_ROW_PINS { A1 }
|
||||||
#define UNUSED_PINS
|
#define UNUSED_PINS
|
||||||
|
|
||||||
#define BACKLIGHT_PIN B8
|
#define BACKLIGHT_PIN B8
|
||||||
@@ -27,4 +27,6 @@
|
|||||||
#define BACKLIGHT_PWM_CHANNEL 3
|
#define BACKLIGHT_PWM_CHANNEL 3
|
||||||
#define BACKLIGHT_PAL_MODE 2
|
#define BACKLIGHT_PAL_MODE 2
|
||||||
|
|
||||||
#define RGB_DI_PIN A1
|
#define RGB_DI_PIN A0
|
||||||
|
|
||||||
|
#define ADC_PIN A0
|
||||||
|
|||||||
@@ -28,3 +28,5 @@
|
|||||||
#define BACKLIGHT_PAL_MODE 0
|
#define BACKLIGHT_PAL_MODE 0
|
||||||
|
|
||||||
#define RGB_DI_PIN B15
|
#define RGB_DI_PIN B15
|
||||||
|
|
||||||
|
#define ADC_PIN A0
|
||||||
|
|||||||
@@ -21,3 +21,9 @@
|
|||||||
#define MATRIX_COL_PINS { F4 }
|
#define MATRIX_COL_PINS { F4 }
|
||||||
#define MATRIX_ROW_PINS { F5 }
|
#define MATRIX_ROW_PINS { F5 }
|
||||||
#define UNUSED_PINS
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN B6
|
||||||
|
|
||||||
|
#define RGB_DI_PIN F6
|
||||||
|
|
||||||
|
#define ADC_PIN F6
|
||||||
|
|||||||
@@ -18,6 +18,12 @@
|
|||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
#define MATRIX_COL_PINS { B2 }
|
#define MATRIX_COL_PINS { F4 }
|
||||||
#define MATRIX_ROW_PINS { B1 }
|
#define MATRIX_ROW_PINS { F5 }
|
||||||
#define UNUSED_PINS
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN B6
|
||||||
|
|
||||||
|
#define RGB_DI_PIN F6
|
||||||
|
|
||||||
|
#define ADC_PIN F6
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
{"label":"E", "x":3.75, "y":1},
|
{"label":"E", "x":3.75, "y":1},
|
||||||
{"label":"R", "x":4.75, "y":1},
|
{"label":"R", "x":4.75, "y":1},
|
||||||
{"label":"T", "x":5.75, "y":1},
|
{"label":"T", "x":5.75, "y":1},
|
||||||
{"label":"GUI", "x":0, "y":2},
|
{"label":"Ctrl-C", "x":0, "y":2},
|
||||||
{"label":"Alt", "x":1, "y":2},
|
{"label":"Ctrl-V", "x":1, "y":2},
|
||||||
{"label":"A", "x":2, "y":2},
|
{"label":"A", "x":2, "y":2},
|
||||||
{"label":"S", "x":3, "y":2},
|
{"label":"S", "x":3, "y":2},
|
||||||
{"label":"D", "x":4, "y":2},
|
{"label":"D", "x":4, "y":2},
|
||||||
|
|||||||
@@ -6,20 +6,26 @@
|
|||||||
// entirely and just use numbers.
|
// entirely and just use numbers.
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _SYMB 1
|
#define _SYMB 1
|
||||||
|
#define _LIGHT 2
|
||||||
|
|
||||||
// Shortcut to make keymap more readable
|
// Shortcut to make keymap more readable
|
||||||
#define SYM_L MO(_SYMB)
|
#define SYM_L MO(_SYMB)
|
||||||
#define KC_ALEN LALT_T(KC_ENT)
|
#define KC_ALEN LALT_T(KC_ENT)
|
||||||
|
#define ES_LIGH LT(_LIGHT, KC_ESC)
|
||||||
|
|
||||||
|
#define CT_COPY LCTL(KC_C)
|
||||||
|
#define CT_PASTE LCTL(KC_V)
|
||||||
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[_QWERTY] = LAYOUT(
|
[_QWERTY] = LAYOUT(
|
||||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
KC_ESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 ,
|
ES_LIGH ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 ,
|
||||||
//└────────┼────────┼────────┼────────┼────────┼────────┤
|
//└────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,
|
KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,
|
||||||
//┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
//┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
||||||
KC_LGUI ,KC_ALEN ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,
|
CT_COPY ,CT_PASTE,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
||||||
KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,
|
KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,
|
||||||
//├────────┼────────┘ └────────┴────────┼────────┼────────┐
|
//├────────┼────────┘ └────────┴────────┼────────┼────────┐
|
||||||
@@ -35,10 +41,31 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
//┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
//┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
||||||
_______ ,_______ ,KC_LEFT ,KC_DOWN ,KC_RIGHT,KC_LBRC ,KC_RBRC ,
|
_______ ,_______ ,KC_LEFT ,KC_DOWN ,KC_RIGHT,KC_LBRC ,KC_RBRC ,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
||||||
_______ ,KC_BSPC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,
|
_______ ,KC_BSPC ,KC_DEL ,KC_LPRN ,KC_RPRN ,
|
||||||
//├────────┼────────┘ └────────┴────────┼────────┼────────┐
|
//├────────┼────────┘ └────────┴────────┼────────┼────────┐
|
||||||
_______ ,_______ ,_______
|
_______ ,_______ ,_______
|
||||||
//└────────┘ └────────┴────────┘
|
//└────────┘ └────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[_LIGHT] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
|
_______ ,RGB_HUI ,RGB_HUD ,RGB_SAI ,RGB_SAD ,RGB_VAI ,
|
||||||
|
//└────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
RGB_M_P ,RGB_M_SW,RGB_M_X ,RGB_M_B ,RGB_VAD ,
|
||||||
|
//┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
||||||
|
_______ ,_______ ,RGB_M_SN,RGB_M_G ,RGB_M_R ,RGB_M_K ,RGB_M_T ,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
|
||||||
|
_______ ,RGB_M_T ,XXXXXXX ,RGB_VAI ,RGB_VAD ,
|
||||||
|
//├────────┼────────┘ └────────┴────────┼────────┼────────┐
|
||||||
|
_______ ,RGB_MOD ,RGB_TOG
|
||||||
|
//└────────┘ └────────┴────────┘
|
||||||
)
|
)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Runs just one time when the keyboard initializes.
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_SWIRL);
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -19,5 +19,8 @@
|
|||||||
#ifdef KEYBOARD_kudox_game_rev1
|
#ifdef KEYBOARD_kudox_game_rev1
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef KEYBOARD_kudox_game_rev2
|
||||||
|
#include "rev2.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|||||||
@@ -9,18 +9,18 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
- Keyboard Maintainer: [Kumao Kobo](https://github.com/kumaokobo)
|
- Keyboard Maintainer: [Kumao Kobo](https://github.com/kumaokobo)
|
||||||
- Hardware Supported: Kudox Game PCB rev1.0 w/ Pro Micro
|
- Hardware Supported: Kudox Game PCB rev1.0 rev2.0 w/ Pro Micro
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make kudox_game/rev1:default
|
make kudox_game/rev2:default
|
||||||
```
|
```
|
||||||
|
|
||||||
Example of flashing this keyboard:
|
Example of flashing this keyboard:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make kudox_game/rev1:default:avrdude
|
make kudox_game/rev2:default:avrdude
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
|
|||||||
91
keyboards/kudox_game/rev2/config.h
Normal file
91
keyboards/kudox_game/rev2/config.h
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 Kumao Kobo <kumaokobo@gmail.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x9696
|
||||||
|
#define DEVICE_VER 0x0200
|
||||||
|
#define MANUFACTURER Kumao Kobo
|
||||||
|
#define PRODUCT The Kudox Game Keyboard
|
||||||
|
#define DESCRIPTION Custom keyboard for playing game
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 7
|
||||||
|
|
||||||
|
// wiring of each half
|
||||||
|
#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 }
|
||||||
|
#define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
|
||||||
|
// #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5} //uncomment this line and comment line above if you need to reverse left-to-right key order
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* define if matrix has ghost */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
// #define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
/* Set 0 if debouncing isn't needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* serial.c configuration for split keyboard */
|
||||||
|
#define SOFT_SERIAL_PIN D0
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* ws2812 RGB LED */
|
||||||
|
#define RGB_DI_PIN D3
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLED_NUM 7 // Number of LEDs
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
// #define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
// #define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
//#define NO_ACTION_MACRO
|
||||||
|
//#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
#define MOUSEKEY_INTERVAL 20
|
||||||
|
#define MOUSEKEY_DELAY 0
|
||||||
|
#define MOUSEKEY_TIME_TO_MAX 60
|
||||||
|
#define MOUSEKEY_MAX_SPEED 7
|
||||||
|
#define MOUSEKEY_WHEEL_DELAY 0
|
||||||
1
keyboards/kudox_game/rev2/rev2.c
Normal file
1
keyboards/kudox_game/rev2/rev2.c
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#include "kudox_game.h"
|
||||||
20
keyboards/kudox_game/rev2/rev2.h
Normal file
20
keyboards/kudox_game/rev2/rev2.h
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../kudox_game.h"
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
k00, k01, k02, k03, k04, k05, \
|
||||||
|
k11, k12, k13, k14, k15, \
|
||||||
|
k20, k21, k22, k23, k24, k25, k26, \
|
||||||
|
k30, k31, k34, k35, k36, \
|
||||||
|
k40, k45, k46 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02, k03, k04, k05, KC_NO }, \
|
||||||
|
{ KC_NO, k11, k12, k13, k14, k15, KC_NO }, \
|
||||||
|
{ k20, k21, k22, k23, k24, k25, k26 }, \
|
||||||
|
{ k30, k31, KC_NO, KC_NO, k34, k35, k36 }, \
|
||||||
|
{ k40, KC_NO, KC_NO, KC_NO, KC_NO, k45, k46 } \
|
||||||
|
}
|
||||||
1
keyboards/kudox_game/rev2/rules.mk
Normal file
1
keyboards/kudox_game/rev2/rules.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
@@ -31,4 +31,4 @@ 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
|
||||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||||
|
|
||||||
DEFAULT_FOLDER = kudox_game/rev1
|
DEFAULT_FOLDER = kudox_game/rev2
|
||||||
|
|||||||
6
keyboards/minidox/keymaps/bepo/config.h
Normal file
6
keyboards/minidox/keymaps/bepo/config.h
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
|
||||||
|
#define EE_HANDS
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT
|
||||||
109
keyboards/minidox/keymaps/bepo/keymap.c
Normal file
109
keyboards/minidox/keymaps/bepo/keymap.c
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "keymap_bepo.h"
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
_BEPO,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_ADJUST,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define TABLO LT(_LOWER, KC_TAB)
|
||||||
|
#define ENTRA LT(_RAISE, KC_ENTER)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/* BEPO
|
||||||
|
*
|
||||||
|
* ,----------------------------------. ,----------------------------------.
|
||||||
|
* | B | W | P | O | ’ | | ^ | V | D | L | J |
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | A | U | I | E | , | | C | T | S | R | N |
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | Z/GUI| Y/Alt| X/Ctl| ./Sft| K | | M | Q/Sft| G/Ctl| H/Alt| F/GUI|
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,------.------.------. ,------,------.------.
|
||||||
|
* | Del | Tab | | | |Enter |Escape|
|
||||||
|
* | | LOWER| Space| |BckSpc|RAISE | |
|
||||||
|
* `------'------| | | |------'------'
|
||||||
|
* | | | |
|
||||||
|
* `------' `------'
|
||||||
|
*/
|
||||||
|
[_BEPO] = LAYOUT(
|
||||||
|
BP_B, BP_W, BP_P, BP_O, BP_APOS, BP_DCRC, BP_V , BP_D, BP_L, BP_J,
|
||||||
|
BP_A, BP_U, BP_I, BP_E, BP_COMMA, BP_C, BP_T, BP_S, BP_R, BP_N,
|
||||||
|
LGUI_T(BP_Z), ALT_T(BP_Y), CTL_T(BP_X), SFT_T(BP_DOT), BP_K, BP_M, SFT_T(BP_Q), CTL_T(BP_G), ALT_T(BP_H), LGUI_T(BP_F),
|
||||||
|
KC_DEL, TABLO, KC_SPC, KC_BSPC, ENTRA , KC_ESC
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Lower.
|
||||||
|
*
|
||||||
|
* ,----------------------------------. ,----------------------------------.
|
||||||
|
* | | | É | & | œ | È | | PgUp | Home | Up | End |ScrlUp|
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | æ | Ù | ¨ | € | $ | | PgDn | Left | Down | Right|ScrlDn|
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | À | Alt | Ctl | Shift| Ç | | | Shift| Ctl | Alt | |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,------,------,------. ,------,------,------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* `------'------| | | |------'------'
|
||||||
|
* | | | |
|
||||||
|
* `------' `------'
|
||||||
|
*/
|
||||||
|
[_LOWER] = LAYOUT(
|
||||||
|
ALGR(BP_B), BP_E_ACUTE, ALGR(BP_P), ALGR(BP_O), BP_E_GRAVE, KC_PGUP, KC_HOME, KC_UP, KC_END, KC_MS_WH_UP,
|
||||||
|
ALGR(BP_A), ALGR(BP_U), ALGR(BP_I), ALGR(BP_E), BP_DOLLAR, KC_PGDOWN, KC_LEFT, KC_DOWN, KC_RIGHT, KC_MS_WH_DOWN,
|
||||||
|
BP_AGRV, KC_LALT, KC_LCTL, KC_LSFT, BP_CCED, _______, KC_LSFT, KC_LCTL, KC_LALT, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Raise
|
||||||
|
*
|
||||||
|
* ,----------------------------------. ,----------------------------------.
|
||||||
|
* | " | < | > | ( | ) | | @ | + | - | / | * |
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | ` | { | } | [ | ] | | ~ | = | % | \ | # |
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | | | Alt | Ctl | Shift| ' | | | Shift| Ctl | Alt | & |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,------,------,------. ,------,------,------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* `------'------| _ | | |------'------'
|
||||||
|
* | | | |
|
||||||
|
* `------' `------'
|
||||||
|
*/
|
||||||
|
[_RAISE] = LAYOUT(
|
||||||
|
BP_DQOT, ALGR(BP_LGIL), ALGR(BP_RGIL), BP_LPRN, BP_RPRN, BP_AT, BP_PLUS, BP_MINUS, BP_SLASH, BP_ASTR,
|
||||||
|
S(BP_PERCENT), ALGR(BP_Y), ALGR(BP_X), ALGR(BP_LPRN), ALGR(BP_RPRN), ALGR(BP_K), BP_EQUAL, BP_PERCENT, ALGR(BP_A_GRAVE), S(BP_DOLLAR),
|
||||||
|
ALGR(BP_B), KC_LALT, KC_LCTL, KC_LSFT, ALGR(BP_COMM), _______, KC_LSFT, KC_LCTL, KC_LALT, ALGR(BP_P),
|
||||||
|
_______, _______, ALGR(KC_SPC), _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Adjust (Lower + Raise)
|
||||||
|
* (GUI, ALT, Ctrl, Shft ONLY on left-hand home row)
|
||||||
|
*
|
||||||
|
* ,----------------------------------. ,----------------------------------.
|
||||||
|
* | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 |
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
|
||||||
|
* |------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
* | F11 | Alt | Ctl | Shift| | | | Shift| Ctl | Alt | F12 |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,------,------,------. ,------,------,------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* `------'------| | | |------'------'
|
||||||
|
* | | | |
|
||||||
|
* `------' `------'
|
||||||
|
*/
|
||||||
|
[_ADJUST] = LAYOUT(
|
||||||
|
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||||
|
S(BP_DQOT), S(BP_LGIL), S(BP_RGIL), S(BP_LPRN), S(BP_RPRN), S(BP_AT), S(BP_PLUS), S(BP_MINUS), S(BP_SLASH), S(BP_ASTR),
|
||||||
|
KC_F11, KC_LALT, KC_LCTL, KC_LSFT, _______, _______, KC_LSFT, KC_LCTL, KC_LALT, KC_F12 ,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
31
keyboards/minidox/keymaps/bepo/readme.md
Normal file
31
keyboards/minidox/keymaps/bepo/readme.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# MiniDox Bepo
|
||||||
|
|
||||||
|
As the minidox has a restricted number of keys as compared to regular keyboards, some adjustments were made.
|
||||||
|
These adjustments allow for improved ergonomics when typing English and programming languages (in particular javascript).
|
||||||
|
|
||||||
|
>Keys have been grouped and rearranged to meet the needs of principals programming usages. Most used groups are placed at the opposite of thumb layout-activation key, not to seek the same hand too much:
|
||||||
|
1. **Arrows/Navigation:** most used with `2.` after standard characters. To navigate comfortably during a long time, the group is placed at the opposite of the thumb-activated layout key.
|
||||||
|
2. **Programming blocks characters:** most used with `1.` after standard characters. *Group placed at the opposite of the thumb-activated layout key*.
|
||||||
|
3. **Operators:** less used than navigation. *Same side of the thumb-activated layout key*.
|
||||||
|
4. **French special characters:** to keep basic characters on main layout and because they are less used in programming and english, french special characters have been moved to a specific layout, counter to Bepo's original main layout. *Same side of the thumb-activated layout key.*
|
||||||
|
|
||||||
|
*Here is a list of other ergonomic choices :*
|
||||||
|
|
||||||
|
- `Alt` both sides (instead of `AltGr`), as special characters are now handled by layouts, and to comfortably get all shortcuts with both hands (e.g. `alt/tab`...).
|
||||||
|
- Numbers on home row, and Function keys on corresponding upper row.
|
||||||
|
- Greater/less-than-sign in place of `«` `»`, for easier programming, and because the majority of OS and softwares replace `"` with `«` `»`.
|
||||||
|
- Mirror `&` and `|` on little finger, lower row, raise layout (`raiser + &` on little finger is more handy than `raiser + &` on index finger).
|
||||||
|
- `’/?` in place of `È` to keep `M` on the right hand side.
|
||||||
|
- Better reachability for `W` `Z` `~` `backtick`...
|
||||||
|
|
||||||
|
## Firmware :
|
||||||
|
[Recent bepo firmware](https://bepo.fr/wiki/Accueil) `1.1rc2` switched generic apostrophe and typographic one.
|
||||||
|
As the majority of OS and softwares replace **`'`** with **`’`**, I personnaly do prefer 2008 bepo firmware which keeps generic apostrophe on main layout. In fact, the apostrophe get replaced in text editors, but not in the IDEs while programming.
|
||||||
|
Or you also can [switch them by following those instructions.](https://bepo.fr/wiki/Apostrophe)
|
||||||
|
|
||||||
|
## Layout :
|
||||||
|

|
||||||
|
|
||||||
|
#### N.B.
|
||||||
|
I have been using and fine tuned this layout for about a year, and I really enjoy it. 🙂
|
||||||
|
|
||||||
239
keyboards/switchplate/southpaw_65/config.h
Normal file
239
keyboards/switchplate/southpaw_65/config.h
Normal file
@@ -0,0 +1,239 @@
|
|||||||
|
/* Copyright 2019
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x4084
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Switchplate Peripherals
|
||||||
|
#define PRODUCT Southpaw Extended 65%
|
||||||
|
#define DESCRIPTION A Left Hand Number Pad 65% Keyboard
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 19
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//#define MATRIX_ROW_PINS { D0, D5 }
|
||||||
|
//#define MATRIX_COL_PINS { F1, F0, B0 }
|
||||||
|
//#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL */
|
||||||
|
//#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN B5
|
||||||
|
#define BACKLIGHT_LEVELS 10
|
||||||
|
// #define BACKLIGHT_BREATHING
|
||||||
|
|
||||||
|
#define RGB_DI_PIN C7
|
||||||
|
#define RGBLED_NUM 9
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
// #ifdef RGB_DI_PIN
|
||||||
|
// #define RGBLIGHT_HUE_STEP 8
|
||||||
|
// #define RGBLIGHT_SAT_STEP 8
|
||||||
|
// #define RGBLIGHT_VAL_STEP 8
|
||||||
|
// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||||
|
// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||||
|
// /*== all animations enable ==*/
|
||||||
|
// #define RGBLIGHT_ANIMATIONS
|
||||||
|
// /*== or choose animations ==*/
|
||||||
|
// #define RGBLIGHT_EFFECT_BREATHING
|
||||||
|
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||||
|
// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||||
|
// #define RGBLIGHT_EFFECT_SNAKE
|
||||||
|
// #define RGBLIGHT_EFFECT_KNIGHT
|
||||||
|
// #define RGBLIGHT_EFFECT_CHRISTMAS
|
||||||
|
// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||||
|
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||||||
|
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||||
|
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||||
|
*/
|
||||||
|
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Force NKRO
|
||||||
|
*
|
||||||
|
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||||
|
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||||
|
* makefile for this to work.)
|
||||||
|
*
|
||||||
|
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||||
|
* until the next keyboard reset.
|
||||||
|
*
|
||||||
|
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||||
|
* fully operational during normal computer usage.
|
||||||
|
*
|
||||||
|
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||||
|
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||||
|
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||||
|
* power-up.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//#define FORCE_NKRO
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Magic Key Options
|
||||||
|
*
|
||||||
|
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||||
|
* the keyboard. They are best used in combination with the HID Listen program,
|
||||||
|
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||||
|
*
|
||||||
|
* The options below allow the magic key functionality to be changed. This is
|
||||||
|
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* key combination for magic key command */
|
||||||
|
/* defined by default; to change, uncomment and set to the combination you want */
|
||||||
|
// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
|
||||||
|
|
||||||
|
/* control how magic key switches layers */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||||
|
|
||||||
|
/* override magic key keymap */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||||
|
//#define MAGIC_KEY_HELP1 H
|
||||||
|
//#define MAGIC_KEY_HELP2 SLASH
|
||||||
|
//#define MAGIC_KEY_DEBUG D
|
||||||
|
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||||
|
//#define MAGIC_KEY_DEBUG_KBD K
|
||||||
|
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||||
|
//#define MAGIC_KEY_VERSION V
|
||||||
|
//#define MAGIC_KEY_STATUS S
|
||||||
|
//#define MAGIC_KEY_CONSOLE C
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT1 ESC
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
|
||||||
|
//#define MAGIC_KEY_LAYER0 0
|
||||||
|
//#define MAGIC_KEY_LAYER1 1
|
||||||
|
//#define MAGIC_KEY_LAYER2 2
|
||||||
|
//#define MAGIC_KEY_LAYER3 3
|
||||||
|
//#define MAGIC_KEY_LAYER4 4
|
||||||
|
//#define MAGIC_KEY_LAYER5 5
|
||||||
|
//#define MAGIC_KEY_LAYER6 6
|
||||||
|
//#define MAGIC_KEY_LAYER7 7
|
||||||
|
//#define MAGIC_KEY_LAYER8 8
|
||||||
|
//#define MAGIC_KEY_LAYER9 9
|
||||||
|
//#define MAGIC_KEY_BOOTLOADER PAUSE
|
||||||
|
//#define MAGIC_KEY_LOCK CAPS
|
||||||
|
//#define MAGIC_KEY_EEPROM E
|
||||||
|
//#define MAGIC_KEY_NKRO N
|
||||||
|
//#define MAGIC_KEY_SLEEP_LED Z
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
//#define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
//#define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
//#define NO_ACTION_MACRO
|
||||||
|
//#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
/*
|
||||||
|
* MIDI options
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Prevent use of disabled MIDI features in the keymap */
|
||||||
|
//#define MIDI_ENABLE_STRICT 1
|
||||||
|
|
||||||
|
/* enable basic MIDI features:
|
||||||
|
- MIDI notes can be sent when in Music mode is on
|
||||||
|
*/
|
||||||
|
//#define MIDI_BASIC
|
||||||
|
|
||||||
|
/* enable advanced MIDI features:
|
||||||
|
- MIDI notes can be added to the keymap
|
||||||
|
- Octave shift and transpose
|
||||||
|
- Virtual sustain, portamento, and modulation wheel
|
||||||
|
- etc.
|
||||||
|
*/
|
||||||
|
//#define MIDI_ADVANCED
|
||||||
|
|
||||||
|
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||||
|
//#define MIDI_TONE_KEYCODE_OCTAVES 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* HD44780 LCD Display Configuration
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
#define LCD_LINES 2 //< number of visible lines of the display
|
||||||
|
#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
|
||||||
|
|
||||||
|
#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
|
||||||
|
|
||||||
|
#if LCD_IO_MODE
|
||||||
|
#define LCD_PORT PORTB //< port for the LCD lines
|
||||||
|
#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
|
||||||
|
#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
|
||||||
|
#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
|
||||||
|
#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
|
||||||
|
#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
|
||||||
|
#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
|
||||||
|
#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
|
||||||
|
#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
|
||||||
|
#define LCD_RS_PORT LCD_PORT //< port for RS line
|
||||||
|
#define LCD_RS_PIN 3 //< pin for RS line
|
||||||
|
#define LCD_RW_PORT LCD_PORT //< port for RW line
|
||||||
|
#define LCD_RW_PIN 2 //< pin for RW line
|
||||||
|
#define LCD_E_PORT LCD_PORT //< port for Enable line
|
||||||
|
#define LCD_E_PIN 1 //< pin for Enable line
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Bootmagic Lite key configuration */
|
||||||
|
// #define BOOTMAGIC_LITE_ROW 0
|
||||||
|
// #define BOOTMAGIC_LITE_COLUMN 0
|
||||||
141
keyboards/switchplate/southpaw_65/dev.md
Normal file
141
keyboards/switchplate/southpaw_65/dev.md
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
# Southpaw Extended 65%
|
||||||
|
|
||||||
|
Development docs covering the following:
|
||||||
|
- Kimera core
|
||||||
|
- RGB
|
||||||
|
- Backlight
|
||||||
|
|
||||||
|
## Kimera core
|
||||||
|

|
||||||
|
|
||||||
|
What little available info that was available for the qmk port
|
||||||
|
- atmega32u4 16Mhz
|
||||||
|
- board seems to have a 6Mhz crystal
|
||||||
|
- 2x PCA9555 I2C IO expander
|
||||||
|
|
||||||
|
Links:
|
||||||
|
- [Schematic, BOM, Gerbers](/kairyu/kimera/blob/master/kimera_core)
|
||||||
|
- [Original firmware](https://github.com/kairyu/tmk_keyboard_custom/tree/master/keyboard/kimera)
|
||||||
|
|
||||||
|
```c
|
||||||
|
/*
|
||||||
|
Kimera_core_v1.0 Components
|
||||||
|
|
||||||
|
U1 (atmega32u4)
|
||||||
|
,----------------.
|
||||||
|
TX --| TX0(PD3) RAW |--
|
||||||
|
RX --| RX1(PD2) GND |--
|
||||||
|
--| GND RESET |-- RST
|
||||||
|
--| GND VCC |--
|
||||||
|
SDA --| 2(PD1) (PF4)A3 |--
|
||||||
|
SCL --| 3(PD0) (PF5)A2 |--
|
||||||
|
(INT) --| 4(PD4) (PF6)A1 |--
|
||||||
|
--| 5(PC6) (PF7)A0 |--
|
||||||
|
--| 6(PD7) (PB1)15 |-- SCK
|
||||||
|
LED2 --| 7(PE6) (PB3)14 |-- MISO
|
||||||
|
LED1 --| 8(PB4) (PB2)16 |-- MOSI
|
||||||
|
LED3 --| 9(PB5) (PB6)10 |-- LED4
|
||||||
|
`----------------'
|
||||||
|
|
||||||
|
IC1 (PCA9555) IC2 (PCA9555)
|
||||||
|
,----------. ,----------.
|
||||||
|
SDA --| SDA P00 |-- P1 SDA --| SDA P00 |-- P17
|
||||||
|
SCL --| SCL P01 |-- P2 SCL --| SCL P01 |-- P18
|
||||||
|
INT --| INT P02 |-- P3 INT --| INT P02 |-- P19
|
||||||
|
| P03 |-- P4 | P03 |-- P20
|
||||||
|
GND --| A0 P04 |-- P5 VCC --| A0 P04 |-- P21
|
||||||
|
SJ1 --| A1 P05 |-- P6 SJ1 --| A1 P05 |-- P22
|
||||||
|
SJ2 --| A2 P06 |-- P7 SJ2 --| A2 P06 |-- P23
|
||||||
|
| P07 |-- P8 | P07 |-- P24
|
||||||
|
| | | |
|
||||||
|
| P10 |-- P9 | P10 |-- P25
|
||||||
|
| P11 |-- P10 | P11 |-- P26
|
||||||
|
| P12 |-- P11 | P12 |-- P27
|
||||||
|
| P13 |-- P12 | P13 |-- P28
|
||||||
|
| P14 |-- P13 | P14 |-- P29
|
||||||
|
| P15 |-- P14 | P15 |-- P30
|
||||||
|
| P16 |-- P15 | P16 |-- P31
|
||||||
|
| P17 |-- P16 | P17 |-- P32
|
||||||
|
`----------' `----------'
|
||||||
|
*/
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Bootloader
|
||||||
|
Default bootloader is `atmel-dfu`.
|
||||||
|
Reboot to bootloader via magnetic switch next to icsp header.
|
||||||
|
Flash using regular dfu methods.
|
||||||
|
|
||||||
|
### Southpaw Extended 65 pin mappings
|
||||||
|
Taken from [kimera-config.json](https://github.com/kairyu/tkg/blob/master/keyboard/config/kimera-config.json)
|
||||||
|
|
||||||
|
"row_mapping": [ 2, 3, 4, 5, 6 ],
|
||||||
|
"col_mapping": [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ],
|
||||||
|
|
||||||
|
# RGB
|
||||||
|
- PIN C7
|
||||||
|
- Number of RGB LED 7
|
||||||
|
|
||||||
|
# Backlight
|
||||||
|
- PIN B5
|
||||||
|
|
||||||
|
# Capslock
|
||||||
|
- PIN B6
|
||||||
|
|
||||||
|
# Numlock
|
||||||
|
- PIN C6
|
||||||
|
|
||||||
|
## Assumptions
|
||||||
|
### Pin/Port mappings
|
||||||
|
- All cols are on the same IC
|
||||||
|
- All rows are on the same IC and port
|
||||||
|
- Pins mapped sequentially
|
||||||
|
- Each port only does row or column not a mixture of both
|
||||||
|
- No need to have complex port config
|
||||||
|
-
|
||||||
|
|
||||||
|
| ROW index | Kimera Pin | PCA9555 |
|
||||||
|
| ----------|------------|-------------------|
|
||||||
|
| 0 | 2 | IC1 Port 0 pin 1 |
|
||||||
|
| 1 | 3 | IC1 Port 0 pin 2 |
|
||||||
|
| 2 | 4 | IC1 Port 0 pin 3 |
|
||||||
|
| 3 | 5 | IC1 Port 0 pin 4 |
|
||||||
|
| 4 | 6 | IC1 Port 0 pin 5 |
|
||||||
|
|
||||||
|
- Safe enough to assume `row_index == pin`
|
||||||
|
|
||||||
|
|
||||||
|
| COL index | Kimera Pin | PCA9555 |
|
||||||
|
| ----------|------------|-------------------|
|
||||||
|
| 0 | 13 | IC1 Port 1 pin 4 |
|
||||||
|
| 1 | 14 | IC1 Port 1 pin 5 |
|
||||||
|
| 2 | 15 | IC1 Port 1 pin 6 |
|
||||||
|
| 3 | 16 | IC1 Port 1 pin 7 |
|
||||||
|
| 4 | 17 | IC2 Port 0 pin 0 |
|
||||||
|
| 5 | 18 | IC2 Port 0 pin 1 |
|
||||||
|
| 6 | 19 | IC2 Port 0 pin 2 |
|
||||||
|
| 7 | 20 | IC2 Port 0 pin 3 |
|
||||||
|
| 8 | 21 | IC2 Port 0 pin 4 |
|
||||||
|
| 9 | 22 | IC2 Port 0 pin 5 |
|
||||||
|
| 10 | 23 | IC2 Port 0 pin 6 |
|
||||||
|
| 11 | 24 | IC2 Port 0 pin 7 |
|
||||||
|
| 12 | 25 | IC2 Port 1 pin 0 |
|
||||||
|
| 13 | 26 | IC2 Port 1 pin 1 |
|
||||||
|
| 14 | 27 | IC2 Port 1 pin 2 |
|
||||||
|
| 15 | 28 | IC2 Port 1 pin 3 |
|
||||||
|
| 16 | 29 | IC2 Port 1 pin 4 |
|
||||||
|
| 17 | 30 | IC2 Port 1 pin 5 |
|
||||||
|
| 18 | 31 | IC2 Port 1 pin 6 |
|
||||||
|
|
||||||
|
- Need to read both ICs and corresponding port to compile the correct column data
|
||||||
|
- All pins are mapped sequentially
|
||||||
|
- maps to the usual practice of reading matrix columns
|
||||||
|
- Needs uint32_t to read 19 columns of data
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
[pca9555 datasheet](https://www.ti.com/lit/ds/symlink/pca9555.pdf)
|
||||||
|
|
||||||
|
- Other Kimera based boards with non sequential pin mappings, pins mapped across ICs, or mixed row/col configs will need more complicated `pin -> i2c_addr,port,pin` logic as well as rather more complex pin functions.
|
||||||
|
|
||||||
|
## Return to stock firmware
|
||||||
|
To return back to stock TMK firmware, use [programming guide provided by Reconsiderit](https://geekhack.org/index.php?topic=92344.msg2625784#msg2625784)
|
||||||
21
keyboards/switchplate/southpaw_65/info.json
Normal file
21
keyboards/switchplate/southpaw_65/info.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Southpaw Extended 65%",
|
||||||
|
"url": "https://geekhack.org/index.php?topic=92344.0",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 20,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"key_count": 91,
|
||||||
|
"layout": [{"label":"Num Lock", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"!", "x":5, "y":0}, {"label":"@", "x":6, "y":0}, {"label":"#", "x":7, "y":0}, {"label":"$", "x":8, "y":0}, {"label":"%", "x":9, "y":0}, {"label":"^", "x":10, "y":0}, {"label":"&", "x":11, "y":0}, {"label":"*", "x":12, "y":0}, {"label":"(", "x":13, "y":0}, {"label":")", "x":14, "y":0}, {"label":"_", "x":15, "y":0}, {"label":"+", "x":16, "y":0}, {"label":"Backspace", "x":17, "y":0}, {"label":"Backspace", "x":18, "y":0}, {"label":"Home", "x":19, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1}, {"label":"Tab", "x":4, "y":1, "w":1.5}, {"label":"Q", "x":5.5, "y":1}, {"label":"W", "x":6.5, "y":1}, {"label":"E", "x":7.5, "y":1}, {"label":"R", "x":8.5, "y":1}, {"label":"T", "x":9.5, "y":1}, {"label":"Y", "x":10.5, "y":1}, {"label":"U", "x":11.5, "y":1}, {"label":"I", "x":12.5, "y":1}, {"label":"O", "x":13.5, "y":1}, {"label":"P", "x":14.5, "y":1}, {"label":"{", "x":15.5, "y":1}, {"label":"}", "x":16.5, "y":1}, {"label":"|", "x":17.5, "y":1, "w":1.5}, {"label":"End", "x":19, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"+", "x":3, "y":2}, {"label":"Caps Lock", "x":4, "y":2, "w":1.75}, {"label":"A", "x":5.75, "y":2}, {"label":"S", "x":6.75, "y":2}, {"label":"D", "x":7.75, "y":2}, {"label":"F", "x":8.75, "y":2}, {"label":"G", "x":9.75, "y":2}, {"label":"H", "x":10.75, "y":2}, {"label":"J", "x":11.75, "y":2}, {"label":"K", "x":12.75, "y":2}, {"label":"L", "x":13.75, "y":2}, {"label":":", "x":14.75, "y":2}, {"label":"\"", "x":15.75, "y":2}, {"label":"~", "x":16.75, "y":2}, {"label":"Enter", "x":17.75, "y":2, "w":1.25}, {"label":"Page Up", "x":19, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Num Enter", "x":3, "y":3}, {"label":"LShift", "x":4, "y":3, "w":1.25}, {"label":"|", "x":5.25, "y":3}, {"label":"Z", "x":6.25, "y":3}, {"label":"X", "x":7.25, "y":3}, {"label":"C", "x":8.25, "y":3}, {"label":"V", "x":9.25, "y":3}, {"label":"B", "x":10.25, "y":3}, {"label":"N", "x":11.25, "y":3}, {"label":"M", "x":12.25, "y":3}, {"label":"<", "x":13.25, "y":3}, {"label":">", "x":14.25, "y":3}, {"label":"?", "x":15.25, "y":3}, {"label":"RShift", "x":16.25, "y":3, "w":1.75}, {"label":"Up", "x":18, "y":3}, {"label":"Page Down", "x":19, "y":3}, {"label":"0", "x":0, "y":4}, {"label":"0", "x":1, "y":4}, {"label":".", "x":2, "y":4}, {"label":"Num Enter", "x":3, "y":4}, {"label":"LCtrl", "x":4, "y":4, "w":1.25}, {"label":"Win", "x":5.25, "y":4, "w":1.25}, {"label":"LAlt", "x":6.5, "y":4, "w":1.25}, {"label":"Space", "x":7.75, "y":4, "w":6.25}, {"label":"RAlt", "x":14, "y":4}, {"label":"RCtrl", "x":15, "y":4}, {"label":"Fn0", "x":16, "y":4}, {"label":"Left", "x":17, "y":4}, {"label":"Down", "x":18, "y":4}, {"label":"Right", "x":19, "y":4}]
|
||||||
|
},
|
||||||
|
"LAYOUT_ansi": {
|
||||||
|
"key_count": 85,
|
||||||
|
"layout": [{"label":"Num Lock", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"!", "x":5, "y":0}, {"label":"@", "x":6, "y":0}, {"label":"#", "x":7, "y":0}, {"label":"$", "x":8, "y":0}, {"label":"%", "x":9, "y":0}, {"label":"^", "x":10, "y":0}, {"label":"&", "x":11, "y":0}, {"label":"*", "x":12, "y":0}, {"label":"(", "x":13, "y":0}, {"label":")", "x":14, "y":0}, {"label":"_", "x":15, "y":0}, {"label":"+", "x":16, "y":0}, {"label":"Backspace", "x":17, "y":0, "w":2}, {"label":"Home", "x":19, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1, "h":2}, {"label":"Tab", "x":4, "y":1, "w":1.5}, {"label":"Q", "x":5.5, "y":1}, {"label":"W", "x":6.5, "y":1}, {"label":"E", "x":7.5, "y":1}, {"label":"R", "x":8.5, "y":1}, {"label":"T", "x":9.5, "y":1}, {"label":"Y", "x":10.5, "y":1}, {"label":"U", "x":11.5, "y":1}, {"label":"I", "x":12.5, "y":1}, {"label":"O", "x":13.5, "y":1}, {"label":"P", "x":14.5, "y":1}, {"label":"{", "x":15.5, "y":1}, {"label":"}", "x":16.5, "y":1}, {"label":"|", "x":17.5, "y":1, "w":1.5}, {"label":"End", "x":19, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"Caps Lock", "x":4, "y":2, "w":1.75}, {"label":"A", "x":5.75, "y":2}, {"label":"S", "x":6.75, "y":2}, {"label":"D", "x":7.75, "y":2}, {"label":"F", "x":8.75, "y":2}, {"label":"G", "x":9.75, "y":2}, {"label":"H", "x":10.75, "y":2}, {"label":"J", "x":11.75, "y":2}, {"label":"K", "x":12.75, "y":2}, {"label":"L", "x":13.75, "y":2}, {"label":":", "x":14.75, "y":2}, {"label":"\"", "x":15.75, "y":2}, {"label":"Enter", "x":16.75, "y":2, "w":2.25}, {"label":"Page Up", "x":19, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Num Enter", "x":3, "y":3, "h":2}, {"label":"LShift", "x":4, "y":3, "w":2.25}, {"label":"Z", "x":6.25, "y":3}, {"label":"X", "x":7.25, "y":3}, {"label":"C", "x":8.25, "y":3}, {"label":"V", "x":9.25, "y":3}, {"label":"B", "x":10.25, "y":3}, {"label":"N", "x":11.25, "y":3}, {"label":"M", "x":12.25, "y":3}, {"label":"<", "x":13.25, "y":3}, {"label":">", "x":14.25, "y":3}, {"label":"?", "x":15.25, "y":3}, {"label":"RShift", "x":16.25, "y":3, "w":1.75}, {"label":"Up", "x":18, "y":3}, {"label":"Page Down", "x":19, "y":3}, {"label":"0", "x":0, "y":4, "w":2}, {"label":".", "x":2, "y":4}, {"label":"LCtrl", "x":4, "y":4, "w":1.25}, {"label":"Win", "x":5.25, "y":4, "w":1.25}, {"label":"LAlt", "x":6.5, "y":4, "w":1.25}, {"label":"Space", "x":7.75, "y":4, "w":6.25}, {"label":"RAlt", "x":14, "y":4}, {"label":"RCtrl", "x":15, "y":4}, {"label":"Fn0", "x":16, "y":4}, {"label":"Left", "x":17, "y":4}, {"label":"Down", "x":18, "y":4}, {"label":"Right", "x":19, "y":4}]
|
||||||
|
},
|
||||||
|
"LAYOUT_iso": {
|
||||||
|
"key_count": 86,
|
||||||
|
"layout": [{"label":"Num Lock", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"!", "x":5, "y":0}, {"label":"@", "x":6, "y":0}, {"label":"#", "x":7, "y":0}, {"label":"$", "x":8, "y":0}, {"label":"%", "x":9, "y":0}, {"label":"^", "x":10, "y":0}, {"label":"&", "x":11, "y":0}, {"label":"*", "x":12, "y":0}, {"label":"(", "x":13, "y":0}, {"label":")", "x":14, "y":0}, {"label":"_", "x":15, "y":0}, {"label":"+", "x":16, "y":0}, {"label":"Backspace", "x":17, "y":0, "w":2}, {"label":"Home", "x":19, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1, "h":2}, {"label":"Tab", "x":4, "y":1, "w":1.5}, {"label":"Q", "x":5.5, "y":1}, {"label":"W", "x":6.5, "y":1}, {"label":"E", "x":7.5, "y":1}, {"label":"R", "x":8.5, "y":1}, {"label":"T", "x":9.5, "y":1}, {"label":"Y", "x":10.5, "y":1}, {"label":"U", "x":11.5, "y":1}, {"label":"I", "x":12.5, "y":1}, {"label":"O", "x":13.5, "y":1}, {"label":"P", "x":14.5, "y":1}, {"label":"{", "x":15.5, "y":1}, {"label":"}", "x":16.5, "y":1}, {"label":"End", "x":19, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"Caps Lock", "x":4, "y":2, "w":1.75}, {"label":"A", "x":5.75, "y":2}, {"label":"S", "x":6.75, "y":2}, {"label":"D", "x":7.75, "y":2}, {"label":"F", "x":8.75, "y":2}, {"label":"G", "x":9.75, "y":2}, {"label":"H", "x":10.75, "y":2}, {"label":"J", "x":11.75, "y":2}, {"label":"K", "x":12.75, "y":2}, {"label":"L", "x":13.75, "y":2}, {"label":":", "x":14.75, "y":2}, {"label":"\"", "x":15.75, "y":2}, {"label":"~", "x":16.75, "y":2}, {"label":"Enter", "x":17.75, "y":1, "w":1.25, "h":2}, {"label":"Page Up", "x":19, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Num Enter", "x":3, "y":3, "h":2}, {"label":"LShift", "x":4, "y":3, "w":1.25}, {"label":"|", "x":5.25, "y":3}, {"label":"Z", "x":6.25, "y":3}, {"label":"X", "x":7.25, "y":3}, {"label":"C", "x":8.25, "y":3}, {"label":"V", "x":9.25, "y":3}, {"label":"B", "x":10.25, "y":3}, {"label":"N", "x":11.25, "y":3}, {"label":"M", "x":12.25, "y":3}, {"label":"<", "x":13.25, "y":3}, {"label":">", "x":14.25, "y":3}, {"label":"?", "x":15.25, "y":3}, {"label":"RShift", "x":16.25, "y":3, "w":1.75}, {"label":"Up", "x":18, "y":3}, {"label":"Page Down", "x":19, "y":3}, {"label":"0", "x":0, "y":4, "w":2}, {"label":".", "x":2, "y":4}, {"label":"LCtrl", "x":4, "y":4, "w":1.25}, {"label":"Win", "x":5.25, "y":4, "w":1.25}, {"label":"LAlt", "x":6.5, "y":4, "w":1.25}, {"label":"Space", "x":7.75, "y":4, "w":6.25}, {"label":"RAlt", "x":14, "y":4}, {"label":"RCtrl", "x":15, "y":4}, {"label":"Fn0", "x":16, "y":4}, {"label":"Left", "x":17, "y":4}, {"label":"Down", "x":18, "y":4}, {"label":"Right", "x":19, "y":4}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
31
keyboards/switchplate/southpaw_65/keymaps/default/keymap.c
Normal file
31
keyboards/switchplate/southpaw_65/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_all(
|
||||||
|
/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
|
||||||
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, 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_P7, KC_P8, KC_P9, KC_PPLS, 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_END,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬───────────┼─────────┤ */
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS, 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_PGUP,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_PENT, 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_PGDN,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
|
||||||
|
KC_P0, KC_P0, KC_PDOT, KC_PENT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
/* └─────────┴─────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
|
||||||
|
),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all(
|
||||||
|
/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
|
||||||
|
_______, _______, _______, _______, 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_INS,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴─────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, RESET, BL_TOGG, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬───────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, EEP_RST, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, KC_LSFT, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, KC_RSFT, _______, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, KC_LCTL, _______, KC_LALT, _______, KC_RALT, KC_RCTL, KC_TRNS, _______, _______, _______
|
||||||
|
/* └─────────┴─────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ansi(
|
||||||
|
/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
|
||||||
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, 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_HOME,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PPLS, 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_END,
|
||||||
|
/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_PENT, 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_PGDN,
|
||||||
|
/* ├─────────┴─────────┬─────────┤ ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
|
||||||
|
KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
|
||||||
|
),
|
||||||
|
|
||||||
|
[1] = LAYOUT_ansi(
|
||||||
|
/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
|
||||||
|
_______, _______, _______, _______, KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_INS,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, RESET, BL_TOGG, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */
|
||||||
|
_______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, EEP_RST, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, KC_LSFT, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, KC_RSFT, _______, _______,
|
||||||
|
/* ├─────────┴─────────┬─────────┤ ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
|
||||||
|
_______, _______, KC_LCTL, _______, KC_LALT, _______, KC_RALT, KC_RCTL, KC_TRNS, _______, _______, _______
|
||||||
|
/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_iso(
|
||||||
|
/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬───────────────────┬─────────┐ */
|
||||||
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, 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_HOME,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PPLS, 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_P4, KC_P5, KC_P6, 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_P1, KC_P2, KC_P3, KC_PENT, 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_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
|
||||||
|
),
|
||||||
|
|
||||||
|
[1] = LAYOUT_iso(
|
||||||
|
/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬───────────────────┬─────────┐ */
|
||||||
|
_______, _______, _______, _______, 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_INS,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, RESET, BL_TOGG, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬ ├─────────┤ */
|
||||||
|
_______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, EEP_RST, _______,
|
||||||
|
/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
|
||||||
|
_______, _______, _______, _______, KC_LSFT, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, KC_RSFT, _______, _______,
|
||||||
|
/* ├─────────┴─────────┼─────────┤ ├───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
|
||||||
|
_______, _______, KC_LCTL, _______, KC_LALT, _______, KC_RALT, KC_RCTL, KC_TRNS, _______, _______, _______
|
||||||
|
/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
|
||||||
|
)
|
||||||
|
};
|
||||||
95
keyboards/switchplate/southpaw_65/matrix.c
Normal file
95
keyboards/switchplate/southpaw_65/matrix.c
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
/* Copyright 2019
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <avr/io.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include "matrix.h"
|
||||||
|
#include "pca9555.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
|
// PCA9555 slave addresses
|
||||||
|
#define IC1 0x20
|
||||||
|
#define IC2 0x21
|
||||||
|
|
||||||
|
//_____Utility funcs___________________________________________________________
|
||||||
|
|
||||||
|
static void init_pins(void) {
|
||||||
|
// init all rows - IC1 port0 input
|
||||||
|
pca9555_set_config(IC1, PCA9555_PORT0, ALL_INPUT); // same as initial state
|
||||||
|
|
||||||
|
// init all cols high - IC2 all input
|
||||||
|
pca9555_set_config(IC1, PCA9555_PORT1, ALL_INPUT); // same as initial state
|
||||||
|
pca9555_set_config(IC2, PCA9555_PORT0, ALL_INPUT); // same as initial state
|
||||||
|
pca9555_set_config(IC2, PCA9555_PORT1, ALL_INPUT); // same as initial state
|
||||||
|
|
||||||
|
pca9555_set_output(IC1, PCA9555_PORT0, ALL_LOW);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void select_row(uint8_t row) {
|
||||||
|
// For the Southpaw Ext 65% pins 1-6 are used for the rows
|
||||||
|
uint8_t pin = row;
|
||||||
|
uint8_t mask = 2 << pin;
|
||||||
|
|
||||||
|
pca9555_set_config(IC1, PCA9555_PORT0, ALL_INPUT & (~mask));
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint32_t read_cols(void) {
|
||||||
|
//Read column inputs. Pins 13-31 are used. Split across both ICs but they are sequential
|
||||||
|
uint32_t state_1 = pca9555_readPins(IC1, PCA9555_PORT1);
|
||||||
|
uint32_t state_2 = pca9555_readPins(IC2, PCA9555_PORT0);
|
||||||
|
uint32_t state_3 = pca9555_readPins(IC2, PCA9555_PORT1);
|
||||||
|
|
||||||
|
uint32_t state = (((state_3 & 0b01111111) << 12) | (state_2 << 4) | ((state_1 & 0b11110000) >> 4));
|
||||||
|
return ~state;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) {
|
||||||
|
// Store last value of row prior to reading
|
||||||
|
matrix_row_t last_row_value = current_matrix[current_row];
|
||||||
|
|
||||||
|
// Clear data in matrix row
|
||||||
|
current_matrix[current_row] = 0;
|
||||||
|
|
||||||
|
// Select row and wait for row selection to stabilize
|
||||||
|
select_row(current_row);
|
||||||
|
// Skip the wait_us(30); as i2c is slow enough to debounce the io changes
|
||||||
|
|
||||||
|
current_matrix[current_row] = read_cols();
|
||||||
|
|
||||||
|
// No need to Unselect row as the next `select_row` will blank everything
|
||||||
|
|
||||||
|
return (last_row_value != current_matrix[current_row]);
|
||||||
|
}
|
||||||
|
|
||||||
|
//_____CUSTOM MATRIX IMPLEMENTATION____________________________________________________
|
||||||
|
|
||||||
|
void matrix_init_custom(void) {
|
||||||
|
pca9555_init(IC1);
|
||||||
|
pca9555_init(IC2);
|
||||||
|
|
||||||
|
init_pins();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||||
|
bool changed = false;
|
||||||
|
for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) {
|
||||||
|
changed |= read_cols_on_row(current_matrix, current_row);
|
||||||
|
}
|
||||||
|
return changed;
|
||||||
|
}
|
||||||
23
keyboards/switchplate/southpaw_65/readme.md
Normal file
23
keyboards/switchplate/southpaw_65/readme.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Southpaw Extended 65%
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Left Hand Number Pad Keyboard with 85 Keys & RGB LED Underglow
|
||||||
|
- Designed by Reconsiderit
|
||||||
|
- Up to 91 keys
|
||||||
|
- iso and ansi support
|
||||||
|
- Uses Kimera core
|
||||||
|
|
||||||
|
* Keyboard Maintainer: QMK Community
|
||||||
|
* Hardware Supported: Southpaw Extended 65%
|
||||||
|
* Hardware Availability: [Geekhack GB Thread](https://geekhack.org/index.php?topic=92344.0)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make switchplate/southpaw_65:default_ansi
|
||||||
|
|
||||||
|
Install examples:
|
||||||
|
|
||||||
|
make switchplate/southpaw_65:default_ansi:flash
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
41
keyboards/switchplate/southpaw_65/rules.mk
Normal file
41
keyboards/switchplate/southpaw_65/rules.mk
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
|
||||||
|
RGBLIGHT_ENABLE = yes # 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
|
||||||
|
LTO_ENABLE = yes
|
||||||
|
|
||||||
|
# custom matrix setup
|
||||||
|
CUSTOM_MATRIX = lite
|
||||||
|
|
||||||
|
VPATH += drivers/gpio
|
||||||
|
SRC += pca9555.c matrix.c
|
||||||
|
QUANTUM_LIB_SRC += i2c_master.c
|
||||||
30
keyboards/switchplate/southpaw_65/southpaw_65.c
Normal file
30
keyboards/switchplate/southpaw_65/southpaw_65.c
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/* Copyright 2019
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "southpaw_65.h"
|
||||||
|
|
||||||
|
void keyboard_pre_init_kb(void) {
|
||||||
|
setPinOutput(B6);
|
||||||
|
|
||||||
|
keyboard_pre_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
|
bool res = led_update_user(led_state);
|
||||||
|
if(res) {
|
||||||
|
writePin(B6, !led_state.caps_lock);
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
69
keyboards/switchplate/southpaw_65/southpaw_65.h
Normal file
69
keyboards/switchplate/southpaw_65/southpaw_65.h
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
/* Copyright 2019
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
#define ____ KC_NO
|
||||||
|
|
||||||
|
/* This a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
#define LAYOUT_all( \
|
||||||
|
K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K514, K119, \
|
||||||
|
K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219, \
|
||||||
|
K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319, \
|
||||||
|
K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419, \
|
||||||
|
K501, K502, K503, K504, K505, K506, K507, K510, K515, K516, K513, K517, K518, K519 \
|
||||||
|
) { \
|
||||||
|
{ K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \
|
||||||
|
{ K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219 }, \
|
||||||
|
{ K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319 }, \
|
||||||
|
{ K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419 }, \
|
||||||
|
{ K501, K502, K503, K504, K505, K506, K507, ____, ____, K510, ____, ____, K513, K514, K515, K516, K517, K518, K519 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_ansi( \
|
||||||
|
K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119, \
|
||||||
|
K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219, \
|
||||||
|
K301, K302, K303, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K318, K319, \
|
||||||
|
K401, K402, K403, K404, K405, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419, \
|
||||||
|
K501, K503, K505, K506, K507, K510, K515, K516, K513, K517, K518, K519 \
|
||||||
|
) { \
|
||||||
|
{ K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \
|
||||||
|
{ K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219 }, \
|
||||||
|
{ K301, K302, K303, ____, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, ____, K318, K319 }, \
|
||||||
|
{ K401, K402, K403, K404, K405, ____, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419 }, \
|
||||||
|
{ K501, ____, K503, ____, K505, K506, K507, ____, ____, K510, ____, ____, K513, ____, K515, K516, K517, K518, K519 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_iso( \
|
||||||
|
K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119, \
|
||||||
|
K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K219, \
|
||||||
|
K301, K302, K303, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319, \
|
||||||
|
K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419, \
|
||||||
|
K501, K503, K505, K506, K507, K510, K515, K516, K513, K517, K518, K519 \
|
||||||
|
) { \
|
||||||
|
{ K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \
|
||||||
|
{ K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, ____, K219 }, \
|
||||||
|
{ K301, K302, K303, ____, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319 }, \
|
||||||
|
{ K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419 }, \
|
||||||
|
{ K501, ____, K503, ____, K505, K506, K507, ____, ____, K510, ____, ____, K513, ____, K515, K516, K517, K518, K519 } \
|
||||||
|
}
|
||||||
31
keyboards/xelus/snap96/config.h
Normal file
31
keyboards/xelus/snap96/config.h
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
// USB Device descriptor parameter
|
||||||
|
#define VENDOR_ID 0x5845 // XE
|
||||||
|
#define PRODUCT_ID 0x5396 // Snap96
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Xelus
|
||||||
|
#define PRODUCT Snap96
|
||||||
|
#define DESCRIPTION Snap96
|
||||||
|
|
||||||
|
// key matrix size
|
||||||
|
#define MATRIX_ROWS 12
|
||||||
|
#define MATRIX_COLS 10
|
||||||
|
|
||||||
|
// key matrix pins
|
||||||
|
#define MATRIX_ROW_PINS { B2, B1, B0, C7, F6, F7, B3, D1, D2, D7, B6, C6 }
|
||||||
|
#define MATRIX_COL_PINS { E6, D5, B7, D0, F5, D3, B4, B5, D4, D6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
// COL2ROW or ROW2COL
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
// Set 0 if debouncing isn't needed
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
// Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
// Locking resynchronize hack
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
22
keyboards/xelus/snap96/keymaps/default/keymap.c
Normal file
22
keyboards/xelus/snap96/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// Default layout for Snap96
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_all(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_PSCR, KC_SLCK, KC_HOME, KC_END,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
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_P7, KC_P8, KC_P9, KC_PPLS,
|
||||||
|
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_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
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_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_LCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
2
keyboards/xelus/snap96/keymaps/via/config.h
Normal file
2
keyboards/xelus/snap96/keymaps/via/config.h
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// 3 layers or else it will not fit in EEPROM
|
||||||
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 3
|
||||||
31
keyboards/xelus/snap96/keymaps/via/keymap.c
Normal file
31
keyboards/xelus/snap96/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// VIA layout for Snap96
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_all(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_PSCR, KC_SLCK, KC_HOME, KC_END,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
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_P7, KC_P8, KC_P9, KC_PPLS,
|
||||||
|
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_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
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_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[2] = LAYOUT_all(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
1
keyboards/xelus/snap96/keymaps/via/rules.mk
Normal file
1
keyboards/xelus/snap96/keymaps/via/rules.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
13
keyboards/xelus/snap96/readme.md
Normal file
13
keyboards/xelus/snap96/readme.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Snap96
|
||||||
|
|
||||||
|
A 96 Keyboard which supports various layouts and is able to be "snapped" to smaller layouts.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [Xelus22](https://github.com/Xelus22)
|
||||||
|
* Hardware Supported: Snap96
|
||||||
|
* Hardware Availability: Custom Project
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make xelus/snap96:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
33
keyboards/xelus/snap96/rules.mk
Normal file
33
keyboards/xelus/snap96/rules.mk
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# 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 = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
|
||||||
|
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
|
||||||
|
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. - We have custom RGB underglow
|
||||||
|
|
||||||
1
keyboards/xelus/snap96/snap96.c
Normal file
1
keyboards/xelus/snap96/snap96.c
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#include "snap96.h"
|
||||||
25
keyboards/xelus/snap96/snap96.h
Normal file
25
keyboards/xelus/snap96/snap96.h
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT_all( \
|
||||||
|
K0000, K0001, K0002, K0003, K0004, K0005, K0006, K0007, K0008, K0009, K0600, K0601, K0602, K0603, K0604, K0605, K0606, K0607, K0608, \
|
||||||
|
K0100, K0101, K0102, K0103, K0104, K0105, K0106, K0107, K0108, K0109, K0700, K0701, K0702, K0703, K0704, K0705, K0706, K0707, K0708, \
|
||||||
|
K0200, K0201, K0202, K0203, K0204, K0205, K0206, K0207, K0208, K0209, K0800, K0801, K0802, K0804, K0805, K0806, K0807, K0808, \
|
||||||
|
K0300, K0301, K0302, K0303, K0304, K0305, K0306, K0307, K0308, K0309, K0900, K0901, K0903, K0905, K0906, K0907, K0908, \
|
||||||
|
K0400, K0401, K0402, K0403, K0404, K0405, K0406, K0407, K0408, K0409, K1000, K1001, K1003, K1004, K1005, K1006, K1007, K1008, \
|
||||||
|
K0500, K0501, K0502, K0505, K0506, K0509, K1100, K1101, K1102, K1103, K1104, K1105, K1106, K1107, K1108 \
|
||||||
|
) { \
|
||||||
|
{ K0000, K0001, K0002, K0003, K0004, K0005, K0006, K0007, K0008, K0009 }, \
|
||||||
|
{ K0100, K0101, K0102, K0103, K0104, K0105, K0106, K0107, K0108, K0109 }, \
|
||||||
|
{ K0200, K0201, K0202, K0203, K0204, K0205, K0206, K0207, K0208, K0209 }, \
|
||||||
|
{ K0300, K0301, K0302, K0303, K0304, K0305, K0306, K0307, K0308, K0309 }, \
|
||||||
|
{ K0400, K0401, K0402, K0403, K0404, K0405, K0406, K0407, K0408, K0409 }, \
|
||||||
|
{ K0500, K0501, K0502, KC_NO, KC_NO, K0505, K0506, KC_NO, KC_NO, K0509 }, \
|
||||||
|
{ K0600, K0601, K0602, K0603, K0604, K0605, K0606, K0607, K0608, KC_NO }, \
|
||||||
|
{ K0700, K0701, K0702, K0703, K0704, K0705, K0706, K0707, K0708, KC_NO }, \
|
||||||
|
{ K0800, K0801, K0802, KC_NO, K0804, K0805, K0806, K0807, K0808, KC_NO }, \
|
||||||
|
{ K0900, K0901, KC_NO, K0903, KC_NO, K0905, K0906, K0907, K0908, KC_NO }, \
|
||||||
|
{ K1000, K1001, KC_NO, K1003, K1004, K1005, K1006, K1007, K1008, KC_NO }, \
|
||||||
|
{ K1100, K1101, K1102, K1103, K1104, K1105, K1106, K1107, K1108, KC_NO } \
|
||||||
|
}
|
||||||
33
layouts/community/75_ansi/spidey3/keymap.c
Normal file
33
layouts/community/75_ansi/spidey3/keymap.c
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#include "spidey3.h"
|
||||||
|
|
||||||
|
#define SETTINGS A(S(KC_S))
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
// Linux / Win layout
|
||||||
|
[_BASE] = LAYOUT_75_ansi(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, SETTINGS, KC_INS, KC_DEL,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_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(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
// OSX layout
|
||||||
|
[_OSX] = LAYOUT_75_ansi(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_EJCT, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, KC_LALT, KC_LGUI, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
// FN
|
||||||
|
[_FN] = LAYOUT_75_ansi(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PWR,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, X_BUL, _______, _______, X_DASH, _______, RESET, EEP_RST,
|
||||||
|
_______, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, RGB_SPD, RGB_SPI, VLK_TOG, _______, _______, KC_VOLU,
|
||||||
|
_______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_G, RGB_M_T, SPI_LNX, _______, _______, _______, KC_VOLD,
|
||||||
|
_______, SPI_GLO, _______, SPI_WIN, _______, _______, _______, SPI_OSX, X(LARR), X(RARR), DEBUG, _______, KC_BRIU, KC_MUTE,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_BRID, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
14
layouts/community/75_ansi/spidey3/readme.md
Normal file
14
layouts/community/75_ansi/spidey3/readme.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Copyright 2020 Joshua Diamond josh@windowoffire.com @spidey3
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
15
layouts/community/75_ansi/spidey3/rules.mk
Normal file
15
layouts/community/75_ansi/spidey3/rules.mk
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Build Options
|
||||||
|
# comment out to disable the options.
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
AUDIO_ENABLE = no
|
||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
UNICODEMAP_ENABLE = yes
|
||||||
|
VELOCIKEY_ENABLE = yes
|
||||||
173
quantum/keymap_extras/keymap_czech.h
Normal file
173
quantum/keymap_extras/keymap_czech.h
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
/* Copyright 2020
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "keymap.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ; │ + │ ě │ š │ č │ ř │ ž │ ý │ á │ í │ é │ = │ ´ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ Q │ W │ E │ R │ T │ Z │ U │ I │ O │ P │ ú │ ) │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ů │ § │ ¨ │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ \ │ Y │ X │ C │ V │ B │ N │ M │ , │ . │ - │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define CZ_SCLN KC_GRV // ;
|
||||||
|
#define CZ_PLUS KC_1 // +
|
||||||
|
#define CZ_ECAR KC_2 // ě
|
||||||
|
#define CZ_SCAR KC_3 // š
|
||||||
|
#define CZ_CCAR KC_4 // č
|
||||||
|
#define CZ_RCAR KC_5 // ř
|
||||||
|
#define CZ_ZCAR KC_6 // ž
|
||||||
|
#define CZ_YACU KC_7 // ý
|
||||||
|
#define CZ_AACU KC_8 // á
|
||||||
|
#define CZ_IACU KC_9 // í
|
||||||
|
#define CZ_EACU KC_0 // é
|
||||||
|
#define CZ_EQL KC_MINS // =
|
||||||
|
#define CZ_ACUT KC_EQL // ´ (dead)
|
||||||
|
// Row 2
|
||||||
|
#define CZ_Q KC_Q // Q
|
||||||
|
#define CZ_W KC_W // W
|
||||||
|
#define CZ_E KC_E // E
|
||||||
|
#define CZ_R KC_R // R
|
||||||
|
#define CZ_T KC_T // T
|
||||||
|
#define CZ_Z KC_Y // Z
|
||||||
|
#define CZ_U KC_U // U
|
||||||
|
#define CZ_I KC_I // I
|
||||||
|
#define CZ_O KC_O // O
|
||||||
|
#define CZ_P KC_P // P
|
||||||
|
#define CZ_UACU KC_LBRC // ú
|
||||||
|
#define CZ_RPRN KC_RBRC // )
|
||||||
|
// Row 3
|
||||||
|
#define CZ_A KC_A // A
|
||||||
|
#define CZ_S KC_S // S
|
||||||
|
#define CZ_D KC_D // D
|
||||||
|
#define CZ_F KC_F // F
|
||||||
|
#define CZ_G KC_G // G
|
||||||
|
#define CZ_H KC_H // H
|
||||||
|
#define CZ_J KC_J // J
|
||||||
|
#define CZ_K KC_K // K
|
||||||
|
#define CZ_L KC_L // L
|
||||||
|
#define CZ_URNG KC_SCLN // ů
|
||||||
|
#define CZ_SECT KC_QUOT // §
|
||||||
|
#define CZ_DIAE KC_NUHS // ¨ (dead)
|
||||||
|
// Row 4
|
||||||
|
#define CZ_BSLS KC_NUBS // (backslash)
|
||||||
|
#define CZ_Y KC_Z // Y
|
||||||
|
#define CZ_X KC_X // X
|
||||||
|
#define CZ_C KC_C // C
|
||||||
|
#define CZ_V KC_V // V
|
||||||
|
#define CZ_B KC_B // B
|
||||||
|
#define CZ_N KC_N // N
|
||||||
|
#define CZ_M KC_M // M
|
||||||
|
#define CZ_COMM KC_COMM // ,
|
||||||
|
#define CZ_DOT KC_DOT // .
|
||||||
|
#define CZ_MINS KC_SLSH // -
|
||||||
|
|
||||||
|
/* Shifted symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ° │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ % │ ˇ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ / │ ( │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ " │ ! │ ' │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ | │ │ │ │ │ │ │ │ ; │ : │ _ │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define CZ_RNGA S(CZ_SCLN) // ° (dead)
|
||||||
|
#define CZ_1 S(CZ_PLUS) // 1
|
||||||
|
#define CZ_2 S(CZ_ECAR) // 2
|
||||||
|
#define CZ_3 S(CZ_SCAR) // 3
|
||||||
|
#define CZ_4 S(CZ_CCAR) // 4
|
||||||
|
#define CZ_5 S(CZ_RCAR) // 5
|
||||||
|
#define CZ_6 S(CZ_ZCAR) // 6
|
||||||
|
#define CZ_7 S(CZ_YACU) // 7
|
||||||
|
#define CZ_8 S(CZ_AACU) // 8
|
||||||
|
#define CZ_9 S(CZ_IACU) // 9
|
||||||
|
#define CZ_0 S(CZ_EACU) // 0
|
||||||
|
#define CZ_PERC S(CZ_PLUS) // %
|
||||||
|
#define CZ_CARN S(CZ_ACUT) // ˇ (dead)
|
||||||
|
// Row 2
|
||||||
|
#define CZ_SLSH S(CZ_UACU) // /
|
||||||
|
#define CZ_LPRN S(CZ_RPRN) // (
|
||||||
|
// Row 3
|
||||||
|
#define CZ_DQUO S(CZ_URNG) // "
|
||||||
|
#define CZ_EXLM S(CZ_SECT) // !
|
||||||
|
#define CZ_QUOT S(CZ_DIAE) // '
|
||||||
|
// Row 4
|
||||||
|
#define CZ_PIPE S(CZ_BSLS) // |
|
||||||
|
#define CZ_SCLN S(CZ_COMM) // ;
|
||||||
|
#define CZ_COLN S(CZ_DOT) // :
|
||||||
|
#define CZ_UNDS S(CZ_MINS) // _
|
||||||
|
|
||||||
|
/* AltGr symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ │ ~ │ │ ^ │ ˘ │ │ ˛ │ ` │ ˙ │ │ ˝ │ │ ¸ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ € │ │ │ │ │ │ │ │ ÷ │ × │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ │ đ │ Đ │ [ │ ] │ │ │ ł │ Ł │ $ │ ß │ ¤ │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ │ │ # │ & │ @ │ { │ } │ │ < │ > │ * │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define CZ_TILD ALGR(CZ_PLUS) // ~
|
||||||
|
#define CZ_CIRC ALGR(CZ_SCAR) // ^ (dead)
|
||||||
|
#define CZ_BREV ALGR(CZ_CCAR) // ˘ (dead)
|
||||||
|
#define CZ_OGON ALGR(CZ_ZCAR) // ˛ (dead)
|
||||||
|
#define CZ_GRV ALGR(CZ_YACU) // ` (dead)
|
||||||
|
#define CZ_DOTA ALGR(CZ_AACU) // ˙ (dead)
|
||||||
|
#define CZ_DACU ALGR(CZ_EACU) // ˝ (dead)
|
||||||
|
#define CZ_CEDL ALGR(CZ_ACUT) // ¸ (dead)
|
||||||
|
// Row 2
|
||||||
|
#define CZ_EURO ALGR(CZ_E) // €
|
||||||
|
#define CZ_DIV ALGR(CZ_UACU) // ÷
|
||||||
|
#define CZ_MUL ALGR(CZ_RPRN) // ×
|
||||||
|
// Row 3
|
||||||
|
#define CZ_LDST ALGR(CZ_S) // đ
|
||||||
|
#define CZ_CDST ALGR(CZ_D) // Đ
|
||||||
|
#define CZ_LBRC ALGR(CZ_F) // [
|
||||||
|
#define CZ_RBRC ALGR(CZ_G) // ]
|
||||||
|
#define CZ_LLST ALGR(CZ_K) // ł
|
||||||
|
#define CZ_CLST ALGR(CZ_L) // Ł
|
||||||
|
#define CZ_DLR ALGR(CZ_URNG) // $
|
||||||
|
#define CZ_SS ALGR(CZ_SECT) // ß
|
||||||
|
#define CZ_CURR ALGR(CZ_DIAE) // ¤
|
||||||
|
// Row 4
|
||||||
|
#define CZ_HASH ALGR(CZ_X) // #
|
||||||
|
#define CZ_AMPR ALGR(CZ_C) // &
|
||||||
|
#define CZ_AT ALGR(CZ_V) // @
|
||||||
|
#define CZ_LCBR ALGR(CZ_B) // {
|
||||||
|
#define CZ_RCBR ALGR(CZ_N) // }
|
||||||
|
#define CZ_LABK ALGR(CZ_COMM) // <
|
||||||
|
#define CZ_RABK ALGR(CZ_DOT) // >
|
||||||
|
#define CZ_ASTR ALGR(CZ_MINS) // *
|
||||||
153
quantum/keymap_extras/keymap_icelandic.h
Normal file
153
quantum/keymap_extras/keymap_icelandic.h
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
/* Copyright 2020
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "keymap.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ° │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ Ö │ - │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Ð │ ' │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Æ │ ´ │ + │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ < │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ Þ │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define IS_RNGA KC_GRV // ° (dead)
|
||||||
|
#define IS_1 KC_1 // 1
|
||||||
|
#define IS_2 KC_2 // 2
|
||||||
|
#define IS_3 KC_3 // 3
|
||||||
|
#define IS_4 KC_4 // 4
|
||||||
|
#define IS_5 KC_5 // 5
|
||||||
|
#define IS_6 KC_6 // 6
|
||||||
|
#define IS_7 KC_7 // 7
|
||||||
|
#define IS_8 KC_8 // 8
|
||||||
|
#define IS_9 KC_9 // 9
|
||||||
|
#define IS_0 KC_0 // 0
|
||||||
|
#define IS_ODIA KC_MINS // Ö
|
||||||
|
#define IS_MINS KC_EQL // -
|
||||||
|
// Row 2
|
||||||
|
#define IS_Q KC_Q // Q
|
||||||
|
#define IS_W KC_W // W
|
||||||
|
#define IS_E KC_E // E
|
||||||
|
#define IS_R KC_R // R
|
||||||
|
#define IS_T KC_T // T
|
||||||
|
#define IS_Y KC_Y // Y
|
||||||
|
#define IS_U KC_U // U
|
||||||
|
#define IS_I KC_I // I
|
||||||
|
#define IS_O KC_O // O
|
||||||
|
#define IS_P KC_P // P
|
||||||
|
#define IS_ETH KC_LBRC // Ð
|
||||||
|
#define IS_QUOT KC_RBRC // '
|
||||||
|
// Row 3
|
||||||
|
#define IS_A KC_A // A
|
||||||
|
#define IS_S KC_S // S
|
||||||
|
#define IS_D KC_D // D
|
||||||
|
#define IS_F KC_F // F
|
||||||
|
#define IS_G KC_G // G
|
||||||
|
#define IS_H KC_H // H
|
||||||
|
#define IS_J KC_J // J
|
||||||
|
#define IS_K KC_K // K
|
||||||
|
#define IS_L KC_L // L
|
||||||
|
#define IS_AE KC_SCLN // Æ
|
||||||
|
#define IS_ACUT KC_QUOT // ´ (dead)
|
||||||
|
#define IS_PLUS KC_NUHS // +
|
||||||
|
// Row 4
|
||||||
|
#define IS_LABK KC_NUBS // <
|
||||||
|
#define IS_Z KC_Z // Z
|
||||||
|
#define IS_X KC_X // X
|
||||||
|
#define IS_C KC_C // C
|
||||||
|
#define IS_V KC_V // V
|
||||||
|
#define IS_B KC_B // B
|
||||||
|
#define IS_N KC_N // N
|
||||||
|
#define IS_M KC_M // M
|
||||||
|
#define IS_COMM KC_COMM // ,
|
||||||
|
#define IS_DOT KC_DOT // .
|
||||||
|
#define IS_THRN KC_SLSH // Þ
|
||||||
|
|
||||||
|
/* Shifted symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ¨ │ ! │ " │ # │ $ │ % │ & │ / │ ( │ ) │ = │ │ _ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ ? │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ * │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ > │ │ │ │ │ │ │ │ ; │ : │ │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define IS_DIAE S(IS_RNGA) // ¨ (dead)
|
||||||
|
#define IS_EXLM S(IS_1) // !
|
||||||
|
#define IS_DQUO S(IS_2) // "
|
||||||
|
#define IS_HASH S(IS_3) // #
|
||||||
|
#define IS_DLR S(IS_4) // $
|
||||||
|
#define IS_PERC S(IS_5) // %
|
||||||
|
#define IS_AMPR S(IS_6) // &
|
||||||
|
#define IS_SLSH S(IS_7) // /
|
||||||
|
#define IS_LPRN S(IS_8) // (
|
||||||
|
#define IS_RPRN S(IS_9) // )
|
||||||
|
#define IS_EQL S(IS_0) // =
|
||||||
|
#define IS_UNDS S(IS_MINS) // _
|
||||||
|
// Row 2
|
||||||
|
#define IS_QUES S(IS_QUOT) // ?
|
||||||
|
// Row 3
|
||||||
|
#define IS_ASTR S(IS_PLUS) // *
|
||||||
|
// Row 4
|
||||||
|
#define IS_RABK S(IS_LABK) // >
|
||||||
|
#define IS_SCLN S(IS_COMM) // ;
|
||||||
|
#define IS_COLN S(IS_DOT) // :
|
||||||
|
|
||||||
|
/* AltGr symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ° │ │ │ │ │ │ │ { │ [ │ ] │ } │ \ │ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ @ │ │ € │ │ │ │ │ │ │ │ │ ~ │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ ^ │ ` │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ | │ │ │ │ │ │ │ µ │ │ │ │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define IS_DEG ALGR(IS_RNGA) // °
|
||||||
|
#define IS_LCBR ALGR(IS_7) // {
|
||||||
|
#define IS_LBRC ALGR(IS_8) // [
|
||||||
|
#define IS_RBRC ALGR(IS_9) // ]
|
||||||
|
#define IS_RCBR ALGR(IS_0) // }
|
||||||
|
#define IS_BSLS ALGR(IS_ODIA) // (backslash)
|
||||||
|
// Row 2
|
||||||
|
#define IS_AT ALGR(IS_Q) // @
|
||||||
|
#define IS_EURO ALGR(IS_E) // €
|
||||||
|
#define IS_TILD ALGR(IS_QUOT) // ~
|
||||||
|
// Row 3
|
||||||
|
#define IS_CIRC ALGR(IS_ACUT) // ^ (dead)
|
||||||
|
#define IS_GRV ALGR(IS_PLUS) // ` (dead)
|
||||||
|
// Row 4
|
||||||
|
#define IS_PIPE ALGR(IS_LABK) // |
|
||||||
|
#define IS_MICR ALGR(IS_M) // µ
|
||||||
152
quantum/keymap_extras/keymap_irish.h
Normal file
152
quantum/keymap_extras/keymap_irish.h
Normal file
@@ -0,0 +1,152 @@
|
|||||||
|
/* Copyright 2020
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "keymap.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define IE_GRV KC_GRV // `
|
||||||
|
#define IE_1 KC_1 // 1
|
||||||
|
#define IE_2 KC_2 // 2
|
||||||
|
#define IE_3 KC_3 // 3
|
||||||
|
#define IE_4 KC_4 // 4
|
||||||
|
#define IE_5 KC_5 // 5
|
||||||
|
#define IE_6 KC_6 // 6
|
||||||
|
#define IE_7 KC_7 // 7
|
||||||
|
#define IE_8 KC_8 // 8
|
||||||
|
#define IE_9 KC_9 // 9
|
||||||
|
#define IE_0 KC_0 // 0
|
||||||
|
#define IE_MINS KC_MINS // -
|
||||||
|
#define IE_EQL KC_EQL // =
|
||||||
|
// Row 2
|
||||||
|
#define IE_Q KC_Q // Q
|
||||||
|
#define IE_W KC_W // W
|
||||||
|
#define IE_E KC_E // E
|
||||||
|
#define IE_R KC_R // R
|
||||||
|
#define IE_T KC_T // T
|
||||||
|
#define IE_Y KC_Y // Y
|
||||||
|
#define IE_U KC_U // U
|
||||||
|
#define IE_I KC_I // I
|
||||||
|
#define IE_O KC_O // O
|
||||||
|
#define IE_P KC_P // P
|
||||||
|
#define IE_LBRC KC_LBRC // [
|
||||||
|
#define IE_RBRC KC_RBRC // ]
|
||||||
|
// Row 3
|
||||||
|
#define IE_A KC_A // A
|
||||||
|
#define IE_S KC_S // S
|
||||||
|
#define IE_D KC_D // D
|
||||||
|
#define IE_F KC_F // F
|
||||||
|
#define IE_G KC_G // G
|
||||||
|
#define IE_H KC_H // H
|
||||||
|
#define IE_J KC_J // J
|
||||||
|
#define IE_K KC_K // K
|
||||||
|
#define IE_L KC_L // L
|
||||||
|
#define IE_SCLN KC_SCLN // ;
|
||||||
|
#define IE_QUOT KC_QUOT // '
|
||||||
|
#define IE_HASH KC_NUHS // #
|
||||||
|
// Row 4
|
||||||
|
#define IE_BSLS KC_NUBS // (backslash)
|
||||||
|
#define IE_Z KC_Z // Z
|
||||||
|
#define IE_X KC_X // X
|
||||||
|
#define IE_C KC_C // C
|
||||||
|
#define IE_V KC_V // V
|
||||||
|
#define IE_B KC_B // B
|
||||||
|
#define IE_N KC_N // N
|
||||||
|
#define IE_M KC_M // M
|
||||||
|
#define IE_COMM KC_COMM // ,
|
||||||
|
#define IE_DOT KC_DOT // .
|
||||||
|
#define IE_SLSH KC_SLSH // /
|
||||||
|
|
||||||
|
/* Shifted symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ¬ │ ! │ " │ £ │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ : │ @ │ ~ │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ | │ │ │ │ │ │ │ │ < │ > │ ? │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define IE_NOT S(IE_GRV) // ¬
|
||||||
|
#define IE_EXLM S(IE_1) // !
|
||||||
|
#define IE_DQUO S(IE_2) // "
|
||||||
|
#define IE_PND S(IE_3) // £
|
||||||
|
#define IE_DLR S(IE_4) // $
|
||||||
|
#define IE_PERC S(IE_5) // %
|
||||||
|
#define IE_CIRC S(IE_6) // ^
|
||||||
|
#define IE_AMPR S(IE_7) // &
|
||||||
|
#define IE_ASTR S(IE_8) // *
|
||||||
|
#define IE_LPRN S(IE_9) // (
|
||||||
|
#define IE_RPRN S(IE_0) // )
|
||||||
|
#define IE_UNDS S(IE_MINS) // _
|
||||||
|
#define IE_PLUS S(IE_EQL) // +
|
||||||
|
// Row 2
|
||||||
|
#define IE_LCBR S(IE_LBRC) // {
|
||||||
|
#define IE_RCBR S(IE_RBRC) // }
|
||||||
|
// Row 3
|
||||||
|
#define IE_COLN S(IE_SCLN) // :
|
||||||
|
#define IE_AT S(IE_QUOT) // @
|
||||||
|
#define IE_TILD S(IE_HASH) // ~
|
||||||
|
// Row 4
|
||||||
|
#define IE_PIPE S(IE_BSLS) // |
|
||||||
|
#define IE_LABK S(IE_COMM) // <
|
||||||
|
#define IE_RABK S(IE_DOT) // >
|
||||||
|
#define IE_QUES S(IE_SLSH) // ?
|
||||||
|
|
||||||
|
/* AltGr symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ¦ │ │ │ │ € │ │ │ │ │ │ │ │ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ É │ │ │ │ Ú │ Í │ Ó │ │ │ │ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
|
* │ │ Á │ │ │ │ │ │ │ │ │ │ ´ │ │ │
|
||||||
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define IE_BRKP ALGR(IE_GRV) // ¦
|
||||||
|
#define IE_EURO ALGR(IE_4) // €
|
||||||
|
// Row 2
|
||||||
|
#define IE_EACU ALGR(IE_E) // É
|
||||||
|
#define IE_UACU ALGR(IE_U) // Ú
|
||||||
|
#define IE_IACU ALGR(IE_I) // Í
|
||||||
|
#define IE_OACU ALGR(IE_O) // Ó
|
||||||
|
// Row 3
|
||||||
|
#define IE_AACU ALGR(IE_A) // Á
|
||||||
|
#define IE_ACUT ALGR(IE_QUOT) // ´ (dead)
|
||||||
@@ -22,15 +22,15 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
* │ \ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ ' │ « │ │
|
* │ \ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ ' │ « │ │
|
||||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
* │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ + │ ´ │ │
|
* │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ + │ ´ │ │
|
||||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ç │ º │ ~ │ │
|
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ç │ º │ ~ │ │
|
||||||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
* │ │ < │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ - │ │
|
* │ │ < │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ - │ │
|
||||||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
* │ │ │ │ │ │ │ │ │
|
* │ │ │ │ │ │ │ │ │
|
||||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
*/
|
*/
|
||||||
// Row 1
|
// Row 1
|
||||||
@@ -88,15 +88,15 @@
|
|||||||
|
|
||||||
/* Shifted symbols
|
/* Shifted symbols
|
||||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
* │ | │ ! │ " │ # │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ » │ │
|
* │ | │ ! │ " │ # │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ » │ │
|
||||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
* │ │ │ │ │ │ │ │ │ │ │ │ * │ ` │ │
|
* │ │ │ │ │ │ │ │ │ │ │ │ * │ ` │ │
|
||||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
* │ │ │ │ │ │ │ │ │ │ │ │ ª │ ^ │ │
|
* │ │ │ │ │ │ │ │ │ │ │ │ ª │ ^ │ │
|
||||||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
* │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │
|
* │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │
|
||||||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
* │ │ │ │ │ │ │ │ │
|
* │ │ │ │ │ │ │ │ │
|
||||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
*/
|
*/
|
||||||
// Row 1
|
// Row 1
|
||||||
@@ -127,15 +127,15 @@
|
|||||||
|
|
||||||
/* AltGr symbols
|
/* AltGr symbols
|
||||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
* │ │ │ @ │ £ │ § │ │ │ { │ [ │ ] │ } │ │ │ │
|
* │ │ │ @ │ £ │ § │ │ │ { │ [ │ ] │ } │ │ │ │
|
||||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
* │ │ │ │ € │ │ │ │ │ │ │ │ ¨ │ │ │
|
* │ │ │ │ € │ │ │ │ │ │ │ │ ¨ │ │ │
|
||||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
* │ │ │ │ │ │ │ │ │
|
* │ │ │ │ │ │ │ │ │
|
||||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
*/
|
*/
|
||||||
// Row 1
|
// Row 1
|
||||||
|
|||||||
@@ -140,15 +140,15 @@
|
|||||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
*/
|
*/
|
||||||
// Row 1
|
// Row 1
|
||||||
#define UK_BRKP ALGR(UK_GRV) // ¦
|
#define UK_BRKP ALGR(UK_GRV) // ¦
|
||||||
#define UK_EURO ALGR(UK_4) // €
|
#define UK_EURO ALGR(UK_4) // €
|
||||||
// Row 2
|
// Row 2
|
||||||
#define UK_EACU ALGR(KC_E) // É
|
#define UK_EACU ALGR(KC_E) // É
|
||||||
#define UK_UACU ALGR(KC_U) // Ú
|
#define UK_UACU ALGR(KC_U) // Ú
|
||||||
#define UK_IACU ALGR(KC_I) // Í
|
#define UK_IACU ALGR(KC_I) // Í
|
||||||
#define UK_OACU ALGR(KC_O) // Ó
|
#define UK_OACU ALGR(KC_O) // Ó
|
||||||
// Row 3
|
// Row 3
|
||||||
#define UK_AACU ALGR(KC_A) // Á
|
#define UK_AACU ALGR(KC_A) // Á
|
||||||
|
|
||||||
// DEPRECATED
|
// DEPRECATED
|
||||||
#define UK_ESC KC_ESC
|
#define UK_ESC KC_ESC
|
||||||
|
|||||||
206
quantum/keymap_extras/keymap_us_international.h
Normal file
206
quantum/keymap_extras/keymap_us_international.h
Normal file
@@ -0,0 +1,206 @@
|
|||||||
|
/* Copyright 2020
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "keymap.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||||
|
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ │
|
||||||
|
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||||
|
* │ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ │
|
||||||
|
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define US_GRV KC_GRV // ` (dead)
|
||||||
|
#define US_1 KC_1 // 1
|
||||||
|
#define US_2 KC_2 // 2
|
||||||
|
#define US_3 KC_3 // 3
|
||||||
|
#define US_4 KC_4 // 4
|
||||||
|
#define US_5 KC_5 // 5
|
||||||
|
#define US_6 KC_6 // 6
|
||||||
|
#define US_7 KC_7 // 7
|
||||||
|
#define US_8 KC_8 // 8
|
||||||
|
#define US_9 KC_9 // 9
|
||||||
|
#define US_0 KC_0 // 0
|
||||||
|
#define US_MINS KC_MINS // -
|
||||||
|
#define US_EQL KC_EQL // =
|
||||||
|
// Row 2
|
||||||
|
#define US_Q KC_Q // Q
|
||||||
|
#define US_W KC_W // W
|
||||||
|
#define US_E KC_E // E
|
||||||
|
#define US_R KC_R // R
|
||||||
|
#define US_T KC_T // T
|
||||||
|
#define US_Y KC_Y // Y
|
||||||
|
#define US_U KC_U // U
|
||||||
|
#define US_I KC_I // I
|
||||||
|
#define US_O KC_O // O
|
||||||
|
#define US_P KC_P // P
|
||||||
|
#define US_LBRC KC_LBRC // [
|
||||||
|
#define US_RBRC KC_LBRC // ]
|
||||||
|
#define US_BSLS KC_BSLS // (backslash)
|
||||||
|
// Row 3
|
||||||
|
#define US_A KC_A // A
|
||||||
|
#define US_S KC_S // S
|
||||||
|
#define US_D KC_D // D
|
||||||
|
#define US_F KC_F // F
|
||||||
|
#define US_G KC_G // G
|
||||||
|
#define US_H KC_H // H
|
||||||
|
#define US_J KC_J // J
|
||||||
|
#define US_K KC_K // K
|
||||||
|
#define US_L KC_L // L
|
||||||
|
#define US_SCLN KC_SCLN // ;
|
||||||
|
#define US_QUOT KC_QUOT // ' (dead)
|
||||||
|
// Row 4
|
||||||
|
#define US_Z KC_Z // Z
|
||||||
|
#define US_X KC_X // X
|
||||||
|
#define US_C KC_C // C
|
||||||
|
#define US_V KC_V // V
|
||||||
|
#define US_B KC_B // B
|
||||||
|
#define US_N KC_N // N
|
||||||
|
#define US_M KC_M // M
|
||||||
|
#define US_COMM KC_COMM // ,
|
||||||
|
#define US_DOT KC_DOT // .
|
||||||
|
#define US_SLSH KC_SLSH // /
|
||||||
|
|
||||||
|
/* Shifted symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ | │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ : │ " │ │
|
||||||
|
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ < │ > │ ? │ │
|
||||||
|
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define US_TILD S(US_GRV) // ~ (dead)
|
||||||
|
#define US_EXLM S(US_1) // !
|
||||||
|
#define US_AT S(US_2) // "
|
||||||
|
#define US_HASH S(US_3) // #
|
||||||
|
#define US_DLR S(US_4) // $
|
||||||
|
#define US_PERC S(US_5) // %
|
||||||
|
#define US_CIRC S(US_6) // ^
|
||||||
|
#define US_AMPR S(US_7) // &
|
||||||
|
#define US_ASTR S(US_8) // *
|
||||||
|
#define US_LPRN S(US_9) // (
|
||||||
|
#define US_RPRN S(US_0) // )
|
||||||
|
#define US_UNDS S(US_MINS) // _
|
||||||
|
#define US_PLUS S(US_EQL) // +
|
||||||
|
// Row 2
|
||||||
|
#define US_LCBR S(US_LBRC) // {
|
||||||
|
#define US_RCBR S(US_RBRC) // }
|
||||||
|
#define US_PIPE S(US_BSLS) // |
|
||||||
|
// Row 3
|
||||||
|
#define US_COLN S(US_SCLN) // :
|
||||||
|
#define US_DQUO S(US_QUOT) // " (dead)
|
||||||
|
// Row 4
|
||||||
|
#define US_LABK S(US_COMM) // <
|
||||||
|
#define US_RABK S(US_DOT) // >
|
||||||
|
#define US_QUES S(US_SLSH) // ?
|
||||||
|
|
||||||
|
/* AltGr symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ │ ¡ │ ² │ ³ │ ¤ │ € │ ¼ │ ½ │ ¾ │ ‘ │ ’ │ ¥ │ × │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ Ä │ Å │ É │ ® │ Þ │ Ü │ Ú │ Í │ Ó │ Ö │ « │ » │ ¬ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||||
|
* │ │ Á │ ß │ Ð │ │ │ │ │ │ Ø │ ¶ │ ´ │ │
|
||||||
|
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||||
|
* │ │ Æ │ │ © │ │ │ Ñ │ µ │ Ç │ │ ¿ │ │
|
||||||
|
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define US_IEXL ALGR(US_1) // ¡
|
||||||
|
#define US_SUP2 ALGR(US_2) // ²
|
||||||
|
#define US_SUP3 ALGR(US_3) // ³
|
||||||
|
#define US_CURR ALGR(US_4) // ¤
|
||||||
|
#define US_EURO ALGR(US_5) // €
|
||||||
|
#define US_QRTR ALGR(US_6) // ¼
|
||||||
|
#define US_HALF ALGR(US_7) // ½
|
||||||
|
#define US_TQTR ALGR(US_8) // ¾
|
||||||
|
#define US_LSQU ALGR(US_9) // ‘
|
||||||
|
#define US_RSQU ALGR(US_0) // ’
|
||||||
|
#define US_YEN ALGR(US_MINS) // ¥
|
||||||
|
#define US_MUL ALGR(US_EQL) // ×
|
||||||
|
// Row 2
|
||||||
|
#define US_ADIA ALGR(US_Q) // Ä
|
||||||
|
#define US_ARNG ALGR(US_W) // Å
|
||||||
|
#define US_EACU ALGR(US_E) // É
|
||||||
|
#define US_REGD ALGR(US_R) // ®
|
||||||
|
#define US_THRN ALGR(US_T) // Þ
|
||||||
|
#define US_UDIA ALGR(US_Y) // Ü
|
||||||
|
#define US_UACU ALGR(US_U) // Ú
|
||||||
|
#define US_IACU ALGR(US_I) // Í
|
||||||
|
#define US_OACU ALGR(US_O) // Ó
|
||||||
|
#define US_ODIA ALGR(US_P) // Ö
|
||||||
|
#define US_LDAQ ALGR(US_LBRC) // «
|
||||||
|
#define US_RDAQ ALGR(US_RBRC) // »
|
||||||
|
#define US_NOT ALGR(US_BSLS) // ¬
|
||||||
|
// Row 3
|
||||||
|
#define US_AACU ALGR(US_A) // Á
|
||||||
|
#define US_SS ALGR(US_S) // ß
|
||||||
|
#define US_ETH ALGR(US_D) // Ð
|
||||||
|
#define US_OSTR ALGR(US_L) // Ø
|
||||||
|
#define US_PILC ALGR(US_SCLN) // ¶
|
||||||
|
#define US_ACUT ALGR(US_QUOT) // ´
|
||||||
|
// Row 4
|
||||||
|
#define US_AE ALGR(US_Z) // Æ
|
||||||
|
#define US_COPY ALGR(US_C) // ©
|
||||||
|
#define US_NTIL ALGR(US_N) // Ñ
|
||||||
|
#define US_MICR ALGR(US_M) // µ
|
||||||
|
#define US_CCED ALGR(US_COMM) // Ç
|
||||||
|
#define US_IQUE ALGR(US_SLSH) // ¿
|
||||||
|
|
||||||
|
/* Shift+AltGr symbols
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||||
|
* │ │ ¹ │ │ │ £ │ │ │ │ │ │ │ │ ÷ │ │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ ¦ │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||||
|
* │ │ │ § │ │ │ │ │ │ │ │ ° │ ¨ │ │
|
||||||
|
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||||
|
* │ │ │ │ ¢ │ │ │ │ │ │ │ │ │
|
||||||
|
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
// Row 1
|
||||||
|
#define US_SUP1 S(ALGR(US_1)) // ¹
|
||||||
|
#define US_PND S(ALGR(US_4)) // £
|
||||||
|
#define US_DIV S(ALGR(US_EQL)) // ÷
|
||||||
|
// Row 2
|
||||||
|
#define US_BRKP S(ALGR(US_BSLS)) // ¦
|
||||||
|
// Row 3
|
||||||
|
#define US_SECT S(ALGR(US_S)) // §
|
||||||
|
#define US_DEG S(ALGR(US_SCLN)) // °
|
||||||
|
#define US_DIAE S(ALGR(US_QUOT)) // ¨
|
||||||
|
// Row 4
|
||||||
|
#define US_CENT S(ALGR(US_C)) // ¢
|
||||||
@@ -40,7 +40,7 @@ const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
@@ -60,7 +60,7 @@ const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0),
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
|||||||
100
quantum/keymap_extras/sendstring_czech.h
Normal file
100
quantum/keymap_extras/sendstring_czech.h
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
/* Copyright 2020
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Sendstring lookup tables for Czech layouts
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "keymap_czech.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
|
const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
|
||||||
|
KCLUT_ENTRY(0, 1, 1, 0, 0, 1, 0, 1),
|
||||||
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 0, 1),
|
||||||
|
KCLUT_ENTRY(0, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 0, 1),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 0, 1, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 1, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 1, 0, 1, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 1, 0, 1, 1, 0),
|
||||||
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 1, 0, 1, 1, 0),
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
// NUL SOH STX ETX EOT ENQ ACK BEL
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
// BS TAB LF VT FF CR SO SI
|
||||||
|
KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
// DLE DC1 DC2 DC3 DC4 NAK SYN ETB
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
// CAN EM SUB ESC FS GS RS US
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
|
||||||
|
// ! " # $ % & '
|
||||||
|
KC_SPC, CZ_SECT, CZ_URNG, CZ_X, CZ_URNG, CZ_EQL, CZ_C, CZ_DIAE,
|
||||||
|
// ( ) * + , - . /
|
||||||
|
CZ_LPRN, CZ_LPRN, CZ_MINS, CZ_PLUS, CZ_COMM, CZ_MINS, CZ_DOT, CZ_UACU,
|
||||||
|
// 0 1 2 3 4 5 6 7
|
||||||
|
CZ_EACU, CZ_PLUS, CZ_ECAR, CZ_SCAR, CZ_CCAR, CZ_RCAR, CZ_ZCAR, CZ_YACU,
|
||||||
|
// 8 9 : ; < = > ?
|
||||||
|
CZ_AACU, CZ_IACU, CZ_DOT, CZ_SCLN, CZ_COMM, CZ_EQL, CZ_DOT, CZ_COMM,
|
||||||
|
// @ A B C D E F G
|
||||||
|
CZ_V, CZ_A, CZ_B, CZ_C, CZ_D, CZ_E, CZ_F, CZ_G,
|
||||||
|
// H I J K L M N O
|
||||||
|
CZ_H, CZ_I, CZ_J, CZ_K, CZ_L, CZ_M, CZ_N, CZ_O,
|
||||||
|
// P Q R S T U V W
|
||||||
|
CZ_P, CZ_Q, CZ_R, CZ_S, CZ_T, CZ_U, CZ_V, CZ_W,
|
||||||
|
// X Y Z [ \ ] ^ _
|
||||||
|
CZ_X, CZ_Y, CZ_Z, CZ_F, CZ_BSLS, CZ_G, CZ_SCAR, CZ_MINS,
|
||||||
|
// ` a b c d e f g
|
||||||
|
CZ_YACU, CZ_A, CZ_B, CZ_C, CZ_D, CZ_E, CZ_F, CZ_G,
|
||||||
|
// h i j k l m n o
|
||||||
|
CZ_H, CZ_I, CZ_J, CZ_K, CZ_L, CZ_M, CZ_N, CZ_O,
|
||||||
|
// p q r s t u v w
|
||||||
|
CZ_P, CZ_Q, CZ_R, CZ_S, CZ_T, CZ_U, CZ_V, CZ_W,
|
||||||
|
// x y z { | } ~ DEL
|
||||||
|
CZ_X, CZ_Y, CZ_Z, CZ_B, CZ_BSLS, CZ_N, CZ_PLUS, KC_DEL
|
||||||
|
};
|
||||||
@@ -40,7 +40,7 @@ const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
@@ -60,7 +60,7 @@ const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0),
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
|||||||
100
quantum/keymap_extras/sendstring_icelandic.h
Normal file
100
quantum/keymap_extras/sendstring_icelandic.h
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
/* Copyright 2020
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Sendstring lookup tables for Icelandic layouts
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "keymap_icelandic.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
|
const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
|
||||||
|
KCLUT_ENTRY(0, 1, 1, 1, 1, 1, 1, 0),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 0, 1),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 1, 1, 0, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(0, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||||
|
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 0, 1),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0),
|
||||||
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
// NUL SOH STX ETX EOT ENQ ACK BEL
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
// BS TAB LF VT FF CR SO SI
|
||||||
|
KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
// DLE DC1 DC2 DC3 DC4 NAK SYN ETB
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
// CAN EM SUB ESC FS GS RS US
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
|
||||||
|
// ! " # $ % & '
|
||||||
|
KC_SPC, IS_1, IS_2, IS_3, IS_4, IS_5, IS_6, IS_QUOT,
|
||||||
|
// ( ) * + , - . /
|
||||||
|
IS_8, IS_9, IS_PLUS, IS_PLUS, IS_COMM, IS_MINS, IS_DOT, IS_7,
|
||||||
|
// 0 1 2 3 4 5 6 7
|
||||||
|
IS_0, IS_1, IS_2, IS_3, IS_4, IS_5, IS_6, IS_7,
|
||||||
|
// 8 9 : ; < = > ?
|
||||||
|
IS_8, IS_9, IS_DOT, IS_COMM, IS_LABK, IS_0, IS_LABK, IS_QUOT,
|
||||||
|
// @ A B C D E F G
|
||||||
|
IS_Q, IS_A, IS_B, IS_C, IS_D, IS_E, IS_F, IS_G,
|
||||||
|
// H I J K L M N O
|
||||||
|
IS_H, IS_I, IS_J, IS_K, IS_L, IS_M, IS_N, IS_O,
|
||||||
|
// P Q R S T U V W
|
||||||
|
IS_P, IS_Q, IS_R, IS_S, IS_T, IS_U, IS_V, IS_W,
|
||||||
|
// X Y Z [ \ ] ^ _
|
||||||
|
IS_X, IS_Y, IS_Z, IS_8, IS_ODIA, IS_9, IS_ACUT, IS_MINS,
|
||||||
|
// ` a b c d e f g
|
||||||
|
IS_PLUS, IS_A, IS_B, IS_C, IS_D, IS_E, IS_F, IS_G,
|
||||||
|
// h i j k l m n o
|
||||||
|
IS_H, IS_I, IS_J, IS_K, IS_L, IS_M, IS_N, IS_O,
|
||||||
|
// p q r s t u v w
|
||||||
|
IS_P, IS_Q, IS_R, IS_S, IS_T, IS_U, IS_V, IS_W,
|
||||||
|
// x y z { | } ~ DEL
|
||||||
|
IS_X, IS_Y, IS_Z, IS_7, IS_LABK, IS_0, IS_QUOT, KC_DEL
|
||||||
|
};
|
||||||
@@ -40,7 +40,7 @@ const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 1, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 1, 0, 0, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
@@ -60,7 +60,7 @@ const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 1, 0, 1, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 1, 0, 1, 0, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
@@ -60,7 +60,7 @@ const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0),
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||||
@@ -60,7 +60,7 @@ const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
|||||||
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||||
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0),
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||||
|
|||||||
@@ -213,6 +213,8 @@ ifneq ($(findstring STM32F103, $(MCU)),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter $(MCU),atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb1286))
|
ifneq (,$(filter $(MCU),atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb1286))
|
||||||
|
PROTOCOL = LUFA
|
||||||
|
|
||||||
# Processor frequency.
|
# Processor frequency.
|
||||||
# This will define a symbol, F_CPU, in all source code files equal to the
|
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||||
# processor frequency in Hz. You can then use this symbol in your source code to
|
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||||
|
|||||||
@@ -17,9 +17,12 @@
|
|||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "process_combo.h"
|
#include "process_combo.h"
|
||||||
|
|
||||||
__attribute__((weak)) combo_t key_combos[COMBO_COUNT] = {
|
#ifndef COMBO_VARIABLE_LEN
|
||||||
|
__attribute__((weak)) combo_t key_combos[COMBO_COUNT] = {};
|
||||||
};
|
#else
|
||||||
|
extern combo_t key_combos[];
|
||||||
|
extern int COMBO_LEN;
|
||||||
|
#endif
|
||||||
|
|
||||||
__attribute__((weak)) void process_combo_event(uint8_t combo_index, bool pressed) {}
|
__attribute__((weak)) void process_combo_event(uint8_t combo_index, bool pressed) {}
|
||||||
|
|
||||||
@@ -141,8 +144,11 @@ bool process_combo(uint16_t keycode, keyrecord_t *record) {
|
|||||||
if (!is_combo_enabled()) {
|
if (!is_combo_enabled()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#ifndef COMBO_VARIABLE_LEN
|
||||||
for (current_combo_index = 0; current_combo_index < COMBO_COUNT; ++current_combo_index) {
|
for (current_combo_index = 0; current_combo_index < COMBO_COUNT; ++current_combo_index) {
|
||||||
|
#else
|
||||||
|
for (current_combo_index = 0; current_combo_index < COMBO_LEN; ++current_combo_index) {
|
||||||
|
#endif
|
||||||
combo_t *combo = &key_combos[current_combo_index];
|
combo_t *combo = &key_combos[current_combo_index];
|
||||||
is_combo_key |= process_single_combo(combo, keycode, record);
|
is_combo_key |= process_single_combo(combo, keycode, record);
|
||||||
no_combo_keys_pressed = no_combo_keys_pressed && NO_COMBO_KEYS_ARE_DOWN;
|
no_combo_keys_pressed = no_combo_keys_pressed && NO_COMBO_KEYS_ARE_DOWN;
|
||||||
|
|||||||
@@ -120,6 +120,10 @@ __attribute__((weak)) bool process_record_kb(uint16_t keycode, keyrecord_t *reco
|
|||||||
|
|
||||||
__attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; }
|
__attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; }
|
||||||
|
|
||||||
|
__attribute__((weak)) void post_process_record_kb(uint16_t keycode, keyrecord_t *record) { post_process_record_user(keycode, record); }
|
||||||
|
|
||||||
|
__attribute__((weak)) void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
|
||||||
|
|
||||||
void reset_keyboard(void) {
|
void reset_keyboard(void) {
|
||||||
clear_keyboard();
|
clear_keyboard();
|
||||||
#if defined(MIDI_ENABLE) && defined(MIDI_BASIC)
|
#if defined(MIDI_ENABLE) && defined(MIDI_BASIC)
|
||||||
@@ -172,9 +176,15 @@ uint16_t get_event_keycode(keyevent_t event) {
|
|||||||
return keymap_key_to_keycode(layer_switch_get_layer(event.key), event.key);
|
return keymap_key_to_keycode(layer_switch_get_layer(event.key), event.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main keycode processing function. Hands off handling to other functions,
|
/* Get keycode, and then call keyboard function */
|
||||||
* then processes internal Quantum keycodes, then processes ACTIONs.
|
void post_process_record_quantum(keyrecord_t *record) {
|
||||||
*/
|
uint16_t keycode = get_record_keycode(record);
|
||||||
|
post_process_record_kb(keycode, record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Core keycode function, hands off handling to other functions,
|
||||||
|
then processes internal quantum keycodes, and then processes
|
||||||
|
ACTIONs. */
|
||||||
bool process_record_quantum(keyrecord_t *record) {
|
bool process_record_quantum(keyrecord_t *record) {
|
||||||
uint16_t keycode = get_record_keycode(record);
|
uint16_t keycode = get_record_keycode(record);
|
||||||
|
|
||||||
@@ -192,6 +202,12 @@ bool process_record_quantum(keyrecord_t *record) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WPM_ENABLE
|
||||||
|
if (record->event.pressed) {
|
||||||
|
update_wpm(keycode);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TAP_DANCE_ENABLE
|
#ifdef TAP_DANCE_ENABLE
|
||||||
preprocess_tap_dance(keycode, record);
|
preprocess_tap_dance(keycode, record);
|
||||||
#endif
|
#endif
|
||||||
@@ -645,6 +661,10 @@ void matrix_scan_quantum() {
|
|||||||
encoder_read();
|
encoder_read();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WPM_ENABLE
|
||||||
|
decay_wpm();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAPTIC_ENABLE
|
#ifdef HAPTIC_ENABLE
|
||||||
haptic_task();
|
haptic_task();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -178,6 +178,10 @@ extern layer_state_t layer_state;
|
|||||||
# include "via.h"
|
# include "via.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WPM_ENABLE
|
||||||
|
# include "wpm.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Function substitutions to ease GPIO manipulation
|
// Function substitutions to ease GPIO manipulation
|
||||||
#if defined(__AVR__)
|
#if defined(__AVR__)
|
||||||
typedef uint8_t pin_t;
|
typedef uint8_t pin_t;
|
||||||
@@ -253,6 +257,8 @@ uint16_t get_event_keycode(keyevent_t event);
|
|||||||
bool process_action_kb(keyrecord_t *record);
|
bool process_action_kb(keyrecord_t *record);
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record);
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record);
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record);
|
bool process_record_user(uint16_t keycode, keyrecord_t *record);
|
||||||
|
void post_process_record_kb(uint16_t keycode, keyrecord_t *record);
|
||||||
|
void post_process_record_user(uint16_t keycode, keyrecord_t *record);
|
||||||
|
|
||||||
#ifndef BOOTMAGIC_LITE_COLUMN
|
#ifndef BOOTMAGIC_LITE_COLUMN
|
||||||
# define BOOTMAGIC_LITE_COLUMN 0
|
# define BOOTMAGIC_LITE_COLUMN 0
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER;
|
|||||||
# define RGB_MATRIX_STARTUP_SPD UINT8_MAX / 2
|
# define RGB_MATRIX_STARTUP_SPD UINT8_MAX / 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
bool g_suspend_state = false;
|
bool g_suspend_state = false;
|
||||||
|
|
||||||
rgb_config_t rgb_matrix_config;
|
rgb_config_t rgb_matrix_config;
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ typedef struct _I2C_slave_buffer_t {
|
|||||||
# ifdef ENCODER_ENABLE
|
# ifdef ENCODER_ENABLE
|
||||||
uint8_t encoder_state[NUMBER_OF_ENCODERS];
|
uint8_t encoder_state[NUMBER_OF_ENCODERS];
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef WPM_ENABLE
|
||||||
|
uint8_t current_wpm;
|
||||||
|
# endif
|
||||||
} I2C_slave_buffer_t;
|
} I2C_slave_buffer_t;
|
||||||
|
|
||||||
static I2C_slave_buffer_t *const i2c_buffer = (I2C_slave_buffer_t *)i2c_slave_reg;
|
static I2C_slave_buffer_t *const i2c_buffer = (I2C_slave_buffer_t *)i2c_slave_reg;
|
||||||
@@ -43,6 +46,7 @@ static I2C_slave_buffer_t *const i2c_buffer = (I2C_slave_buffer_t *)i2c_slave_re
|
|||||||
# define I2C_RGB_START offsetof(I2C_slave_buffer_t, rgblight_sync)
|
# define I2C_RGB_START offsetof(I2C_slave_buffer_t, rgblight_sync)
|
||||||
# define I2C_KEYMAP_START offsetof(I2C_slave_buffer_t, smatrix)
|
# define I2C_KEYMAP_START offsetof(I2C_slave_buffer_t, smatrix)
|
||||||
# define I2C_ENCODER_START offsetof(I2C_slave_buffer_t, encoder_state)
|
# define I2C_ENCODER_START offsetof(I2C_slave_buffer_t, encoder_state)
|
||||||
|
# define I2C_WPM_START offsetof(I2C_slave_buffer_t, current_wpm)
|
||||||
|
|
||||||
# define TIMEOUT 100
|
# define TIMEOUT 100
|
||||||
|
|
||||||
@@ -79,6 +83,14 @@ bool transport_master(matrix_row_t matrix[]) {
|
|||||||
encoder_update_raw(i2c_buffer->encoder_state);
|
encoder_update_raw(i2c_buffer->encoder_state);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifdef WPM_ENABLE
|
||||||
|
uint8_t current_wpm = get_current_wpm();
|
||||||
|
if (current_wpm != i2c_buffer->current_wpm) {
|
||||||
|
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_WPM_START, (void *)¤t_wpm, sizeof(current_wpm), TIMEOUT) >= 0) {
|
||||||
|
i2c_buffer->current_wpm = current_wpm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,6 +114,10 @@ void transport_slave(matrix_row_t matrix[]) {
|
|||||||
# ifdef ENCODER_ENABLE
|
# ifdef ENCODER_ENABLE
|
||||||
encoder_state_raw(i2c_buffer->encoder_state);
|
encoder_state_raw(i2c_buffer->encoder_state);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifdef WPM_ENABLE
|
||||||
|
set_current_wpm(i2c_buffer->current_wpm);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void transport_master_init(void) { i2c_init(); }
|
void transport_master_init(void) { i2c_init(); }
|
||||||
@@ -126,6 +142,9 @@ typedef struct _Serial_m2s_buffer_t {
|
|||||||
# ifdef BACKLIGHT_ENABLE
|
# ifdef BACKLIGHT_ENABLE
|
||||||
uint8_t backlight_level;
|
uint8_t backlight_level;
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef WPM_ENABLE
|
||||||
|
uint8_t current_wpm;
|
||||||
|
# endif
|
||||||
} Serial_m2s_buffer_t;
|
} Serial_m2s_buffer_t;
|
||||||
|
|
||||||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
|
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
|
||||||
@@ -228,6 +247,10 @@ bool transport_master(matrix_row_t matrix[]) {
|
|||||||
encoder_update_raw((uint8_t *)serial_s2m_buffer.encoder_state);
|
encoder_update_raw((uint8_t *)serial_s2m_buffer.encoder_state);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifdef WPM_ENABLE
|
||||||
|
// Write wpm to slave
|
||||||
|
serial_m2s_buffer.current_wpm = get_current_wpm();
|
||||||
|
# endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,6 +267,10 @@ void transport_slave(matrix_row_t matrix[]) {
|
|||||||
# ifdef ENCODER_ENABLE
|
# ifdef ENCODER_ENABLE
|
||||||
encoder_state_raw((uint8_t *)serial_s2m_buffer.encoder_state);
|
encoder_state_raw((uint8_t *)serial_s2m_buffer.encoder_state);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifdef WPM_ENABLE
|
||||||
|
set_current_wpm(serial_m2s_buffer.current_wpm);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
64
quantum/wpm.c
Normal file
64
quantum/wpm.c
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2020 Richard Sutherland (rich@brickbots.com)
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "wpm.h"
|
||||||
|
|
||||||
|
// WPM Stuff
|
||||||
|
static uint8_t current_wpm = 0;
|
||||||
|
static uint8_t latest_wpm = 0;
|
||||||
|
static uint16_t wpm_timer = 0;
|
||||||
|
|
||||||
|
// This smoothing is 40 keystrokes
|
||||||
|
static const float wpm_smoothing = 0.0487;
|
||||||
|
|
||||||
|
void set_current_wpm(uint8_t new_wpm) { current_wpm = new_wpm; }
|
||||||
|
|
||||||
|
uint8_t get_current_wpm(void) { return current_wpm; }
|
||||||
|
|
||||||
|
bool wpm_keycode(uint16_t keycode) { return wpm_keycode_kb(keycode); }
|
||||||
|
|
||||||
|
__attribute__((weak)) bool wpm_keycode_kb(uint16_t keycode) { return wpm_keycode_user(keycode); }
|
||||||
|
|
||||||
|
__attribute__((weak)) bool wpm_keycode_user(uint16_t keycode) {
|
||||||
|
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX) || (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
|
||||||
|
keycode = keycode & 0xFF;
|
||||||
|
} else if (keycode > 0xFF) {
|
||||||
|
keycode = 0;
|
||||||
|
}
|
||||||
|
if ((keycode >= KC_A && keycode <= KC_0) || (keycode >= KC_TAB && keycode <= KC_SLASH)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void update_wpm(uint16_t keycode) {
|
||||||
|
if (wpm_keycode(keycode)) {
|
||||||
|
if (wpm_timer > 0) {
|
||||||
|
latest_wpm = 60000 / timer_elapsed(wpm_timer) / 5;
|
||||||
|
current_wpm = (latest_wpm - current_wpm) * wpm_smoothing + current_wpm;
|
||||||
|
}
|
||||||
|
wpm_timer = timer_read();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void decay_wpm(void) {
|
||||||
|
if (timer_elapsed(wpm_timer) > 1000) {
|
||||||
|
current_wpm = (0 - current_wpm) * wpm_smoothing + current_wpm;
|
||||||
|
wpm_timer = timer_read();
|
||||||
|
}
|
||||||
|
}
|
||||||
30
quantum/wpm.h
Normal file
30
quantum/wpm.h
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2020 Richard Sutherland (rich@brickbots.com)
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
bool wpm_keycode(uint16_t keycode);
|
||||||
|
bool wpm_keycode_kb(uint16_t keycode);
|
||||||
|
bool wpm_keycode_user(uint16_t keycode);
|
||||||
|
|
||||||
|
void set_current_wpm(uint8_t);
|
||||||
|
uint8_t get_current_wpm(void);
|
||||||
|
void update_wpm(uint16_t);
|
||||||
|
|
||||||
|
void decay_wpm(void);
|
||||||
@@ -24,6 +24,7 @@ endif
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Imported source files and paths
|
# Imported source files and paths
|
||||||
|
OPT_OS = chibios
|
||||||
CHIBIOS = $(TOP_DIR)/lib/chibios
|
CHIBIOS = $(TOP_DIR)/lib/chibios
|
||||||
CHIBIOS_CONTRIB = $(TOP_DIR)/lib/chibios-contrib
|
CHIBIOS_CONTRIB = $(TOP_DIR)/lib/chibios-contrib
|
||||||
# Startup files. Try a few different locations, for compability with old versions and
|
# Startup files. Try a few different locations, for compability with old versions and
|
||||||
@@ -49,6 +50,34 @@ PLATFORM_MK = $(CHIBIOS_CONTRIB)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/$(PLAT
|
|||||||
endif
|
endif
|
||||||
include $(PLATFORM_MK)
|
include $(PLATFORM_MK)
|
||||||
|
|
||||||
|
# Bootloader address
|
||||||
|
ifdef STM32_BOOTLOADER_ADDRESS
|
||||||
|
OPT_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ("$(wildcard $(KEYBOARD_PATH_5)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_5)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_5)/boards/$(BOARD)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_5)/boards/$(BOARD)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_4)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_4)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_4)/boards/$(BOARD)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_4)/boards/$(BOARD)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_3)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_3)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_3)/boards/$(BOARD)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_3)/boards/$(BOARD)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_2)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/boards/$(BOARD)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_2)/boards/$(BOARD)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_1)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/boards/$(BOARD)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(KEYBOARD_PATH_1)/boards/$(BOARD)/bootloader_defs.h
|
||||||
|
else ifneq ("$(wildcard $(TOP_DIR)/drivers/boards/$(BOARD)/bootloader_defs.h)","")
|
||||||
|
OPT_DEFS += -include $(TOP_DIR)/drivers/boards/$(BOARD)/bootloader_defs.h
|
||||||
|
endif
|
||||||
|
|
||||||
BOARD_MK :=
|
BOARD_MK :=
|
||||||
|
|
||||||
|
|||||||
@@ -166,11 +166,6 @@ ifeq ($(strip $(LINK_TIME_OPTIMIZATION_ENABLE)), yes)
|
|||||||
TMK_COMMON_DEFS += -DNO_ACTION_FUNCTION
|
TMK_COMMON_DEFS += -DNO_ACTION_FUNCTION
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Bootloader address
|
|
||||||
ifdef STM32_BOOTLOADER_ADDRESS
|
|
||||||
TMK_COMMON_DEFS += -DSTM32_BOOTLOADER_ADDRESS=$(STM32_BOOTLOADER_ADDRESS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Search Path
|
# Search Path
|
||||||
VPATH += $(TMK_PATH)/$(COMMON_DIR)
|
VPATH += $(TMK_PATH)/$(COMMON_DIR)
|
||||||
VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR)
|
VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR)
|
||||||
|
|||||||
@@ -151,6 +151,8 @@ void process_record_nocache(keyrecord_t *record) { process_record(record); }
|
|||||||
|
|
||||||
__attribute__((weak)) bool process_record_quantum(keyrecord_t *record) { return true; }
|
__attribute__((weak)) bool process_record_quantum(keyrecord_t *record) { return true; }
|
||||||
|
|
||||||
|
__attribute__((weak)) void post_process_record_quantum(keyrecord_t *record) {}
|
||||||
|
|
||||||
#ifndef NO_ACTION_TAPPING
|
#ifndef NO_ACTION_TAPPING
|
||||||
/** \brief Allows for handling tap-hold actions immediately instead of waiting for TAPPING_TERM or another keypress.
|
/** \brief Allows for handling tap-hold actions immediately instead of waiting for TAPPING_TERM or another keypress.
|
||||||
*
|
*
|
||||||
@@ -185,6 +187,11 @@ void process_record(keyrecord_t *record) {
|
|||||||
|
|
||||||
if (!process_record_quantum(record)) return;
|
if (!process_record_quantum(record)) return;
|
||||||
|
|
||||||
|
process_record_handler(record);
|
||||||
|
post_process_record_quantum(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
void process_record_handler(keyrecord_t *record) {
|
||||||
action_t action = store_or_get_action(record->event.pressed, record->event.key);
|
action_t action = store_or_get_action(record->event.pressed, record->event.key);
|
||||||
dprint("ACTION: ");
|
dprint("ACTION: ");
|
||||||
debug_action(action);
|
debug_action(action);
|
||||||
@@ -988,7 +995,6 @@ bool is_tap_action(action_t action) {
|
|||||||
* FIXME: Needs documentation.
|
* FIXME: Needs documentation.
|
||||||
*/
|
*/
|
||||||
void debug_event(keyevent_t event) { dprintf("%04X%c(%u)", (event.key.row << 8 | event.key.col), (event.pressed ? 'd' : 'u'), event.time); }
|
void debug_event(keyevent_t event) { dprintf("%04X%c(%u)", (event.key.row << 8 | event.key.col), (event.pressed ? 'd' : 'u'), event.time); }
|
||||||
|
|
||||||
/** \brief Debug print (FIXME: Needs better description)
|
/** \brief Debug print (FIXME: Needs better description)
|
||||||
*
|
*
|
||||||
* FIXME: Needs documentation.
|
* FIXME: Needs documentation.
|
||||||
|
|||||||
@@ -84,6 +84,8 @@ void process_hand_swap(keyevent_t *record);
|
|||||||
|
|
||||||
void process_record_nocache(keyrecord_t *record);
|
void process_record_nocache(keyrecord_t *record);
|
||||||
void process_record(keyrecord_t *record);
|
void process_record(keyrecord_t *record);
|
||||||
|
void process_record_handler(keyrecord_t *record);
|
||||||
|
void post_process_record_quantum(keyrecord_t *record);
|
||||||
void process_action(keyrecord_t *record, action_t action);
|
void process_action(keyrecord_t *record, action_t action);
|
||||||
void register_code(uint8_t code);
|
void register_code(uint8_t code);
|
||||||
void unregister_code(uint8_t code);
|
void unregister_code(uint8_t code);
|
||||||
|
|||||||
@@ -354,19 +354,19 @@ const PROGMEM char usbDescriptorConfiguration[] = {
|
|||||||
/* USB configuration descriptor */
|
/* USB configuration descriptor */
|
||||||
9, /* sizeof(usbDescriptorConfiguration): length of descriptor in bytes */
|
9, /* sizeof(usbDescriptorConfiguration): length of descriptor in bytes */
|
||||||
USBDESCR_CONFIG, /* descriptor type */
|
USBDESCR_CONFIG, /* descriptor type */
|
||||||
# if defined (MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE)
|
# if defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE)
|
||||||
59, // 9 + (9 + 9 + 7) + (9 + 9 + 7)
|
59, // 9 + (9 + 9 + 7) + (9 + 9 + 7)
|
||||||
#else
|
# else
|
||||||
34, // 9 + (9 + 9 + 7)
|
34, // 9 + (9 + 9 + 7)
|
||||||
# endif
|
# endif
|
||||||
0,
|
0,
|
||||||
// 18 + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT3 + 9, 0,
|
// 18 + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT3 + 9, 0,
|
||||||
/* total length of data returned (including inlined descriptors) */
|
/* total length of data returned (including inlined descriptors) */
|
||||||
# if defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE)
|
# if defined(MOUSE_ENABLE) || defined(EXTRAKEY_ENABLE)
|
||||||
2, /* number of interfaces in this configuration */
|
2, /* number of interfaces in this configuration */
|
||||||
# else
|
# else
|
||||||
1,
|
1,
|
||||||
#endif
|
# endif
|
||||||
1, /* index of this configuration */
|
1, /* index of this configuration */
|
||||||
0, /* configuration name string index */
|
0, /* configuration name string index */
|
||||||
# if USB_CFG_IS_SELF_POWERED
|
# if USB_CFG_IS_SELF_POWERED
|
||||||
@@ -419,13 +419,13 @@ const PROGMEM char usbDescriptorConfiguration[] = {
|
|||||||
0, /* PROTOCOL: none */
|
0, /* PROTOCOL: none */
|
||||||
0, /* string index for interface */
|
0, /* string index for interface */
|
||||||
/* HID descriptor */
|
/* HID descriptor */
|
||||||
9, /* sizeof(usbDescrHID): length of descriptor in bytes */
|
9, /* sizeof(usbDescrHID): length of descriptor in bytes */
|
||||||
USBDESCR_HID, /* descriptor type: HID */
|
USBDESCR_HID, /* descriptor type: HID */
|
||||||
0x01, 0x01, /* BCD representation of HID version */
|
0x01, 0x01, /* BCD representation of HID version */
|
||||||
0x00, /* target country code */
|
0x00, /* target country code */
|
||||||
0x01, /* number of HID Report (or other HID class) Descriptor infos to follow */
|
0x01, /* number of HID Report (or other HID class) Descriptor infos to follow */
|
||||||
0x22, /* descriptor type: report */
|
0x22, /* descriptor type: report */
|
||||||
sizeof(mouse_extra_hid_report), 0, /* total length of report descriptor */
|
sizeof(mouse_extra_hid_report), 0, /* total length of report descriptor */
|
||||||
# if USB_CFG_HAVE_INTRIN_ENDPOINT3 /* endpoint descriptor for endpoint 3 */
|
# if USB_CFG_HAVE_INTRIN_ENDPOINT3 /* endpoint descriptor for endpoint 3 */
|
||||||
/* Endpoint descriptor */
|
/* Endpoint descriptor */
|
||||||
7, /* sizeof(usbDescrEndpoint) */
|
7, /* sizeof(usbDescrEndpoint) */
|
||||||
|
|||||||
5
users/spidey3/config.h
Normal file
5
users/spidey3/config.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define LED_DISABLE_WHEN_USB_SUSPENDED true
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true
|
||||||
|
#define RGBLIGHT_LAYERS
|
||||||
21
users/spidey3/init.c
Normal file
21
users/spidey3/init.c
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#include "spidey3.h"
|
||||||
|
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
print("SPIDEY3: keyboard_post_init_user\n");
|
||||||
|
uprintf(" debug_enable=%u\n", debug_enable);
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
keyboard_post_init_user_rgb();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void eeconfig_init_user(void) {
|
||||||
|
print("SPIDEY3: eeconfig_init_user\n");
|
||||||
|
set_single_persistent_default_layer(_BASE);
|
||||||
|
#ifdef UNICODEMAP_ENABLE
|
||||||
|
eeconfig_init_user_unicode();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
eeconfig_init_user_rgb();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
81
users/spidey3/layer_rgb.c
Normal file
81
users/spidey3/layer_rgb.c
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#include "spidey3.h"
|
||||||
|
#include "velocikey.h"
|
||||||
|
|
||||||
|
uint32_t rgb_mode;
|
||||||
|
uint16_t rgb_hue;
|
||||||
|
uint8_t rgb_sat;
|
||||||
|
uint8_t rgb_val;
|
||||||
|
bool rgb_saved = 0;
|
||||||
|
|
||||||
|
void spidey_swirl(void) {
|
||||||
|
dprint("SPIDEY3: Setting Spidey Swirl!\n");
|
||||||
|
rgblight_enable();
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL);
|
||||||
|
rgblight_sethsv(213, 255, 128);
|
||||||
|
#ifdef VELOCIKEY_ENABLE
|
||||||
|
if (!velocikey_enabled())
|
||||||
|
velocikey_toggle();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void eeconfig_init_user_rgb(void)
|
||||||
|
{
|
||||||
|
spidey_swirl();
|
||||||
|
}
|
||||||
|
|
||||||
|
const rgblight_segment_t PROGMEM _capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS( {0, 2, HSV_AZURE}, {14, 2, HSV_AZURE} );
|
||||||
|
const rgblight_segment_t PROGMEM _layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS( {7, 1, HSV_PURPLE} );
|
||||||
|
const rgblight_segment_t PROGMEM _layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS( {9, 2, HSV_GREEN} );
|
||||||
|
|
||||||
|
// Now define the array of layers. Later layers take precedence
|
||||||
|
const rgblight_segment_t* const PROGMEM _rgb_layers[] = RGBLIGHT_LAYERS_LIST( _capslock_layer, _layer1_layer, _layer2_layer );
|
||||||
|
const uint8_t PROGMEM _n_rgb_layers = sizeof(_rgb_layers) / sizeof(_rgb_layers[0]) - 1;
|
||||||
|
|
||||||
|
void do_rgb_layers(layer_state_t state, uint8_t start, uint8_t end) {
|
||||||
|
dprint("SPIDEY3: do_rgb_layers()\n");
|
||||||
|
for (uint8_t i=start; i<end; i++) {
|
||||||
|
bool is_on = layer_state_cmp(state, i);
|
||||||
|
dprintf(" layer[%d]=%u\n", i, is_on);
|
||||||
|
rgblight_set_layer_state(i, is_on);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void keyboard_post_init_user_rgb(void) {
|
||||||
|
do_rgb_layers(default_layer_state, 1u, RGB_LAYER_BASE_REGULAR);
|
||||||
|
do_rgb_layers(layer_state, RGB_LAYER_BASE_REGULAR, _n_rgb_layers);
|
||||||
|
// Enable the LED layers
|
||||||
|
rgblight_layers = _rgb_layers;
|
||||||
|
}
|
||||||
|
|
||||||
|
layer_state_t default_layer_state_set_user_rgb(layer_state_t state) {
|
||||||
|
dprint("SPIDEY3: default_layer_state_set_user_rgb()\n");
|
||||||
|
do_rgb_layers(state, 1u, RGB_LAYER_BASE_REGULAR);
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
layer_state_t layer_state_set_user_rgb(layer_state_t state) {
|
||||||
|
dprint("SPIDEY3: layer_state_set_user_rgb()\n");
|
||||||
|
do_rgb_layers(state, RGB_LAYER_BASE_REGULAR, _n_rgb_layers);
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool led_update_user_rgb(led_t led_state) {
|
||||||
|
dprintf("SPIDEY3: caps_lock=%u\n", led_state.caps_lock);
|
||||||
|
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user_rgb(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
|
switch (keycode) {
|
||||||
|
case SPI_GLO:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
spidey_swirl();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
14
users/spidey3/readme.md
Normal file
14
users/spidey3/readme.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Copyright 2020 Joshua Diamond josh@windowoffire.com @spidey3
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
10
users/spidey3/rules.mk
Normal file
10
users/spidey3/rules.mk
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
SRC += init.c
|
||||||
|
SRC += spidey3.c
|
||||||
|
|
||||||
|
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
||||||
|
SRC += layer_rgb.c
|
||||||
|
endif
|
||||||
|
ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
|
||||||
|
SRC += unicode.c
|
||||||
|
endif
|
||||||
80
users/spidey3/spidey3.c
Normal file
80
users/spidey3/spidey3.c
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#include "spidey3.h"
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
|
// If console is enabled, it will print the matrix position and status of each key pressed
|
||||||
|
// dprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
|
||||||
|
|
||||||
|
if (record->event.pressed) {
|
||||||
|
switch (keycode) {
|
||||||
|
#ifndef NO_DEBUG
|
||||||
|
// Re-implement this here, but fix the persistence!
|
||||||
|
case DEBUG:
|
||||||
|
debug_enable ^= 1;
|
||||||
|
if (debug_enable) {
|
||||||
|
print("DEBUG: enabled.\n");
|
||||||
|
} else {
|
||||||
|
print("DEBUG: disabled.\n");
|
||||||
|
}
|
||||||
|
eeconfig_update_debug(debug_config.raw);
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
case SPI_LNX:
|
||||||
|
dprint("SPIDEY3: SPI_LNX\n");
|
||||||
|
set_single_persistent_default_layer(_BASE);
|
||||||
|
layer_off(_OSX);
|
||||||
|
#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE)
|
||||||
|
set_unicode_input_mode(UC_LNX);
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
case SPI_OSX:
|
||||||
|
dprint("SPIDEY3: SPI_OSX\n");
|
||||||
|
set_single_persistent_default_layer(_OSX);
|
||||||
|
#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE)
|
||||||
|
set_unicode_input_mode(UC_OSX);
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
case SPI_WIN:
|
||||||
|
dprint("SPIDEY3: SPI_WIN\n");
|
||||||
|
set_single_persistent_default_layer(_BASE);
|
||||||
|
layer_off(_OSX);
|
||||||
|
#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE)
|
||||||
|
set_unicode_input_mode(UC_WINC);
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
bool res = process_record_user_rgb(keycode, record);
|
||||||
|
if (!res) return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
layer_state_t default_layer_state_set_user(layer_state_t state) {
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
return default_layer_state_set_user_rgb(state);
|
||||||
|
#else
|
||||||
|
return state;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
return layer_state_set_user_rgb(state);
|
||||||
|
#else
|
||||||
|
return state;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool led_update_user(led_t led_state) {
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
return led_update_user_rgb(led_state);
|
||||||
|
#else
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
40
users/spidey3/spidey3.h
Normal file
40
users/spidey3/spidey3.h
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#ifdef UNICODEMAP_ENABLE
|
||||||
|
#include "unicode.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
enum userspace_layers {
|
||||||
|
_BASE = 0,
|
||||||
|
_OSX,
|
||||||
|
_FN,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum rgb_base_layer {
|
||||||
|
RGB_LAYER_BASE_DEFAULT = _BASE,
|
||||||
|
RGB_LAYER_BASE_REGULAR = _FN,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
SPI_GLO = SAFE_RANGE,
|
||||||
|
SPI_LNX,
|
||||||
|
SPI_OSX,
|
||||||
|
SPI_WIN,
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
void eeconfig_init_user_rgb(void);
|
||||||
|
void matrix_init_user_rgb(void);
|
||||||
|
void keyboard_post_init_user_rgb(void);
|
||||||
|
bool process_record_user_rgb(uint16_t keycode, keyrecord_t *record);
|
||||||
|
layer_state_t layer_state_set_user_rgb(layer_state_t state);
|
||||||
|
layer_state_t default_layer_state_set_user_rgb(layer_state_t state);
|
||||||
|
bool led_update_user_rgb(led_t led_state);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNICODEMAP_ENABLE
|
||||||
|
void eeconfig_init_user_unicode(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user