Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
374525c995 | ||
|
|
e02a3c559d | ||
|
|
e1217dae5a | ||
|
|
485a0b0bc3 | ||
|
|
23cfc4b145 | ||
|
|
bd639752db | ||
|
|
aaeef7a833 | ||
|
|
0d6614f71f | ||
|
|
d322ec5452 | ||
|
|
c7449b3840 | ||
|
|
4c51049b2b | ||
|
|
dd60fcda28 | ||
|
|
fd6b674b49 | ||
|
|
2c0deb8a13 | ||
|
|
a904371b29 | ||
|
|
cfdd105d9d | ||
|
|
82ae6ee007 | ||
|
|
f220e7d713 | ||
|
|
3cb6fb2935 | ||
|
|
5c666398d5 | ||
|
|
a47915d2d2 | ||
|
|
6ec3cc029e | ||
|
|
4597f2bcc8 | ||
|
|
52af38da37 | ||
|
|
b2dbc3f515 | ||
|
|
86b62eadc2 | ||
|
|
3337eb10b2 | ||
|
|
32bab55def | ||
|
|
84bf82f2c9 | ||
|
|
af26238385 | ||
|
|
28e5969f78 | ||
|
|
59246756e5 | ||
|
|
423ce39f18 | ||
|
|
217debff07 | ||
|
|
52e9719d09 | ||
|
|
9df367e227 | ||
|
|
8650b9f10c | ||
|
|
5c9c45619e | ||
|
|
09caf19389 | ||
|
|
4baf49191f | ||
|
|
427da3c19c | ||
|
|
1df8bb3cdb | ||
|
|
99eacdc47a | ||
|
|
5e235d30c7 | ||
|
|
22a10cc8a3 | ||
|
|
b349fa0a57 | ||
|
|
d2b03bf150 | ||
|
|
35ca1c2212 | ||
|
|
182286680a | ||
|
|
d0d105b083 | ||
|
|
c0a57c2a50 | ||
|
|
643fc1d806 | ||
|
|
b80340c207 | ||
|
|
cb4a86475e | ||
|
|
7a9980fd85 | ||
|
|
99d9250045 | ||
|
|
7a0d145e27 | ||
|
|
d06340f665 | ||
|
|
4c0065dda7 |
No files matched your search
@@ -0,0 +1,71 @@
|
|||||||
|
# 動的マクロ: ランタイムでのマクロの記録および再生
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.8.123:docs/feature_dynamic_macros.md
|
||||||
|
git diff 0.8.123 HEAD -- docs/feature_dynamic_macros.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
QMK はその場で作られた一時的なマクロをサポートします。これらを動的マクロと呼びます。それらはユーザがキーボードから定義し、キーボードのプラグを抜くか再起動すると失われます。
|
||||||
|
|
||||||
|
1つまたは2つのマクロに合計128のキー押下を保存できます。RAM をより多く使用してサイズを増やすことができます。
|
||||||
|
|
||||||
|
有効にするには、最初に `rules.mk` に `DYNAMIC_MACRO_ENABLE = yes` を記述します。そして、以下のキーをキーマップに追加します:
|
||||||
|
|
||||||
|
| キー | Alias | 説明 |
|
||||||
|
|------------------|----------|---------------------------------------------------|
|
||||||
|
| `DYN_REC_START1` | `DM_REC1` | マクロ 1 の記録を開始します |
|
||||||
|
| `DYN_REC_START2` | `DM_REC2` | マクロ 2 の記録を開始します |
|
||||||
|
| `DYN_MACRO_PLAY1` | `DM_PLY1` | マクロ 1 を再生します |
|
||||||
|
| `DYN_MACRO_PLAY2` | `DM_PLY2` | マクロ 2 を再生します |
|
||||||
|
| `DYN_REC_STOP` | `DM_RSTP` | 現在記録中のマクロの記録を終了します。 |
|
||||||
|
|
||||||
|
これが必要な全てです。
|
||||||
|
|
||||||
|
マクロの記録を開始するには、`DYN_REC_START1` または `DYN_REC_START2` のどちらかを押します。
|
||||||
|
|
||||||
|
記録を終了するには、`DYN_REC_STOP` レイヤーボタンを押します。
|
||||||
|
|
||||||
|
マクロを再生するには、`DYN_MACRO_PLAY1` あるいは `DYN_MACRO_PLAY2` のどちらかを押します。
|
||||||
|
|
||||||
|
マクロの一部としてマクロを再生することができます。マクロ 1 を記録中にマクロ 2 を再生、またはその逆も問題ありません。ただし、再帰的なマクロ、つまりマクロ 1 を再生するマクロ 1 は作成しないでください。もしそうしてキーボードが反応しなくなった場合は、キーボードを取り外し再び接続します。これを完全に無効にするには、`config.h` ファイルで `DYNAMIC_MACRO_NO_NESTING` を定義します。
|
||||||
|
|
||||||
|
?> 動的マクロの内部の詳細については、`process_dynamic_macro.h` および `process_dynamic_macro.c` ファイルのコメントを読んでください。
|
||||||
|
|
||||||
|
## カスタマイズ
|
||||||
|
|
||||||
|
ある程度のカスタマイズを可能にするオプションがいくつか追加されています。
|
||||||
|
|
||||||
|
| 定義 | デフォルト | 説明 |
|
||||||
|
|----------------------------|----------------|-----------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `DYNAMIC_MACRO_SIZE` | 128 | 動的マクロが使用できるメモリ量を設定します。これは限られたリソースであり、コントローラに依存します。 |
|
||||||
|
| `DYNAMIC_MACRO_USER_CALL` | *定義なし* | これを定義すると、ユーザの `keymap.c` ファイルを使ってマクロが起動されます。 |
|
||||||
|
| `DYNAMIC_MACRO_NO_NESTING` | *定義なし* | これを定義すると、別のマクロからマクロを呼び出す(入れ子になったマクロ)機能を無効にします。 |
|
||||||
|
|
||||||
|
|
||||||
|
記録中にキーを押すたびに LED が点滅し始めた場合は、マクロバッファにマクロを入れるスペースがもう無いことを意味します。マクロを入れるには、他のマクロ(それらは同じバッファを共有します)を短くするか、`config.h` に `DYNAMIC_MACRO_SIZE` 定義を追加することでバッファを増やします(デフォルト値: 128; ヘッダ内のコメントを読んでください)。
|
||||||
|
|
||||||
|
|
||||||
|
### DYNAMIC_MACRO_USER_CALL
|
||||||
|
|
||||||
|
以前のバージョンの動的マクロをお使いの方へ: 専用の `DYN_REC_STOP` キーを使わずに動的マクロキーへのアクセスに使われるレイヤーモディファイアのみを使って、マクロの記録を終了することもまだ可能です。この動作に戻したい場合は、`#define DYNAMIC_MACRO_USER_CALL` を `config.h` に追加し、以下のスニペットを `process_record_user()` 関数の先頭に記述します:
|
||||||
|
|
||||||
|
```c
|
||||||
|
uint16_t macro_kc = (keycode == MO(_DYN) ? DYN_REC_STOP : keycode);
|
||||||
|
|
||||||
|
if (!process_record_dynamic_macro(macro_kc, record)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### ユーザフック
|
||||||
|
|
||||||
|
カスタム機能とフィードバックオプションを動的マクロ機能に追加するために使うことができるフックが幾つかあります。これによりある程度のカスタマイズが可能になります。
|
||||||
|
|
||||||
|
direction がどのマクロであるかを示すことに注意してください。`1` がマクロ 1、`-1` がマクロ 2、0 がマクロ無しです。
|
||||||
|
|
||||||
|
* `dynamic_macro_record_start_user(void)` - マクロの記録を開始する時に起動されます。
|
||||||
|
* `dynamic_macro_play_user(int8_t direction)` - マクロを再生する時に起動されます。
|
||||||
|
* `dynamic_macro_record_key_user(int8_t direction, keyrecord_t *record)` - マクロの記録中に各キー押下で起動されます。
|
||||||
|
* `dynamic_macro_record_end_user(int8_t direction)` - マクロの記録を停止した時に起動されます。
|
||||||
|
|
||||||
|
さらに、動的マクロ機能が有効な場合にバックライトを点滅させるために `dynamic_macro_led_blink()` を呼び出すことができます。
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# グレイブエスケープ
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.8.123:docs/feature_grave_esc.md
|
||||||
|
git diff 0.8.123 HEAD -- docs/feature_grave_esc.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
60% キーボード、またはファンクションキー行の無い他のレイアウトを使っている場合、専用の Escape キーが無いことに気付くでしょう。グレイブエスケープは grave キー (<code>`</code> および `~`) を Escape と共有することができる機能です。
|
||||||
|
|
||||||
|
## 使用法
|
||||||
|
|
||||||
|
キーマップ内の `KC_GRAVE` キー (通常は`1` キーの左)を `KC_GESC` に置き換えます。ほとんどの場合、このキーは押された時に `KC_ESC` を出力します。ただし、Shift あるいは GUI を押したままにすると、代わりに `KC_GRV` を出力します。
|
||||||
|
|
||||||
|
## OS に見えるもの
|
||||||
|
|
||||||
|
メアリーがキーボードで GESC を押すと、OS には KC_ESC 文字が見えます。メアリーが Shift を押しながら GESC を押すと、`~` または Shift された時はバッククォートを出力します。彼女が GUI/CMD/WIN を押したままにすると、1つの <code>`</code> 文字を出力します。
|
||||||
|
|
||||||
|
## キーコード
|
||||||
|
|
||||||
|
| キー | エイリアス | 説明 |
|
||||||
|
|---------|-----------|------------------------------------------------------------------|
|
||||||
|
| `KC_GESC` | `GRAVE_ESC` | 押された場合に Escape。Shift あるいは GUI が押されたままの場合は <code>`</code> |
|
||||||
|
|
||||||
|
### 注意事項
|
||||||
|
|
||||||
|
macOS では、Command+<code>`</code> はデフォルトで "次のウィンドウを操作対象にする" にマップされます。つまりバッククォートを出力しません。さらに、ショートカットがキーボード環境設定で変更された場合でも、ターミナルは常にこのショートカットを認識してウィンドウを切り替えます。
|
||||||
|
|
||||||
|
## 設定
|
||||||
|
|
||||||
|
グレイブエスケープが壊す可能性のあるキーの組み合わせが幾つかあります。その中には、Windows では Control+Shift+Escape、macOSでは Command+Option+Escape があります。これを回避するには、`config.h` で以下のオプションを `#define` することができます:
|
||||||
|
|
||||||
|
| 定義 | 説明 |
|
||||||
|
|--------------------------|-----------------------------------------|
|
||||||
|
| `GRAVE_ESC_ALT_OVERRIDE` | Alt が押された場合、常に Escape を送信する |
|
||||||
|
| `GRAVE_ESC_CTRL_OVERRIDE` | Control が押された場合、常に Escape を送信する |
|
||||||
|
| `GRAVE_ESC_GUI_OVERRIDE` | GUI が押された場合、常に Escape を送信する |
|
||||||
|
| `GRAVE_ESC_SHIFT_OVERRIDE` | Shift が押された場合、常に Escape を送信する |
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# HD44780 LCD ディスプレイ
|
||||||
|
|
||||||
|
<!---
|
||||||
|
original document: 0.8.123:docs/feature_hd44780.md
|
||||||
|
git diff 0.8.123 HEAD -- docs/feature_hd44780.md | cat
|
||||||
|
-->
|
||||||
|
|
||||||
|
これは Peter Fleury の LCD ライブラリの統合です。このページは基本について説明します。[詳細なドキュメントについてはこのページをご覧ください](http://homepage.hispeed.ch/peterfleury/doxygen/avr-gcc-libraries/group__pfleury__lcd.html) (訳注)原文のリンク先のページは、サービスの終了に伴って削除されています。移行先は (http://www.peterfleury.epizy.com/doxygen/avr-gcc-libraries/group__pfleury__lcd.html) と思われます。
|
||||||
|
|
||||||
|
HD44780 ディスプレイのサポートを有効にするには、キーボードの `rules.mk` の `HD44780_ENABLE` フラグを yes に設定します。
|
||||||
|
|
||||||
|
## 設定
|
||||||
|
|
||||||
|
ディスプレイで使用されるピンとディスプレイの行と列の数を、キーボードの `config.h` に設定する必要があります。
|
||||||
|
|
||||||
|
|
||||||
|
HD44780 のラベルが付いたセクションのコメントを外し、必要に応じてパラメータを変更します。
|
||||||
|
````
|
||||||
|
/*
|
||||||
|
* HD44780 LCD ディスプレイ設定
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LCD_LINES 2 //< ディスプレイの表示行数
|
||||||
|
#define LCD_DISP_LENGTH 16 //< ディスプレイの行ごとの表示文字数
|
||||||
|
#define LCD_IO_MODE 1 //< 0: メモリマップモード 1: IO ポートモード
|
||||||
|
#if LCD_IO_MODE
|
||||||
|
#define LCD_PORT PORTB //< LCD 行のためのポート
|
||||||
|
#define LCD_DATA0_PORT LCD_PORT //< 4ビットデータビット 0 のポート
|
||||||
|
#define LCD_DATA1_PORT LCD_PORT //< 4ビットデータビット 1 のポート
|
||||||
|
#define LCD_DATA2_PORT LCD_PORT //< 4ビットデータビット 2 のポート
|
||||||
|
#define LCD_DATA3_PORT LCD_PORT //< 4ビットデータビット 3 のポート
|
||||||
|
#define LCD_DATA0_PIN 4 //< 4ビットデータビット 0 のピン
|
||||||
|
#define LCD_DATA1_PIN 5 //< 4ビットデータビット 1 のピン
|
||||||
|
#define LCD_DATA2_PIN 6 //< 4ビットデータビット 2 のピン
|
||||||
|
#define LCD_DATA3_PIN 7 //< 4ビットデータビット 3 のピン
|
||||||
|
#define LCD_RS_PORT LCD_PORT //< RS 線のためのポート
|
||||||
|
#define LCD_RS_PIN 3 //< RS 線のためのピン
|
||||||
|
#define LCD_RW_PORT LCD_PORT //< RW 線のためのポート
|
||||||
|
#define LCD_RW_PIN 2 //< RW 線のためのピン
|
||||||
|
#define LCD_E_PORT LCD_PORT //< Enable 線のためのポート
|
||||||
|
#define LCD_E_PIN 1 //< Enable 線のためのピン
|
||||||
|
#endif
|
||||||
|
````
|
||||||
|
|
||||||
|
他のプロパティを設定する必要がある場合は、それらを `quantum/hd44780.h` からコピーし、`config.h` に設定することができます。(訳注)`quantum/hd44780.h` は `drivers/avr/hd44780.h` の間違いではないかと思われます。
|
||||||
|
|
||||||
|
## 使用法
|
||||||
|
|
||||||
|
ディスプレイを初期化するには、以下のパラメータのうちの1つを使って `lcd_init()` を呼び出します:
|
||||||
|
````
|
||||||
|
LCD_DISP_OFF : ディスプレイオフ
|
||||||
|
LCD_DISP_ON : ディスプレイオン、カーソルオフ
|
||||||
|
LCD_DISP_ON_CURSOR : ディスプレイオン、カーソルオン
|
||||||
|
LCD_DISP_ON_CURSOR_BLINK : ディスプレイオン、点滅カーソル
|
||||||
|
````
|
||||||
|
これはキーボードの `matrix_init_kb` またはキーマップの `matrix_init_user` で行うのが最適です。
|
||||||
|
使用前にディスプレイをクリアすることをお勧めします。
|
||||||
|
そのためには、`lcd_clrsrc()` を呼びます。
|
||||||
|
|
||||||
|
ディスプレイに何かを表示するには、最初に `lcd_gotoxy(column, line)` を呼びます。最初の行の先頭に移動するには、`lcd_gotoxy(0, 0)` を呼び出し、その後 `lcd_puts("example string")` を使って文字列を出力します。
|
||||||
|
|
||||||
|
ディスプレイを制御することができる、より多くのメソッドがあります。[詳細なドキュメントについてはリンクされたページをご覧ください](http://homepage.hispeed.ch/peterfleury/doxygen/avr-gcc-libraries/group__pfleury__lcd.html) (訳注)原文のリンク先のページは、サービスの終了に伴って削除されています。移行先は (http://www.peterfleury.epizy.com/doxygen/avr-gcc-libraries/group__pfleury__lcd.html) と思われます。
|
||||||
@@ -66,9 +66,14 @@ After Homebrew is installed run these commands:
|
|||||||
|
|
||||||
You will need to install Git and Python. It's very likely that you already have both, but if not, one of the following commands should install them:
|
You will need to install Git and Python. It's very likely that you already have both, but if not, one of the following commands should install them:
|
||||||
|
|
||||||
* Debian / Ubuntu / Devuan: `apt-get install git python3 && python3 -m pip install qmk`
|
* Debian / Ubuntu / Devuan: `sudo apt install git python3 python3-pip`
|
||||||
* Fedora / Red Hat / CentOS: `yum install git python3 && python3 -m pip install qmk`
|
* Fedora / Red Hat / CentOS: `sudo yum install git python3 python3-pip`
|
||||||
* Arch: `yay -S qmk` (or use any other AUR Helper)
|
* Arch / Manjaro: `sudo pacman -S git python python-pip python-setuptools libffi`
|
||||||
|
|
||||||
|
|
||||||
|
Install the global CLI to bootstrap your system:
|
||||||
|
|
||||||
|
`python3 -m pip install --user qmk` (on Arch-based distros you can also try the `qmk` package from AUR (**note**: it's maintained by a community member): `yay -S qmk`)
|
||||||
|
|
||||||
## 3. Run QMK Setup :id=set-up-qmk
|
## 3. Run QMK Setup :id=set-up-qmk
|
||||||
|
|
||||||
@@ -78,6 +83,12 @@ After installing QMK you can set it up with this command:
|
|||||||
|
|
||||||
In most situations you will want to answer Yes to all of the prompts.
|
In most situations you will want to answer Yes to all of the prompts.
|
||||||
|
|
||||||
|
?>**Note on Debian, Ubuntu and their derivatives**:
|
||||||
|
It's possible, that you will get an error saying something like: `bash: qmk: command not found`.
|
||||||
|
This is due to a [bug](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839155) Debian introduced with their Bash 4.4 release, which removed `$HOME/.local/bin` from the PATH. This bug was later fixed on Debian and Ubuntu.
|
||||||
|
Sadly, Ubuntu reitroduced this bug and is [yet to fix it](https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562).
|
||||||
|
Luckily, the fix is easy. Run this as your user: `echo "PATH=$HOME/.local/bin:$PATH" >> $HOME/.bashrc && source $HOME/.bashrc`
|
||||||
|
|
||||||
?> If you already know [how to use GitHub](getting_started_github.md), we recommend that you create your own fork and use `qmk setup <github_username>/qmk_firmware` to clone your personal fork. If you don't know what that means you can safely ignore this message.
|
?> If you already know [how to use GitHub](getting_started_github.md), we recommend that you create your own fork and use `qmk setup <github_username>/qmk_firmware` to clone your personal fork. If you don't know what that means you can safely ignore this message.
|
||||||
|
|
||||||
## 4. Test Your Build Environment
|
## 4. Test Your Build Environment
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ In that model you would emulate the input, and expect a certain output from the
|
|||||||
|
|
||||||
# Tracing Variables :id=tracing-variables
|
# Tracing Variables :id=tracing-variables
|
||||||
|
|
||||||
Sometimes you might wonder why a variable gets changed and where, and this can be quite tricky to track down without having a debugger. It's of course possible to manually add print statements to track it, but you can also enable the variable trace feature. This works for both for variables that are changed by the code, and when the variable is changed by some memory corruption.
|
Sometimes you might wonder why a variable gets changed and where, and this can be quite tricky to track down without having a debugger. It's of course possible to manually add print statements to track it, but you can also enable the variable trace feature. This works for both variables that are changed by the code, and when the variable is changed by some memory corruption.
|
||||||
|
|
||||||
To take the feature into use add `VARIABLE_TRACE=x` to the end of you make command. `x` represents the number of variables you want to trace, which is usually 1.
|
To take the feature into use add `VARIABLE_TRACE=x` to the end of you make command. `x` represents the number of variables you want to trace, which is usually 1.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// bootloader (first top leftmost key)
|
||||||
|
#define BOOTMAGIC_LITE_ROW 0
|
||||||
|
#define BOOTMAGIC_LITE_COLUMN 1
|
||||||
|
|
||||||
|
|
||||||
|
// Behaviors That Can Be Configured
|
||||||
|
|
||||||
|
|
||||||
|
#define TAPPING_TERM 250
|
||||||
|
// how long before a tap becomes a hold, if set above 500, a key tapped during the tapping term will turn it into a hold too
|
||||||
|
|
||||||
|
#define PERMISSIVE_HOLD
|
||||||
|
// makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the TAPPING_TERM
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT
|
||||||
|
// makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the TAPPING_TERM for both keys.
|
||||||
|
|
||||||
|
#define TAPPING_FORCE_HOLD
|
||||||
|
// makes it possible to use a dual role key as modifier shortly after having been tapped (see Hold after tap)
|
||||||
|
// Breaks any Tap Toggle functionality (TT or the One Shot Tap Toggle)
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
#define TAPPING_TERM_PER_KEY
|
||||||
|
// enables handling for per key TAPPING_TERM settings
|
||||||
|
#define RETRO_TAPPING
|
||||||
|
// tap anyway, even after TAPPING_TERM, if there was no other key interruption between press and release
|
||||||
|
#define TAPPING_TOGGLE 2
|
||||||
|
// how many taps before triggering the toggle
|
||||||
|
#define LEADER_TIMEOUT 300
|
||||||
|
// how long before the leader key times out
|
||||||
|
// If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the LEADER_PER_KEY_TIMING option, which resets the timeout after each key is tapped.
|
||||||
|
#define LEADER_PER_KEY_TIMING
|
||||||
|
// sets the timer for leader key chords to run on each key press rather than overall
|
||||||
|
#define LEADER_KEY_STRICT_KEY_PROCESSING
|
||||||
|
// Disables keycode filtering for Mod-Tap and Layer-Tap keycodes. Eg, if you enable this, you would need to specify MT(MOD_CTL, KC_A) if you want to use KC_A.
|
||||||
|
#define ONESHOT_TIMEOUT 300
|
||||||
|
// how long before oneshot times out
|
||||||
|
#define ONESHOT_TAP_TOGGLE 2
|
||||||
|
// how many taps before oneshot toggle is triggered
|
||||||
|
#define QMK_KEYS_PER_SCAN 4
|
||||||
|
// Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
|
||||||
|
#define COMBO_COUNT 2
|
||||||
|
// Set this to the number of combos that you're using in the Combo feature.
|
||||||
|
#define COMBO_TERM 200
|
||||||
|
// how long for the Combo keys to be detected. Defaults to TAPPING_TERM if not defined.
|
||||||
|
#define TAP_CODE_DELAY 100
|
||||||
|
// Sets the delay between register_code and unregister_code, if you're having issues with it registering properly (common on VUSB boards). The value is in milliseconds.
|
||||||
|
#define TAP_HOLD_CAPS_DELAY 80
|
||||||
|
// Sets the delay for Tap Hold keys (LT, MT) when using KC_CAPSLOCK keycode, as this has some special handling on MacOS. The value is in milliseconds, and defaults to 80 ms if not defined. For macOS, you may want to set this to 200 or higher.
|
||||||
|
*/
|
||||||
@@ -0,0 +1,246 @@
|
|||||||
|
/* Copyright 2019 Stefano Marago'
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* see jj40/stevexyz for more information
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
LAYER_HOME, // home base layer
|
||||||
|
LAYER_FUNC, // function keys and cursors
|
||||||
|
LAYER_NUMSYM, // numbers and other characters
|
||||||
|
LAYER_SYST, // media, mouse and other system keys
|
||||||
|
LAYER_ARROWPAD,
|
||||||
|
LAYER_NUMPAD,
|
||||||
|
LAYER_MEDIAPAD,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
CK_TRIPLEZERO = SAFE_RANGE,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* LEGEND:
|
||||||
|
*
|
||||||
|
* ,--------------------------------.
|
||||||
|
* | Top row: shifted character |
|
||||||
|
* | Central row: standard char |
|
||||||
|
* | Bottom row: hold modifier |
|
||||||
|
* `--------------------------------'
|
||||||
|
*
|
||||||
|
* "____" means free to be assigned
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Qwerty Home Layer
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | Q | W | E | R | T | Y | U | I | O | P |
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | A | S | D | F | G | H | J | K | L | Enter|
|
||||||
|
* | Shift| FnNav|NumSym| AltGr| OSkey| OSkey| AltGr| FnNav|NumSym| Shift|
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | Z | X | C | V | B | N | M | Space|
|
||||||
|
* | Ctrl | Alt | FnNav|NumSym| Shift| Alt | Ctrl | Shift|
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_HOME] = LAYOUT_ortho_3x10(
|
||||||
|
LT(LAYER_ARROWPAD, KC_Q), LT(LAYER_NUMPAD, KC_W), LT(LAYER_MEDIAPAD, KC_E), KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||||
|
MT(MOD_LSFT, KC_A), LT(LAYER_FUNC, KC_S), LT(LAYER_NUMSYM, KC_D), MT(MOD_RALT, KC_F), MT(MOD_LGUI, KC_G), MT(MOD_RGUI, KC_H), MT(MOD_RALT, KC_J), LT(LAYER_FUNC, KC_K), LT(LAYER_NUMSYM, KC_L), MT(MOD_RSFT, KC_ENT),
|
||||||
|
XXXXXXX, MT(MOD_LCTL, KC_Z), MT(MOD_LALT, KC_X), LT(LAYER_FUNC, KC_C), LT(LAYER_NUMSYM, KC_V), MT(MOD_LSFT, KC_B), MT(MOD_LALT, KC_N), MT(MOD_RCTL, KC_M), MT(MOD_RSFT, KC_SPC), XXXXXXX ),
|
||||||
|
|
||||||
|
/* Function and Navigation Layer
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 |
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | ESC | Home | PgDn | PgUp | End | Left | Down | Up | Right| Baksp|
|
||||||
|
* | Shift| ____ |SysLay| AltGr| OSkey| OSkey| AltGr| ____ |SysLay| Shift|
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | ____ | ____ | | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* | Ctrl | Alt | ____ |SysLay| Shift| Alt | Ctrl | Shift|
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_FUNC] = LAYOUT_ortho_3x10(
|
||||||
|
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||||
|
MT(MOD_LSFT, KC_ESC), KC_HOME, LT(LAYER_SYST, KC_PGDN), MT(MOD_RALT, KC_PGUP), MT(MOD_LGUI, KC_END), MT(MOD_RGUI, KC_LEFT), MT(MOD_RALT, KC_DOWN), KC_UP, LT(LAYER_SYST, KC_RGHT), MT(MOD_RSFT, KC_BSPC),
|
||||||
|
XXXXXXX, KC_LCTL, KC_LALT, KC_NO, MO(LAYER_SYST), KC_LSFT, KC_LALT, KC_RCTL, MT(MOD_RSFT, KC_SPC), XXXXXXX ),
|
||||||
|
|
||||||
|
/* Number and Symbols Layer
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | ! | @ | # | $ | % | ^ | & | * | ( | ) |
|
||||||
|
* | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | ~ | _ | + | { | } | | | : | " | |
|
||||||
|
* | TAB | ` | - | = | [ | ] | \ | ; | ' | Del |
|
||||||
|
* | Shift|SysLay| ____ | AltGr| OSkey| OSkey| AltGr|SysLay| ____ | Shift|
|
||||||
|
* ' -----+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | < | > | ? | |
|
||||||
|
* | ____ | ____ | ____ | | , | . | / | ____ |
|
||||||
|
* | Ctrl | Alt |SysLay| ____ | Shift| Alt | Ctrl | Shift|
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_NUMSYM] = LAYOUT_ortho_3x10(
|
||||||
|
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||||
|
MT(MOD_LSFT, KC_TAB), LT(LAYER_SYST, KC_GRV), KC_MINS, MT(MOD_RALT, KC_EQL), MT(MOD_LGUI, KC_LBRC), MT(MOD_RGUI, KC_RBRC), MT(MOD_RALT, KC_BSLS), LT(LAYER_SYST, KC_SCLN), KC_QUOT, MT(MOD_RSFT, KC_DEL),
|
||||||
|
XXXXXXX, KC_LCTL, KC_LALT, MO(LAYER_SYST), KC_NO, MT(MOD_LSFT, KC_COMM), MT(MOD_LALT, KC_DOT), MT(MOD_RCTL, KC_SLSH), MT(MOD_RSFT, KC_SPC), XXXXXXX ),
|
||||||
|
|
||||||
|
/* System Layer
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | F11 | F12 | Play | Next |MsWhlU|MsBtn1|OSMenu|SysReq|MsBtn2|Backsp|
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | Caps | Mute | Vol- | Vol+ |MsWhlD|MsLeft|MSDown| MsUp |MsRigh| Ins |
|
||||||
|
* | Shift| ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | Shift|
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | ____ | ____ | | |PrnScr|ScrLck|Pause | ____ |
|
||||||
|
* | Ctrl | Alt | ____ | ____ | ____ | ____ | ____ | Shift|
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
* simplified view (for media and mouse there are dedicated layers)
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | F11 | F12 | | | | |OSMenu|SysReq| |Backsp|
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | Caps | | | | | | | | | Ins |
|
||||||
|
* | Shift| ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | Shift|
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------+
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | | | | |PrnScr|ScrLck|Pause | |
|
||||||
|
* | Ctrl | Alt | ____ | ____ | ____ | ____ | ____ | Shift|
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_SYST] = LAYOUT_ortho_3x10(
|
||||||
|
KC_F11, KC_F12, KC_MPLY, KC_MNXT, KC_MS_WH_UP, KC_MS_BTN1, KC_APP, KC_SYSREQ, KC_MS_BTN2, KC_BSPC,
|
||||||
|
MT(MOD_LSFT, KC_CAPS), KC_MUTE, KC_VOLD, KC_VOLU, KC_MS_WH_DOWN, KC_MS_LEFT, KC_MS_DOWN, KC_MS_UP, KC_MS_RIGHT, MT(MOD_RSFT, KC_INS),
|
||||||
|
XXXXXXX, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, MT(MOD_RSFT, KC_SPC), XXXXXXX ),
|
||||||
|
|
||||||
|
/* ArrowPad (mod su Q) /------mouse-------\ /-----cursor-------\
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | | | |MsBtn1| MsUp |MsBtn2| Home | Up | PgUp |Backsp|
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | | | |MsLeft|MsDown|MsRigh| Left | Down | Right| Enter|
|
||||||
|
* | Shift| ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | | |MsWhlU|MsDown|MsWhlD| End | Down | PdDn |
|
||||||
|
* | Ctrl | Alt | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_ARROWPAD] = LAYOUT_ortho_3x10(
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, KC_HOME, KC_UP, KC_PGUP, KC_BSPC,
|
||||||
|
KC_LSFT, KC_NO, KC_NO, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_LEFT, KC_DOWN, KC_RIGHT, KC_ENT,
|
||||||
|
XXXXXXX, KC_LCTL, KC_LALT, KC_MS_WH_UP, KC_MS_DOWN, KC_MS_WH_DOWN, KC_END, KC_DOWN, KC_PGDN, XXXXXXX ),
|
||||||
|
|
||||||
|
/* NumPad (mod su W)
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | | | / | * | - |Backsp| 7 | 8 | 9 | 0 |
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | | | | = | + | . | 4 | 5 | 6 | Enter|
|
||||||
|
* | Shift| ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | | | | Tab | , | 1 | 2 | 3 |
|
||||||
|
* | Ctrl | Alt | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_NUMPAD] = LAYOUT_ortho_3x10(
|
||||||
|
KC_NO, KC_NO, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS, KC_BSPC, KC_7, KC_8, KC_9, KC_0,
|
||||||
|
KC_LSFT, KC_NO, KC_NO, KC_KP_EQUAL, KC_KP_PLUS, KC_DOT, KC_4, KC_5, KC_6, KC_ENT,
|
||||||
|
XXXXXXX, KC_LCTL, KC_LALT, KC_NO, KC_TAB, KC_COMM, KC_1, KC_2, KC_3, XXXXXXX ),
|
||||||
|
|
||||||
|
/* MediaPad (mod su E)
|
||||||
|
* ,---------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | | | | | | | | Vol+ | | |
|
||||||
|
* | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* |------+------+------+------+-------------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | |
|
||||||
|
* | | | | | | | Prev | Play | Next | |
|
||||||
|
* | Shift| ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* '------+------+------+------+------+------|------+------+------+------'
|
||||||
|
* | | | | | | | | |
|
||||||
|
* | | | | | | Mute | Vol- | |
|
||||||
|
* | Ctrl | Alt | ____ | ____ | ____ | ____ | ____ | ____ |
|
||||||
|
* '-------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[LAYER_MEDIAPAD] = LAYOUT_ortho_3x10(
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_VOLU, KC_NO, KC_NO,
|
||||||
|
KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MPRV, KC_MPLY, KC_MNXT, KC_NO,
|
||||||
|
XXXXXXX, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_NO, KC_MUTE, KC_VOLD, KC_NO, XXXXXXX ),
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
// eeconfig_init(); // reset keyboard to a standard default state; useful when new releases messup with eeprom values
|
||||||
|
// set num lock on at start (for numonly layer to work)
|
||||||
|
if (!host_keyboard_led_state().num_lock) {
|
||||||
|
tap_code(KC_NUMLOCK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case CK_TRIPLEZERO:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
SEND_STRING("000");
|
||||||
|
} // else { when released... }
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
void keyboard_pre_init_user(void) {
|
||||||
|
// Call the keyboard pre init code.
|
||||||
|
|
||||||
|
// Set our LED pins as output
|
||||||
|
setPinOutput(D5);
|
||||||
|
setPinOutput(B0);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool led_update_user(led_t led_state) {
|
||||||
|
writePin(D5, !led_state.num_lock);
|
||||||
|
writePin(B0, !led_state.caps_lock);
|
||||||
|
return false; // prevent keyboard from processing state
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# gherkin super micro edition
|
||||||
|
|
||||||
|
With this configuration the "28" layout first experimented on the plank-like jj40 is being ported to a more proper board, leaving just two keys not used.
|
||||||
|
|
||||||
|
For more information please have a look at https://github.com/stevexyz/qmk_firmware/blob/master/keyboards/jj40/keymaps/stevexyz/readme.md
|
||||||
|
|
||||||
|
The image below explain the main layers. In addition to them with q, w and e there are three specific dedicated layers for cursors/mouse, numpad and media.
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Happy hacking!
|
||||||
|
_Stefano
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Build Options (yes/no)
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Just bootloader enabled with keys
|
||||||
|
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
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
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
|
||||||
|
TAP_DANCE_ENABLE = no
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend (it uses the same timer as BACKLIGHT_ENABLE)
|
||||||
|
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
RGBLIGHT_ENABLE = no
|
||||||
@@ -147,7 +147,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
|||||||
rgblight_sethsv_at( 0, 0, 0, 0);
|
rgblight_sethsv_at( 0, 0, 0, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rgblight_set_effect_range( 1, 4);
|
rgblight_set_effect_range( 1, 5);
|
||||||
#endif
|
#endif
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0xFEED
|
||||||
#define PRODUCT_ID 0x3060
|
#define PRODUCT_ID 0x36E1
|
||||||
#define DEVICE_VER 0x0007
|
#define DEVICE_VER 0x0007
|
||||||
#define MANUFACTURER Salicylic_Acid
|
#define MANUFACTURER Salicylic_Acid
|
||||||
#define PRODUCT 7skb
|
#define PRODUCT 7skb
|
||||||
@@ -52,9 +52,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define RGB_DI_PIN D3
|
#define RGB_DI_PIN D3
|
||||||
|
|
||||||
#ifndef RGBLED_NUM
|
#ifndef RGBLED_NUM
|
||||||
#define RGBLED_NUM 10
|
#define RGBLED_NUM 12
|
||||||
#define RGBLIGHT_SPLIT
|
#define RGBLIGHT_SPLIT
|
||||||
#define RGBLED_SPLIT { 5, 5 }
|
#define RGBLED_SPLIT { 6, 6 }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RGBLIGHT_ANIMATIONS
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
|||||||
@@ -0,0 +1,714 @@
|
|||||||
|
/*
|
||||||
|
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file rt/templates/chconf.h
|
||||||
|
* @brief Configuration file template.
|
||||||
|
* @details A copy of this file must be placed in each project directory, it
|
||||||
|
* contains the application specific kernel settings.
|
||||||
|
*
|
||||||
|
* @addtogroup config
|
||||||
|
* @details Kernel related settings and hooks.
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CHCONF_H
|
||||||
|
#define CHCONF_H
|
||||||
|
|
||||||
|
#define _CHIBIOS_RT_CONF_
|
||||||
|
#define _CHIBIOS_RT_CONF_VER_6_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System timers settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System time counter resolution.
|
||||||
|
* @note Allowed values are 16 or 32 bits.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_ST_RESOLUTION)
|
||||||
|
#define CH_CFG_ST_RESOLUTION 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System tick frequency.
|
||||||
|
* @details Frequency of the system timer that drives the system ticks. This
|
||||||
|
* setting also defines the system tick time unit.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_ST_FREQUENCY)
|
||||||
|
#define CH_CFG_ST_FREQUENCY 10000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time intervals data size.
|
||||||
|
* @note Allowed values are 16, 32 or 64 bits.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_INTERVALS_SIZE)
|
||||||
|
#define CH_CFG_INTERVALS_SIZE 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time types data size.
|
||||||
|
* @note Allowed values are 16 or 32 bits.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_TIME_TYPES_SIZE)
|
||||||
|
#define CH_CFG_TIME_TYPES_SIZE 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time delta constant for the tick-less mode.
|
||||||
|
* @note If this value is zero then the system uses the classic
|
||||||
|
* periodic tick. This value represents the minimum number
|
||||||
|
* of ticks that is safe to specify in a timeout directive.
|
||||||
|
* The value one is not valid, timeouts are rounded up to
|
||||||
|
* this value.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_ST_TIMEDELTA)
|
||||||
|
#define CH_CFG_ST_TIMEDELTA 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name Kernel parameters and options
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Round robin interval.
|
||||||
|
* @details This constant is the number of system ticks allowed for the
|
||||||
|
* threads before preemption occurs. Setting this value to zero
|
||||||
|
* disables the preemption for threads with equal priority and the
|
||||||
|
* round robin becomes cooperative. Note that higher priority
|
||||||
|
* threads can still preempt, the kernel is always preemptive.
|
||||||
|
* @note Disabling the round robin preemption makes the kernel more compact
|
||||||
|
* and generally faster.
|
||||||
|
* @note The round robin preemption is not supported in tickless mode and
|
||||||
|
* must be set to zero in that case.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_TIME_QUANTUM)
|
||||||
|
#define CH_CFG_TIME_QUANTUM 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Managed RAM size.
|
||||||
|
* @details Size of the RAM area to be managed by the OS. If set to zero
|
||||||
|
* then the whole available RAM is used. The core memory is made
|
||||||
|
* available to the heap allocator and/or can be used directly through
|
||||||
|
* the simplified core memory allocator.
|
||||||
|
*
|
||||||
|
* @note In order to let the OS manage the whole RAM the linker script must
|
||||||
|
* provide the @p __heap_base__ and @p __heap_end__ symbols.
|
||||||
|
* @note Requires @p CH_CFG_USE_MEMCORE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_MEMCORE_SIZE)
|
||||||
|
#define CH_CFG_MEMCORE_SIZE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread. The application @p main()
|
||||||
|
* function becomes the idle thread and must implement an
|
||||||
|
* infinite loop.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_NO_IDLE_THREAD)
|
||||||
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name Performance options
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS optimization.
|
||||||
|
* @details If enabled then time efficient rather than space efficient code
|
||||||
|
* is used when two possible implementations exist.
|
||||||
|
*
|
||||||
|
* @note This is not related to the compiler optimization options.
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_OPTIMIZE_SPEED)
|
||||||
|
#define CH_CFG_OPTIMIZE_SPEED FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name Subsystem options
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Measurement APIs.
|
||||||
|
* @details If enabled then the time measurement APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TM)
|
||||||
|
#define CH_CFG_USE_TM FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Threads registry APIs.
|
||||||
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_REGISTRY)
|
||||||
|
#define CH_CFG_USE_REGISTRY TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Threads synchronization APIs.
|
||||||
|
* @details If enabled then the @p chThdWait() function is included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_WAITEXIT)
|
||||||
|
#define CH_CFG_USE_WAITEXIT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Semaphores APIs.
|
||||||
|
* @details If enabled then the Semaphores APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_SEMAPHORES)
|
||||||
|
#define CH_CFG_USE_SEMAPHORES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Semaphores queuing mode.
|
||||||
|
* @details If enabled then the threads are enqueued on semaphores by
|
||||||
|
* priority rather than in FIFO order.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE. Enable this if you have special
|
||||||
|
* requirements.
|
||||||
|
* @note Requires @p CH_CFG_USE_SEMAPHORES.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY)
|
||||||
|
#define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Mutexes APIs.
|
||||||
|
* @details If enabled then the mutexes APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MUTEXES)
|
||||||
|
#define CH_CFG_USE_MUTEXES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables recursive behavior on mutexes.
|
||||||
|
* @note Recursive mutexes are heavier and have an increased
|
||||||
|
* memory footprint.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
* @note Requires @p CH_CFG_USE_MUTEXES.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MUTEXES_RECURSIVE)
|
||||||
|
#define CH_CFG_USE_MUTEXES_RECURSIVE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Conditional Variables APIs.
|
||||||
|
* @details If enabled then the conditional variables APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
* @note Requires @p CH_CFG_USE_MUTEXES.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_CONDVARS)
|
||||||
|
#define CH_CFG_USE_CONDVARS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Conditional Variables APIs with timeout.
|
||||||
|
* @details If enabled then the conditional variables APIs with timeout
|
||||||
|
* specification are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
* @note Requires @p CH_CFG_USE_CONDVARS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_CONDVARS_TIMEOUT)
|
||||||
|
#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Events Flags APIs.
|
||||||
|
* @details If enabled then the event flags APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_EVENTS)
|
||||||
|
#define CH_CFG_USE_EVENTS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Events Flags APIs with timeout.
|
||||||
|
* @details If enabled then the events APIs with timeout specification
|
||||||
|
* are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
* @note Requires @p CH_CFG_USE_EVENTS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_EVENTS_TIMEOUT)
|
||||||
|
#define CH_CFG_USE_EVENTS_TIMEOUT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Synchronous Messages APIs.
|
||||||
|
* @details If enabled then the synchronous messages APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MESSAGES)
|
||||||
|
#define CH_CFG_USE_MESSAGES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Synchronous Messages queuing mode.
|
||||||
|
* @details If enabled then messages are served by priority rather than in
|
||||||
|
* FIFO order.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE. Enable this if you have special
|
||||||
|
* requirements.
|
||||||
|
* @note Requires @p CH_CFG_USE_MESSAGES.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
|
||||||
|
#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Mailboxes APIs.
|
||||||
|
* @details If enabled then the asynchronous messages (mailboxes) APIs are
|
||||||
|
* included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
* @note Requires @p CH_CFG_USE_SEMAPHORES.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MAILBOXES)
|
||||||
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Core Memory Manager APIs.
|
||||||
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCORE)
|
||||||
|
#define CH_CFG_USE_MEMCORE TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Heap Allocator APIs.
|
||||||
|
* @details If enabled then the memory heap allocator APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
* @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or
|
||||||
|
* @p CH_CFG_USE_SEMAPHORES.
|
||||||
|
* @note Mutexes are recommended.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_HEAP)
|
||||||
|
#define CH_CFG_USE_HEAP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory Pools Allocator APIs.
|
||||||
|
* @details If enabled then the memory pools allocator APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMPOOLS)
|
||||||
|
#define CH_CFG_USE_MEMPOOLS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Objects FIFOs APIs.
|
||||||
|
* @details If enabled then the objects FIFOs APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_OBJ_FIFOS)
|
||||||
|
#define CH_CFG_USE_OBJ_FIFOS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Pipes APIs.
|
||||||
|
* @details If enabled then the pipes APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_PIPES)
|
||||||
|
#define CH_CFG_USE_PIPES FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Dynamic Threads APIs.
|
||||||
|
* @details If enabled then the dynamic threads creation APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
* @note Requires @p CH_CFG_USE_WAITEXIT.
|
||||||
|
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_DYNAMIC)
|
||||||
|
#define CH_CFG_USE_DYNAMIC FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name Objects factory options
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Objects Factory APIs.
|
||||||
|
* @details If enabled then the objects factory APIs are included in the
|
||||||
|
* kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_FACTORY)
|
||||||
|
#define CH_CFG_USE_FACTORY FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Maximum length for object names.
|
||||||
|
* @details If the specified length is zero then the name is stored by
|
||||||
|
* pointer but this could have unintended side effects.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH)
|
||||||
|
#define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the registry of generic objects.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
|
||||||
|
#define CH_CFG_FACTORY_OBJECTS_REGISTRY FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables factory for generic buffers.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
|
||||||
|
#define CH_CFG_FACTORY_GENERIC_BUFFERS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables factory for semaphores.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_SEMAPHORES)
|
||||||
|
#define CH_CFG_FACTORY_SEMAPHORES FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables factory for mailboxes.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_MAILBOXES)
|
||||||
|
#define CH_CFG_FACTORY_MAILBOXES FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables factory for objects FIFOs.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
|
||||||
|
#define CH_CFG_FACTORY_OBJ_FIFOS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables factory for Pipes.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
|
||||||
|
#define CH_CFG_FACTORY_PIPES FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name Debug options
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, kernel statistics.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_STATISTICS)
|
||||||
|
#define CH_DBG_STATISTICS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, system state check.
|
||||||
|
* @details If enabled the correct call protocol for system APIs is checked
|
||||||
|
* at runtime.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
|
||||||
|
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, parameters checks.
|
||||||
|
* @details If enabled then the checks on the API functions input
|
||||||
|
* parameters are activated.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_ENABLE_CHECKS)
|
||||||
|
#define CH_DBG_ENABLE_CHECKS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, consistency checks.
|
||||||
|
* @details If enabled then all the assertions in the kernel code are
|
||||||
|
* activated. This includes consistency checks inside the kernel,
|
||||||
|
* runtime anomalies and port-defined checks.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_ENABLE_ASSERTS)
|
||||||
|
#define CH_DBG_ENABLE_ASSERTS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, trace buffer.
|
||||||
|
* @details If enabled then the trace buffer is activated.
|
||||||
|
*
|
||||||
|
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_TRACE_MASK)
|
||||||
|
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Trace buffer entries.
|
||||||
|
* @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is
|
||||||
|
* different from @p CH_DBG_TRACE_MASK_DISABLED.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_TRACE_BUFFER_SIZE)
|
||||||
|
#define CH_DBG_TRACE_BUFFER_SIZE 128
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, stack checks.
|
||||||
|
* @details If enabled then a runtime stack check is performed.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
* @note The stack check is performed in a architecture/port dependent way.
|
||||||
|
* It may not be implemented or some ports.
|
||||||
|
* @note The default failure mode is to halt the system with the global
|
||||||
|
* @p panic_msg variable set to @p NULL.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_ENABLE_STACK_CHECK)
|
||||||
|
#define CH_DBG_ENABLE_STACK_CHECK FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, stacks initialization.
|
||||||
|
* @details If enabled then the threads working area is filled with a byte
|
||||||
|
* value when a thread is created. This can be useful for the
|
||||||
|
* runtime measurement of the used stack.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_FILL_THREADS)
|
||||||
|
#define CH_DBG_FILL_THREADS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Debug option, threads profiling.
|
||||||
|
* @details If enabled then a field is added to the @p thread_t structure that
|
||||||
|
* counts the system ticks occurred while executing the thread.
|
||||||
|
*
|
||||||
|
* @note The default is @p FALSE.
|
||||||
|
* @note This debug option is not currently compatible with the
|
||||||
|
* tickless mode.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_DBG_THREADS_PROFILING)
|
||||||
|
#define CH_DBG_THREADS_PROFILING FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name Kernel hooks
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System structure extension.
|
||||||
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
|
/* Add threads custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System initialization hook.
|
||||||
|
* @details User initialization code added to the @p chSysInit() function
|
||||||
|
* just before interrupts are enabled globally.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
|
/* Add threads initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Threads descriptor structure extension.
|
||||||
|
* @details User fields added to the end of the @p thread_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_THREAD_EXTRA_FIELDS \
|
||||||
|
/* Add threads custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Threads initialization hook.
|
||||||
|
* @details User initialization code added to the @p _thread_init() function.
|
||||||
|
*
|
||||||
|
* @note It is invoked from within @p _thread_init() and implicitly from all
|
||||||
|
* the threads creation APIs.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_THREAD_INIT_HOOK(tp) { \
|
||||||
|
/* Add threads initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Threads finalization hook.
|
||||||
|
* @details User finalization code added to the @p chThdExit() API.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_THREAD_EXIT_HOOK(tp) { \
|
||||||
|
/* Add threads finalization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Context switch hook.
|
||||||
|
* @details This hook is invoked just before switching between threads.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \
|
||||||
|
/* Context switch code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ISR enter hook.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_IRQ_PROLOGUE_HOOK() { \
|
||||||
|
/* IRQ prologue code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief ISR exit hook.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_IRQ_EPILOGUE_HOOK() { \
|
||||||
|
/* IRQ epilogue code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread enter hook.
|
||||||
|
* @note This hook is invoked within a critical zone, no OS functions
|
||||||
|
* should be invoked from here.
|
||||||
|
* @note This macro can be used to activate a power saving mode.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_IDLE_ENTER_HOOK() { \
|
||||||
|
/* Idle-enter code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread leave hook.
|
||||||
|
* @note This hook is invoked within a critical zone, no OS functions
|
||||||
|
* should be invoked from here.
|
||||||
|
* @note This macro can be used to deactivate a power saving mode.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_IDLE_LEAVE_HOOK() { \
|
||||||
|
/* Idle-leave code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle Loop hook.
|
||||||
|
* @details This hook is continuously invoked by the idle thread loop.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_IDLE_LOOP_HOOK() { \
|
||||||
|
/* Idle loop code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System tick event hook.
|
||||||
|
* @details This hook is invoked in the system tick handler immediately
|
||||||
|
* after processing the virtual timers queue.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_SYSTEM_TICK_HOOK() { \
|
||||||
|
/* System tick event code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System halt hook.
|
||||||
|
* @details This hook is invoked in case to a system halting error before
|
||||||
|
* the system is halted.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
|
||||||
|
/* System halt code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Trace hook.
|
||||||
|
* @details This hook is invoked each time a new record is written in the
|
||||||
|
* trace buffer.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_TRACE_HOOK(tep) { \
|
||||||
|
/* Trace code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* Port-specific settings (override port settings defaulted in chcore.h). */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
#endif /* CHCONF_H */
|
||||||
|
|
||||||
|
/** @} */
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015 Jun Wako <[email protected]>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xCA04
|
||||||
|
#define PRODUCT_ID 0x0B75
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER CannonKeys
|
||||||
|
#define PRODUCT Obliterated75
|
||||||
|
#define DESCRIPTION Obliterated75 Keyboard
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 6
|
||||||
|
#define MATRIX_COLS 16
|
||||||
|
|
||||||
|
#define MATRIX_COL_PINS { A5, B10, A3, A2, B0, A9, C13, B9, B8, B7, B6, B5, B4, B3, A15, A14 }
|
||||||
|
#define MATRIX_ROW_PINS { A13, B12, B11, B14, A8, A1 }
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN A6
|
||||||
|
#define BACKLIGHT_PWM_DRIVER PWMD3
|
||||||
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
#define BACKLIGHT_PAL_MODE 1
|
||||||
|
#define BACKLIGHT_LEVELS 6
|
||||||
|
#define BACKLIGHT_BREATHING
|
||||||
|
#define BREATHING_PERIOD 6
|
||||||
|
|
||||||
|
/* define if matrix has ghost */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* Set 0 if debouncing isn't needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGB_DI_PIN B15
|
||||||
|
#define RGBLED_NUM 20
|
||||||
|
#define WS2812_SPI SPID2
|
||||||
|
#define WS2812_SPI_MOSI_PAL_MODE 0
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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
|
||||||
@@ -0,0 +1,525 @@
|
|||||||
|
/*
|
||||||
|
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file templates/halconf.h
|
||||||
|
* @brief HAL configuration header.
|
||||||
|
* @details HAL configuration file, this file allows to enable or disable the
|
||||||
|
* various device drivers from your application. You may also use
|
||||||
|
* this file in order to override the device drivers default settings.
|
||||||
|
*
|
||||||
|
* @addtogroup HAL_CONF
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef HALCONF_H
|
||||||
|
#define HALCONF_H
|
||||||
|
|
||||||
|
#define _CHIBIOS_HAL_CONF_
|
||||||
|
#define _CHIBIOS_HAL_CONF_VER_7_0_
|
||||||
|
|
||||||
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the PAL subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_PAL TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the ADC subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_ADC FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the CAN subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_CAN FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the cryptographic subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_CRY FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the DAC subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_DAC FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the GPT subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_GPT FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the I2C subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_I2C FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the I2S subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_I2S FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the ICU subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_ICU FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the MAC subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_MAC FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the MMC_SPI subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_MMC_SPI FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the PWM subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_PWM TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the RTC subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_RTC FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the SDC subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_SDC FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the SERIAL subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_SERIAL FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the SERIAL over USB subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_SERIAL_USB FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the SIO subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_SIO FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the SPI subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_SPI TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the TRNG subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_TRNG FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the UART subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_UART FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the USB subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_USB TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the WDG subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_WDG FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the WSPI subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_WSPI FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* PAL driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
|
||||||
|
#define PAL_USE_CALLBACKS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define PAL_USE_WAIT FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* ADC driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define ADC_USE_WAIT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||||||
|
#define ADC_USE_MUTUAL_EXCLUSION TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* CAN driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Sleep mode related APIs inclusion switch.
|
||||||
|
*/
|
||||||
|
#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
|
||||||
|
#define CAN_USE_SLEEP_MODE TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enforces the driver to use direct callbacks rather than OSAL events.
|
||||||
|
*/
|
||||||
|
#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
|
||||||
|
#define CAN_ENFORCE_USE_CALLBACKS FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* CRY driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the SW fall-back of the cryptographic driver.
|
||||||
|
* @details When enabled, this option, activates a fall-back software
|
||||||
|
* implementation for algorithms not supported by the underlying
|
||||||
|
* hardware.
|
||||||
|
* @note Fall-back implementations may not be present for all algorithms.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_CRY_USE_FALLBACK FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Makes the driver forcibly use the fall-back implementations.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_CRY_ENFORCE_FALLBACK FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* DAC driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define DAC_USE_WAIT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||||||
|
#define DAC_USE_MUTUAL_EXCLUSION TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* I2C driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the mutual exclusion APIs on the I2C bus.
|
||||||
|
*/
|
||||||
|
#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||||||
|
#define I2C_USE_MUTUAL_EXCLUSION TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* MAC driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the zero-copy API.
|
||||||
|
*/
|
||||||
|
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
|
||||||
|
#define MAC_USE_ZERO_COPY FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables an event sources for incoming packets.
|
||||||
|
*/
|
||||||
|
#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
|
||||||
|
#define MAC_USE_EVENTS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* MMC_SPI driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Delays insertions.
|
||||||
|
* @details If enabled this options inserts delays into the MMC waiting
|
||||||
|
* routines releasing some extra CPU time for the threads with
|
||||||
|
* lower priority, this may slow down the driver a bit however.
|
||||||
|
* This option is recommended also if the SPI driver does not
|
||||||
|
* use a DMA channel and heavily loads the CPU.
|
||||||
|
*/
|
||||||
|
#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
|
||||||
|
#define MMC_NICE_WAITING TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* SDC driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Number of initialization attempts before rejecting the card.
|
||||||
|
* @note Attempts are performed at 10mS intervals.
|
||||||
|
*/
|
||||||
|
#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
||||||
|
#define SDC_INIT_RETRY 100
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Include support for MMC cards.
|
||||||
|
* @note MMC support is not yet implemented so this option must be kept
|
||||||
|
* at @p FALSE.
|
||||||
|
*/
|
||||||
|
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
|
||||||
|
#define SDC_MMC_SUPPORT FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Delays insertions.
|
||||||
|
* @details If enabled this options inserts delays into the MMC waiting
|
||||||
|
* routines releasing some extra CPU time for the threads with
|
||||||
|
* lower priority, this may slow down the driver a bit however.
|
||||||
|
*/
|
||||||
|
#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
|
||||||
|
#define SDC_NICE_WAITING TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OCR initialization constant for V20 cards.
|
||||||
|
*/
|
||||||
|
#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
|
||||||
|
#define SDC_INIT_OCR_V20 0x50FF8000U
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OCR initialization constant for non-V20 cards.
|
||||||
|
*/
|
||||||
|
#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
|
||||||
|
#define SDC_INIT_OCR 0x80100000U
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* SERIAL driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Default bit rate.
|
||||||
|
* @details Configuration parameter, this is the baud rate selected for the
|
||||||
|
* default configuration.
|
||||||
|
*/
|
||||||
|
#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
|
||||||
|
#define SERIAL_DEFAULT_BITRATE 38400
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Serial buffers size.
|
||||||
|
* @details Configuration parameter, you can change the depth of the queue
|
||||||
|
* buffers depending on the requirements of your application.
|
||||||
|
* @note The default is 16 bytes for both the transmission and receive
|
||||||
|
* buffers.
|
||||||
|
*/
|
||||||
|
#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
|
||||||
|
#define SERIAL_BUFFERS_SIZE 16
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* SERIAL_USB driver related setting. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Serial over USB buffers size.
|
||||||
|
* @details Configuration parameter, the buffer size must be a multiple of
|
||||||
|
* the USB data endpoint maximum packet size.
|
||||||
|
* @note The default is 256 bytes for both the transmission and receive
|
||||||
|
* buffers.
|
||||||
|
*/
|
||||||
|
#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
|
||||||
|
#define SERIAL_USB_BUFFERS_SIZE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Serial over USB number of buffers.
|
||||||
|
* @note The default is 2 buffers.
|
||||||
|
*/
|
||||||
|
#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
|
||||||
|
#define SERIAL_USB_BUFFERS_NUMBER 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* SPI driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define SPI_USE_WAIT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables circular transfers APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
|
||||||
|
#define SPI_USE_CIRCULAR FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||||||
|
#define SPI_USE_MUTUAL_EXCLUSION TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling method for SPI CS line.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
|
||||||
|
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* UART driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define UART_USE_WAIT FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||||||
|
#define UART_USE_MUTUAL_EXCLUSION FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* USB driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define USB_USE_WAIT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/* WSPI driver related settings. */
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables synchronous APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
|
||||||
|
#define WSPI_USE_WAIT TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
|
||||||
|
* @note Disabling this option saves both code and data space.
|
||||||
|
*/
|
||||||
|
#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
||||||
|
#define WSPI_USE_MUTUAL_EXCLUSION TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* HALCONF_H */
|
||||||
|
|
||||||
|
/** @} */
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Obliterated75",
|
||||||
|
"url": "https://cannonkeys.com",
|
||||||
|
"maintainer": "awkannan",
|
||||||
|
"width": 16,
|
||||||
|
"height": 6.25,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [{"x":0, "y":0}, {"x":1.5, "y":0}, {"x":2.5, "y":0}, {"x":3.5, "y":0}, {"x":4.5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10.5, "y":0}, {"x":11.5, "y":0}, {"x":12.5, "y":0}, {"x":13.5, "y":0}, {"x":15, "y":0}, {"label":"~", "x":0, "y":1.25}, {"label":"!", "x":1, "y":1.25}, {"label":"@", "x":2, "y":1.25}, {"label":"#", "x":3, "y":1.25}, {"label":"$", "x":4, "y":1.25}, {"label":"%", "x":5, "y":1.25}, {"label":"^", "x":6, "y":1.25}, {"label":"&", "x":7, "y":1.25}, {"label":"*", "x":8, "y":1.25}, {"label":"(", "x":9, "y":1.25}, {"label":")", "x":10, "y":1.25}, {"label":"_", "x":11, "y":1.25}, {"label":"+", "x":12, "y":1.25}, {"x":13, "y":1.25}, {"x":14, "y":1.25}, {"x":15, "y":1.25}, {"label":"Tab", "x":0, "y":2.25, "w":1.5}, {"label":"Q", "x":1.5, "y":2.25}, {"label":"W", "x":2.5, "y":2.25}, {"label":"E", "x":3.5, "y":2.25}, {"label":"R", "x":4.5, "y":2.25}, {"label":"T", "x":5.5, "y":2.25}, {"label":"Y", "x":6.5, "y":2.25}, {"label":"U", "x":7.5, "y":2.25}, {"label":"I", "x":8.5, "y":2.25}, {"label":"O", "x":9.5, "y":2.25}, {"label":"P", "x":10.5, "y":2.25}, {"label":"{", "x":11.5, "y":2.25}, {"label":"}", "x":12.5, "y":2.25}, {"label":"|", "x":13.5, "y":2.25, "w":1.5}, {"x":15, "y":2.25}, {"label":"Caps Lock", "x":0, "y":3.25, "w":1.75}, {"label":"A", "x":1.75, "y":3.25}, {"label":"S", "x":2.75, "y":3.25}, {"label":"D", "x":3.75, "y":3.25}, {"label":"F", "x":4.75, "y":3.25}, {"label":"G", "x":5.75, "y":3.25}, {"label":"H", "x":6.75, "y":3.25}, {"label":"J", "x":7.75, "y":3.25}, {"label":"K", "x":8.75, "y":3.25}, {"label":"L", "x":9.75, "y":3.25}, {"label":":", "x":10.75, "y":3.25}, {"label":"\"", "x":11.75, "y":3.25}, {"x":12.75, "y":3.25}, {"label":"Enter", "x":13.75, "y":3.25, "w":1.25}, {"x":15, "y":3.25}, {"x":0, "y":4.25, "w":1.25}, {"x":1.25, "y":4.25}, {"label":"Z", "x":2.25, "y":4.25}, {"label":"X", "x":3.25, "y":4.25}, {"label":"C", "x":4.25, "y":4.25}, {"label":"V", "x":5.25, "y":4.25}, {"label":"B", "x":6.25, "y":4.25}, {"label":"N", "x":7.25, "y":4.25}, {"label":"M", "x":8.25, "y":4.25}, {"label":"<", "x":9.25, "y":4.25}, {"label":">", "x":10.25, "y":4.25}, {"label":"?", "x":11.25, "y":4.25}, {"label":"Shift", "x":12.25, "y":4.25, "w":1.75}, {"x":14, "y":4.25}, {"x":15, "y":4.25}, {"label":"Ctrl", "x":0, "y":5.25, "w":1.25}, {"label":"Win", "x":1.25, "y":5.25, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.25, "w":1.25}, {"x":3.75, "y":5.25, "w":6.25}, {"label":"Alt", "x":10, "y":5.25, "w":1.25}, {"label":"Ctrl", "x":11.25, "y":5.25, "w":1.25}, {"x":13, "y":5.25}, {"x":14, "y":5.25}, {"x":15, "y":5.25}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012,2013 Jun Wako <[email protected]>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
enum layer_names {
|
||||||
|
_BASE,
|
||||||
|
_FN1,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_BASE] = 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_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_DEL, KC_INS,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUBS, KC_ENT, KC_PGUP,
|
||||||
|
KC_LSFT, KC_NUHS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN1] = 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_DEL,
|
||||||
|
KC_GESC, 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_TRNS, RGB_TOG,
|
||||||
|
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD,
|
||||||
|
BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
BL_INC, BL_DEC, BL_TOGG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012,2013 Jun Wako <[email protected]>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
enum layer_names {
|
||||||
|
_BASE,
|
||||||
|
_FN1,
|
||||||
|
_FN2,
|
||||||
|
_FN3
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_BASE] = 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_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_DEL, KC_INS,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUBS, KC_ENT, KC_PGUP,
|
||||||
|
KC_LSFT, KC_NUHS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN1] = 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_DEL,
|
||||||
|
KC_GESC, 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_TRNS, RGB_TOG,
|
||||||
|
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD,
|
||||||
|
BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
BL_INC, BL_DEC, BL_TOGG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
[_FN2] = LAYOUT_all(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN3] = LAYOUT_all(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
)
|
||||||
|
|
||||||
|
};
|
||||||
File renamed without changes.
@@ -0,0 +1,176 @@
|
|||||||
|
/*
|
||||||
|
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _MCUCONF_H_
|
||||||
|
#define _MCUCONF_H_
|
||||||
|
|
||||||
|
/*
|
||||||
|
* STM32F0xx drivers configuration.
|
||||||
|
* The following settings override the default settings present in
|
||||||
|
* the various device driver implementation headers.
|
||||||
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
* driver is enabled in halconf.h.
|
||||||
|
*
|
||||||
|
* IRQ priorities:
|
||||||
|
* 3...0 Lowest...Highest.
|
||||||
|
*
|
||||||
|
* DMA priorities:
|
||||||
|
* 0...3 Lowest...Highest.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define STM32F0xx_MCUCONF
|
||||||
|
// #define STM32F070xB
|
||||||
|
|
||||||
|
/*
|
||||||
|
* HAL driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_NO_INIT FALSE
|
||||||
|
#define STM32_PVD_ENABLE FALSE
|
||||||
|
#define STM32_PLS STM32_PLS_LEV0
|
||||||
|
#define STM32_HSI_ENABLED TRUE
|
||||||
|
#define STM32_HSI14_ENABLED TRUE
|
||||||
|
#define STM32_HSI48_ENABLED FALSE
|
||||||
|
#define STM32_LSI_ENABLED TRUE
|
||||||
|
#define STM32_HSE_ENABLED FALSE
|
||||||
|
#define STM32_LSE_ENABLED FALSE
|
||||||
|
#define STM32_SW STM32_SW_PLL
|
||||||
|
#define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2
|
||||||
|
#define STM32_PREDIV_VALUE 1
|
||||||
|
#define STM32_PLLMUL_VALUE 12
|
||||||
|
#define STM32_HPRE STM32_HPRE_DIV1
|
||||||
|
#define STM32_PPRE STM32_PPRE_DIV1
|
||||||
|
#define STM32_ADCSW STM32_ADCSW_HSI14
|
||||||
|
#define STM32_ADCPRE STM32_ADCPRE_DIV4
|
||||||
|
#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
|
||||||
|
#define STM32_ADCPRE STM32_ADCPRE_DIV4
|
||||||
|
#define STM32_ADCSW STM32_ADCSW_HSI14
|
||||||
|
#define STM32_USBSW STM32_USBSW_HSI48
|
||||||
|
#define STM32_CECSW STM32_CECSW_HSI
|
||||||
|
#define STM32_I2C1SW STM32_I2C1SW_HSI
|
||||||
|
#define STM32_USART1SW STM32_USART1SW_PCLK
|
||||||
|
#define STM32_RTCSEL STM32_RTCSEL_LSI
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ADC driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_ADC_USE_ADC1 FALSE
|
||||||
|
#define STM32_ADC_ADC1_DMA_PRIORITY 2
|
||||||
|
#define STM32_ADC_IRQ_PRIORITY 2
|
||||||
|
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
|
||||||
|
|
||||||
|
/*
|
||||||
|
* EXT driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
|
||||||
|
#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
|
||||||
|
#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
|
||||||
|
#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
|
||||||
|
#define STM32_EXT_EXTI17_IRQ_PRIORITY 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* GPT driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_GPT_USE_TIM1 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM2 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM3 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
|
#define STM32_GPT_TIM1_IRQ_PRIORITY 2
|
||||||
|
#define STM32_GPT_TIM2_IRQ_PRIORITY 2
|
||||||
|
#define STM32_GPT_TIM3_IRQ_PRIORITY 2
|
||||||
|
#define STM32_GPT_TIM14_IRQ_PRIORITY 2
|
||||||
|
|
||||||
|
/*
|
||||||
|
* I2C driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_I2C_USE_I2C1 FALSE
|
||||||
|
#define STM32_I2C_USE_I2C2 FALSE
|
||||||
|
#define STM32_I2C_BUSY_TIMEOUT 50
|
||||||
|
#define STM32_I2C_I2C1_IRQ_PRIORITY 3
|
||||||
|
#define STM32_I2C_I2C2_IRQ_PRIORITY 3
|
||||||
|
#define STM32_I2C_USE_DMA TRUE
|
||||||
|
#define STM32_I2C_I2C1_DMA_PRIORITY 1
|
||||||
|
#define STM32_I2C_I2C2_DMA_PRIORITY 1
|
||||||
|
#define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
|
#define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 6)
|
||||||
|
#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ICU driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_ICU_USE_TIM1 FALSE
|
||||||
|
#define STM32_ICU_USE_TIM2 FALSE
|
||||||
|
#define STM32_ICU_USE_TIM3 FALSE
|
||||||
|
#define STM32_ICU_TIM1_IRQ_PRIORITY 3
|
||||||
|
#define STM32_ICU_TIM2_IRQ_PRIORITY 3
|
||||||
|
#define STM32_ICU_TIM3_IRQ_PRIORITY 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* PWM driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_PWM_USE_ADVANCED FALSE
|
||||||
|
#define STM32_PWM_USE_TIM1 FALSE
|
||||||
|
#define STM32_PWM_USE_TIM2 FALSE
|
||||||
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
#define STM32_PWM_TIM1_IRQ_PRIORITY 3
|
||||||
|
#define STM32_PWM_TIM2_IRQ_PRIORITY 3
|
||||||
|
#define STM32_PWM_TIM3_IRQ_PRIORITY 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SERIAL driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_SERIAL_USE_USART1 FALSE
|
||||||
|
#define STM32_SERIAL_USE_USART2 FALSE
|
||||||
|
#define STM32_SERIAL_USART1_PRIORITY 3
|
||||||
|
#define STM32_SERIAL_USART2_PRIORITY 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SPI driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_SPI_USE_SPI1 FALSE
|
||||||
|
#define STM32_SPI_USE_SPI2 TRUE
|
||||||
|
#define STM32_SPI_SPI1_DMA_PRIORITY 1
|
||||||
|
#define STM32_SPI_SPI2_DMA_PRIORITY 1
|
||||||
|
#define STM32_SPI_SPI1_IRQ_PRIORITY 2
|
||||||
|
#define STM32_SPI_SPI2_IRQ_PRIORITY 2
|
||||||
|
#define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
|
||||||
|
#define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
|
||||||
|
#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ST driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_ST_IRQ_PRIORITY 2
|
||||||
|
#define STM32_ST_USE_TIMER 2
|
||||||
|
|
||||||
|
/*
|
||||||
|
* UART driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_UART_USE_USART1 FALSE
|
||||||
|
#define STM32_UART_USE_USART2 FALSE
|
||||||
|
#define STM32_UART_USART1_IRQ_PRIORITY 3
|
||||||
|
#define STM32_UART_USART2_IRQ_PRIORITY 3
|
||||||
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure")
|
||||||
|
|
||||||
|
/*
|
||||||
|
* USB driver system settings.
|
||||||
|
*/
|
||||||
|
#define STM32_USB_USE_USB1 TRUE
|
||||||
|
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
||||||
|
#define STM32_USB_USB1_LP_IRQ_PRIORITY 3
|
||||||
|
|
||||||
|
#endif /* _MCUCONF_H_ */
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
#include "obliterated75.h"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT_all( \
|
||||||
|
K000, K001, K002, K003, K004, K006, K007, K008, K009, K010, K011, K012, K013, K015, \
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K215, \
|
||||||
|
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K315, \
|
||||||
|
K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K415, \
|
||||||
|
K500, K501, K502, K506, K510, K511, K512, K513, K515 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, KC_NO, K006, K007, K008, K009, K010, K011, K012, K013, KC_NO, K015 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115 }, \
|
||||||
|
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO, K215 }, \
|
||||||
|
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
|
||||||
|
{ K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, KC_NO, K415 }, \
|
||||||
|
{ K500, K501, K502, KC_NO, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, KC_NO, K515 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# CannonKeys Obliterated75
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [Andrew Kannan](https://github.com/awkannan)
|
||||||
|
* Hardware Supported: STM32F072CBT6
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make cannonkeys/obliterated75:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = STM32F072
|
||||||
|
|
||||||
|
# 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 = yes # Console for debug
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
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
|
||||||
|
WS2812_DRIVER = spi
|
||||||
|
|
||||||
|
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||||
|
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/* Copyright 2020 Christopher Ko <[email protected]>
|
||||||
|
*
|
||||||
|
* 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 "shared_enum.h"
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
enum combo_event {
|
||||||
|
SD_LAYER_COMBO,
|
||||||
|
KL_MEH_COMBO,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM sd_combo[] = {KC_S, KC_D, COMBO_END}; // Combo: S + D for SuperDuper mode
|
||||||
|
const uint16_t PROGMEM kl_combo[] = {KC_K, KC_L, COMBO_END}; // Combo: K + L for Meh modifier
|
||||||
|
|
||||||
|
// Register the combo action
|
||||||
|
combo_t key_combos[COMBO_COUNT] = {
|
||||||
|
[SD_LAYER_COMBO] = COMBO_ACTION(sd_combo),
|
||||||
|
[KL_MEH_COMBO] = COMBO_ACTION(kl_combo),
|
||||||
|
};
|
||||||
|
|
||||||
|
// Called after a combo event is triggered
|
||||||
|
void process_combo_event(uint8_t combo_index, bool pressed) {
|
||||||
|
switch (combo_index) {
|
||||||
|
case SD_LAYER_COMBO:
|
||||||
|
if (pressed) {
|
||||||
|
layer_on(_SUPERDUPER);
|
||||||
|
} else {
|
||||||
|
layer_off(_SUPERDUPER);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case KL_MEH_COMBO:
|
||||||
|
if (pressed) {
|
||||||
|
register_mods(MOD_MEH);
|
||||||
|
} else {
|
||||||
|
unregister_mods(MOD_MEH);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/* Copyright 2020 Christopher Ko <[email protected]>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define TAPPING_TERM 200 // Delay for tap modifiers until it is considered a hold
|
||||||
|
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT // Enable ignore mod tap interrupt: https://docs.qmk.fm/#/tap_hold?id=ignore-mod-tap-interrupt
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY // Allows configuration of ignore mod tap interrupt per key in keymap.c
|
||||||
|
|
||||||
|
#define COMBO_COUNT 2 // Number of defined combos
|
||||||
|
#define COMBO_TERM 20 // Delay for combo keys to be chained together
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
/* Copyright 2020 Christopher Ko <[email protected]>
|
||||||
|
*
|
||||||
|
* 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 "shared_enum.h"
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Modified Qwerty for chriskopher: base default layer
|
||||||
|
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
* |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
|
||||||
|
* `---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
* ,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \ | |Ins|Hom|PgU| |NmL| /| *| -|
|
||||||
|
* |-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Bsp| |Del|End|PgD| | 7| 8| 9| |
|
||||||
|
* |-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
* |Ctl/Esc| A| S| D| F| G| H| J| K| L|;/:| ' | Return| | 4| 5| 6| +|
|
||||||
|
* |-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
* |Shift/( |Dev/Z| X| C| V| B| N| M| ,| .| /| Shift/)| | ↑ | | 1| 2| 3| |
|
||||||
|
* |-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
* |Meh/CapsL|Gui|Alt| Space |Alt|Adjust/Gui|App| Ctl| | ← | ↓ | → | | 0| .|Ent|
|
||||||
|
* `-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
*/
|
||||||
|
[_CKO] = LAYOUT_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, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_INS, KC_HOME, KC_PGUP, 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_BSPC, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9,
|
||||||
|
LCTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, TD(SCLN_CLN), KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
TD(ESPC_L), LT(_DEV,KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, TD(ESPC_R), KC_UP, KC_P1, KC_P2, KC_P3,
|
||||||
|
MEH_T(KC_CAPS), KC_LGUI, KC_LALT, KC_SPC, KC_RALT, LT(_ADJUST,KC_RGUI), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Regular Qwerty: default layer
|
||||||
|
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
* |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
|
||||||
|
* `---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
* ,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bsp| |Ins|Hom|PgU| |NmL| /| *| -|
|
||||||
|
* |-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| |
|
||||||
|
* |-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
* |CapsL | A| S| D| F| G| H| J| K| L| ;| '| Return| | 4| 5| 6| +|
|
||||||
|
* |-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
* |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | | ↑ | | 1| 2| 3| |
|
||||||
|
* |-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
* |Ctl|Gui|Alt| Space |Alt|Adjust/Gui|App|Ctl| | ← | ↓ | → | | 0| .|Ent|
|
||||||
|
* `-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
*/
|
||||||
|
[_QWERTY] = LAYOUT_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, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, 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_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9,
|
||||||
|
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_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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, LT(_ADJUST,KC_RGUI), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
|
||||||
|
/* SuperDuper
|
||||||
|
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* `---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
* ,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
* | | | | | | | |1T |T← |T→ |9T | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
* | |Alt|[SuperDuper]|Bksp|Ctl| ← | ↓ | ↑ | → |Del| | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
* | | | | | | | | | | |ToggleSD| | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
* | | | | Shift | | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
*/
|
||||||
|
[_SUPERDUPER] = LAYOUT_ansi(
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, C(KC_1), C(S(KC_TAB)), C(KC_TAB), C(KC_9), ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, KC_LALT, ______, ______, KC_BSPC, KC_LCTL, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_DEL, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, TG(_SUPERDUPER), ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, KC_LSFT, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Dev
|
||||||
|
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* `---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
* ,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
* | | | | | | | | - | + | ( | ) | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
* | | | | | | | _ | [ | ] | { | } | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
* | | | | | | | = | | | < | > | ? | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
* | | | | | | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
*/
|
||||||
|
[_DEV] = LAYOUT_ansi(
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, KC_MINS, S(KC_EQL), S(KC_9), S(KC_0), ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, S(KC_MINS), KC_LBRC, KC_RBRC, S(KC_LBRC), S(KC_RBRC), ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, KC_EQL, S(KC_BSLASH), S(KC_COMM), S(KC_DOT), S(KC_SLSH), ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Adjust
|
||||||
|
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* `---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
* ,-----------------------------------------------------------. ,--------------. ,---------------.
|
||||||
|
* | | | | | | | | | | | | | | | |Play|Next|VolU| | | | | |
|
||||||
|
* |-----------------------------------------------------------| |--------------| |---------------|
|
||||||
|
* | |QWERTY| | | | | | | | | | | | | |Stop|Prev|VolD| | | | | |
|
||||||
|
* |-----------------------------------------------------------| `--------------' |-----------| |
|
||||||
|
* | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
* | | | |CKO| | | |Play|Mute|VolD|VolU| SD| | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
* | | | | | | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
*/
|
||||||
|
[_ADJUST] = LAYOUT_ansi(
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_MPLY, KC_MNXT, KC_VOLU, ______, ______, ______, ______,
|
||||||
|
______, DF(_QWERTY), ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_MSTP, KC_MPRV, KC_VOLD, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, DF(_CKO), ______, ______, KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, TG(_SUPERDUPER), ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
|
||||||
|
)
|
||||||
|
|
||||||
|
/* Empty layout for future reference
|
||||||
|
* ,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* `---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
* ,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
* | | | | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
* | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
* | | | | | | | | | | | | | | | | | | | |
|
||||||
|
* |-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
* | | | | | | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* [_EMPTY] = LAYOUT_ansi(
|
||||||
|
* ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
* ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
* ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
* ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
* ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
* ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
|
||||||
|
* ),
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
// Configure ignore mod tap interrupt per key
|
||||||
|
bool get_ignore_mod_tap_interrupt(uint16_t keycode) {
|
||||||
|
switch (keycode) {
|
||||||
|
// I don't like how mod tap interrupt feels with these keys specifically when I'm typing
|
||||||
|
case LCTL_T(KC_ESC):
|
||||||
|
return false;
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,193 @@
|
|||||||
|
# chriskopher's QMK Config
|
||||||
|
Currently designed for the use of an ANSI tenkeyless keyboard on Windows 10. Although many of the ideas can be applied agnostically across operating systems.
|
||||||
|
|
||||||
|
## Hardware
|
||||||
|
- [Hasu USB to USB Controller Converter](https://www.1upkeyboards.com/shop/controllers/usb-to-usb-converter/)
|
||||||
|
- Limitations include:
|
||||||
|
- 6KRO
|
||||||
|
- Media/System control keys and <kbd>Fn</kbd> key are not recognized by the converter
|
||||||
|
- Max firmware size of 28K and a lot of it is taken up by the USB keyboard support, so not all QMK features can be enabled
|
||||||
|
- No mouse or other pointing device support
|
||||||
|
- A regular ANSI QWERTY USB Type B keyboard
|
||||||
|
|
||||||
|
## Layer Overview
|
||||||
|
### Base Layers
|
||||||
|
#### 0. [My personal modified QWERTY layout](#chriskopher-qwerty-layout)
|
||||||
|
This is the default base layer that is used for most of my typing and where the intermediate layers are stacked onto. It is loaded by default on keyboard power up.
|
||||||
|
- Apply this base layer with <kbd>[Adjust](#adjust-layer)</kbd> + <kbd>c</kbd>, or by powering on the keyboard
|
||||||
|
- Swapped <kbd>CapsLock</kbd> and <kbd>LCtrl</kbd> for ergonomics with often performed <kbd>LCtrl</kbd> keyboard shortcuts
|
||||||
|
- Swapped <kbd>\\</kbd> and <kbd>Backspace</kbd> to minimize hand movement, inspired by the [HHKB](https://happyhackingkb.com/) layout
|
||||||
|
- Overloaded modifier keys, inspired by Steve Losh's [A Modern Space Cadet](https://stevelosh.com/blog/2012/10/a-modern-space-cadet/)
|
||||||
|
- Tap <kbd>LShift</kbd> for <kbd>(</kbd>, hold for <kbd>LShift</kbd>
|
||||||
|
- Tap <kbd>RShift</kbd> for <kbd>)</kbd>, hold for <kbd>RShift</kbd>
|
||||||
|
- Tap <kbd>LCtrl</kbd> for <kbd>Esc</kbd>, hold for <kbd>LCtrl</kbd> (remember that <kbd>LCtrl</kbd> is swapped with <kbd>CapsLock</kbd>)
|
||||||
|
- Tap Dances that allow different functionality based on the number of key presses within the `TAPPING_TERM` of 200 ms
|
||||||
|
- Extended space cadet shifting:
|
||||||
|
- Two taps of <kbd>LShift</kbd> sends <kbd>{</kbd>, and three taps send <kbd>[</kbd>
|
||||||
|
- Two taps of <kbd>RShift</kbd> sends <kbd>}</kbd>, and three taps send <kbd>]</kbd>
|
||||||
|
- One tap of <kbd>;</kbd> will send <kbd>;</kbd>, two taps of <kbd>;</kbd> will send <kbd>:</kbd>
|
||||||
|
- Combos that allow for different functionality based on custom chorded key presses within the `COMBO_TERM` of 20 ms
|
||||||
|
- Press and hold <kbd>s</kbd> and <kbd>d</kbd> to momentarily activate the <kbd>[(S)uper(D)uper](#superduper-layer)</kbd> layer
|
||||||
|
- Press and hold <kbd>k</kbd> and <kbd>l</kbd> to momentarily activate <kbd>Meh</kbd> modifier key
|
||||||
|
- <kbd>Meh</kbd> key (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Alt</kbd>) is useful for binding unique hotkeys on the OS that won't collide with or override other existing hotkeys
|
||||||
|
- Tap <kbd>CapsLock</kbd> for <kbd>CapsLock</kbd>, hold <kbd>CapsLock</kbd> to momentarily activate <kbd>Meh</kbd> modifier key while held (remember that <kbd>LCtrl</kbd> is swapped with <kbd>CapsLock</kbd>)
|
||||||
|
- Tap/Hold actions for layer switching
|
||||||
|
- Similar to the overloaded modifier keys
|
||||||
|
- Tap <kbd>z</kbd> for <kbd>z</kbd>, hold <kbd>z</kbd> to momentarily activate <kbd>[Dev](#dev-layer)</kbd> layer while held
|
||||||
|
- Tap <kbd>RGui</kbd> for <kbd>RGui</kbd>, hold <kbd>RGui</kbd> to momentarily activate <kbd>[Adjust](#adjust-layer)</kbd> layer while held
|
||||||
|
|
||||||
|
```
|
||||||
|
,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
|Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
|
||||||
|
`---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
| `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \ | |Ins|Hom|PgU| |NmL| /| *| -|
|
||||||
|
|-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
|Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Bsp| |Del|End|PgD| | 7| 8| 9| |
|
||||||
|
|-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
|Ctl/Esc| A| S| D| F| G| H| J| K| L|;/:| ' | Return| | 4| 5| 6| +|
|
||||||
|
|-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
|Shift/( |Dev/Z| X| C| V| B| N| M| ,| .| /| Shift/)| | ↑ | | 1| 2| 3| |
|
||||||
|
|-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
|Meh/CapsL|Gui|Alt| Space |Alt|Adjust/Gui|App| Ctl| | ← | ↓ | → | | 0| .|Ent|
|
||||||
|
`-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: can't use <kbd>Hyper</kbd> key (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>Gui</kbd>) instead of <kbd>Meh</kbd> reliably on Windows 10 because pressing <kbd>Hyper</kbd> opens Microsoft Office, <kbd>Hyper</kbd> + <kbd>t</kbd> opens Microsoft Teams, <kbd>Hyper</kbd> + <kbd>d</kbd> opens Microsoft OneDrive, <kbd>Hyper</kbd> + <kbd>y</kbd> Yammer, etc. And I couldn't find a clean way to disable this without needing to modify the host computer.
|
||||||
|
|
||||||
|
#### 1. [A regular QWERTY layout](#regular-qwerty-layout)
|
||||||
|
This layer is for when other people need to type on my keyboard.
|
||||||
|
- Apply this base layer with <kbd>[Adjust](#adjust-layer)</kbd> + <kbd>q</kbd>
|
||||||
|
- The only modification is the addition of the tap/hold action for switching back to the <kbd>[Adjust](#adjust-layer)</kbd> layer while held
|
||||||
|
- Tap <kbd>RGui</kbd> for <kbd>RGui</kbd>, hold <kbd>RGui</kbd> to momentarily activate <kbd>[Adjust](#adjust-layer)</kbd> layer while held
|
||||||
|
|
||||||
|
```
|
||||||
|
,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
|Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
|
||||||
|
`---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
| `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bsp| |Ins|Hom|PgU| |NmL| /| *| -|
|
||||||
|
|-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
|Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| |
|
||||||
|
|-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
|CapsL | A| S| D| F| G| H| J| K| L| ;| '| Return| | 4| 5| 6| +|
|
||||||
|
|-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
|Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | | ↑ | | 1| 2| 3| |
|
||||||
|
|-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
|Ctl|Gui|Alt| Space |Alt|Adjust/Gui|App|Ctl| | ← | ↓ | → | | 0| .|Ent|
|
||||||
|
`-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Intermediate Layers
|
||||||
|
#### 2. [(S)uper(D)uper Mode](#superduper-layer)
|
||||||
|
Inspired by [narze](https://github.com/qmk/qmk_firmware/tree/master/keyboards/planck/keymaps/narze) via [jasonrudolph](https://github.com/jasonrudolph/keyboard#super-duper-mode). It's designed to help with navigation while keeping you on the home row, or very close to it.
|
||||||
|
|
||||||
|
- To activate this layer, press <kbd>s</kbd> + <kbd>d</kbd> simultaneously and hold from the base layer
|
||||||
|
- Alternatively, hold <kbd>/</kbd> to activate the layer. This method is slower because the layer toggle uses a `TAPPING_TERM` of 200 ms but <kbd>s</kbd> + <kbd>d</kbd> uses a `COMBO_TERM` of only 20 ms (can be changed within `config.h`).
|
||||||
|
- Use <kbd>h</kbd> / <kbd>j</kbd> / <kbd>k</kbd> / <kbd>l</kbd>
|
||||||
|
for <kbd>←</kbd> / <kbd>↓</kbd> / <kbd>↑</kbd> / <kbd>→</kbd>, respectively
|
||||||
|
- Use <kbd>a</kbd> for <kbd>Alt</kbd>
|
||||||
|
- Use <kbd>f</kbd> for <kbd>Backspace</kbd>
|
||||||
|
- Use <kbd>g</kbd> for <kbd>Ctrl</kbd>
|
||||||
|
- Use <kbd>Space</kbd> for <kbd>Shift</kbd>
|
||||||
|
- Use <kbd>;</kbd> for <kbd>Delete</kbd>
|
||||||
|
- Use <kbd>i</kbd> / <kbd>o</kbd> to move to the previous/next tab
|
||||||
|
- Use <kbd>u</kbd> / <kbd>p</kbd> to go to the first/last tab (in most apps)
|
||||||
|
- Use <kbd>/</kbd> to toggle <kbd>[(S)uper(D)uper](#superduper-layer)</kbd> layer
|
||||||
|
|
||||||
|
```
|
||||||
|
,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
| | | | | | | | | | | | | | | | | | | | |
|
||||||
|
`---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
| | | | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
| | | | | | | |1T |T← |T→ |9T | | | | | | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
| |Alt|[SuperDuper]|Bksp|Ctl| ← | ↓ | ↑ | → |Del| | | | | | | |
|
||||||
|
|-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
| | | | | | | | | | |ToggleSD| | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
| | | | Shift | | | | | | | | | | | | |
|
||||||
|
`-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 3. [Dev](#dev-layer)
|
||||||
|
This layer is for easy access to symbols commonly used during development.
|
||||||
|
- To activate this layer, press and hold <kbd>z</kbd> from the base layer
|
||||||
|
- Use <kbd>u</kbd> / <kbd>i</kbd> / <kbd>o</kbd> / <kbd>p</kbd>
|
||||||
|
for <kbd>-</kbd> / <kbd>+</kbd> / <kbd>(</kbd> / <kbd>)</kbd>, respectively
|
||||||
|
- Use <kbd>h</kbd> / <kbd>j</kbd> / <kbd>k</kbd> / <kbd>l</kbd> / <kbd>;</kbd>
|
||||||
|
for <kbd>_</kbd> / <kbd>[</kbd> / <kbd>]</kbd> / <kbd>{</kbd> / <kbd>}</kbd>, respectively
|
||||||
|
- Use <kbd>n</kbd> / <kbd>m</kbd> / <kbd>,</kbd> / <kbd>.</kbd> / <kbd>/</kbd>
|
||||||
|
for <kbd>=</kbd> / <kbd>|</kbd> / <kbd><</kbd> / <kbd>></kbd> / <kbd>?</kbd>, respectively
|
||||||
|
|
||||||
|
```
|
||||||
|
,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
| | | | | | | | | | | | | | | | | | | | |
|
||||||
|
`---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
,-----------------------------------------------------------. ,-----------. ,---------------.
|
||||||
|
| | | | | | | | | | | | | | | | | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| |-----------| |---------------|
|
||||||
|
| | | | | | | | - | + | ( | ) | | | | | | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| `-----------' |-----------| |
|
||||||
|
| | | | | | | _ | [ | ] | { | } | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
| | | | | | | = | | | < | > | ? | | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
| | | | | | | | | | | | | | | | |
|
||||||
|
`-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Top Layer
|
||||||
|
#### 4. [Adjust](#adjust-layer)
|
||||||
|
This layer is applied at the top so that it will override all other layers and as a result it will always be possible to change which base layer is applied as a default. It is also used for media controls.
|
||||||
|
- To activate this layer, press and hold <kbd>RGui</kbd> from the base layer
|
||||||
|
- Switch to [chriskopher modified QWERTY layout](#chriskopher-qwerty-layout) with <kbd>c</kbd>
|
||||||
|
- Switch to [regular QWERTY layout](#regular-qwerty-layout) with <kbd>q</kbd>
|
||||||
|
- Use <kbd>n</kbd> / <kbd>m</kbd> / <kbd>,</kbd> / <kbd>.</kbd> / <kbd>/</kbd>
|
||||||
|
for <kbd>Play/Pause</kbd> / <kbd>Mute</kbd> / <kbd>Volume Down</kbd> / <kbd>Volume Up</kbd> / Toggle <kbd>[(S)uper(D)uper](#superduper-layer)</kbd> layer, respectively
|
||||||
|
- Use <kbd>Insert</kbd> / <kbd>Home</kbd> / <kbd>Page Up</kbd>
|
||||||
|
for <kbd>Play/Pause</kbd> / <kbd>Next Track</kbd> / <kbd>Volume Up</kbd>, respectively
|
||||||
|
- Use <kbd>Delete</kbd> / <kbd>End</kbd> / <kbd>Page Down</kbd>
|
||||||
|
for <kbd>Stop</kbd> / <kbd>Previous Track</kbd> / <kbd>Volume Down</kbd>, respectively
|
||||||
|
|
||||||
|
```
|
||||||
|
,---. ,---------------. ,---------------. ,---------------. ,-----------.
|
||||||
|
| | | | | | | | | | | | | | | | | | | | |
|
||||||
|
`---' `---------------' `---------------' `---------------' `-----------'
|
||||||
|
,-----------------------------------------------------------. ,--------------. ,---------------.
|
||||||
|
| | | | | | | | | | | | | | | |Play|Next|VolU| | | | | |
|
||||||
|
|-----------------------------------------------------------| |--------------| |---------------|
|
||||||
|
| |QWERTY| | | | | | | | | | | | | |Stop|Prev|VolD| | | | | |
|
||||||
|
|-----------------------------------------------------------| `--------------' |-----------| |
|
||||||
|
| | | | | | | | | | | | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| ,---. |---------------|
|
||||||
|
| | | |CKO| | | |Play|Mute|VolD|VolU| SD| | | | | | | | |
|
||||||
|
|-----------------------------------------------------------| ,-----------. |-----------| |
|
||||||
|
| | | | | | | | | | | | | | | | |
|
||||||
|
`-----------------------------------------------------------' `-----------' `---------------'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build Instructions
|
||||||
|
To compile and flash the config onto the USB to USB converter:
|
||||||
|
```sh
|
||||||
|
cd /path/to/qmk_firmware
|
||||||
|
qmk config user.keyboard=converter/usb_usb/hasu
|
||||||
|
qmk config user.keymap=chriskopher
|
||||||
|
qmk compile
|
||||||
|
qmk flash
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively:
|
||||||
|
```sh
|
||||||
|
cd /path/to/qmk_firmware
|
||||||
|
qmk compile -kb converter/usb_usb/hasu -km chriskopher
|
||||||
|
qmk flash -kb converter/usb_usb/hasu -km chriskopher
|
||||||
|
```
|
||||||
|
|
||||||
|
To modify the config:
|
||||||
|
```sh
|
||||||
|
cd /path/to/qmk_firmware/keyboards/converter/usb_usb/keymaps/chriskopher
|
||||||
|
```
|
||||||
|
and edit `keymap.c`, `config.h`, and `rules.mk`.
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 2020 Christopher Ko <[email protected]>
|
||||||
|
#
|
||||||
|
# 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/>.
|
||||||
|
|
||||||
|
COMMAND_ENABLE = no # Not being used, and can cause conflicts with space cadet shifting
|
||||||
|
SPACE_CADET_ENABLE = no # Not using special built in space cadet keys, using custom tap dance instead
|
||||||
|
EXTRAKEY_ENABLE = yes # Used for audio control and system control keys
|
||||||
|
COMBO_ENABLE = yes # Used to allow chording of keys to trigger an action
|
||||||
|
TAP_DANCE_ENABLE = yes # Used to allow multiple taps of a key to perform different actions
|
||||||
|
|
||||||
|
LINK_TIME_OPTIMIZATION_ENABLE = yes # Reduces the compiled firmware size
|
||||||
|
|
||||||
|
SRC += combo.c tap_dance.c
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/* Copyright 2020 Christopher Ko <[email protected]>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
enum keyboard_layer {
|
||||||
|
// Base layers
|
||||||
|
_CKO,
|
||||||
|
_QWERTY,
|
||||||
|
// Intermediate layers
|
||||||
|
_SUPERDUPER,
|
||||||
|
_DEV,
|
||||||
|
// Adjust layer at the end
|
||||||
|
_ADJUST
|
||||||
|
};
|
||||||
|
|
||||||
|
enum tap_dance_key_event {
|
||||||
|
// Extended space cadet shift tap dance
|
||||||
|
ESPC_L,
|
||||||
|
ESPC_R,
|
||||||
|
// Semicolon-Colon tap dance
|
||||||
|
SCLN_CLN
|
||||||
|
};
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
/* Copyright 2020 Christopher Ko <[email protected]>
|
||||||
|
*
|
||||||
|
* 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 "shared_enum.h"
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
enum tap_dance_state {
|
||||||
|
SINGLE_HOLD = 1,
|
||||||
|
SINGLE_TAP,
|
||||||
|
DOUBLE_TAP,
|
||||||
|
TRIPLE_TAP,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Record current state of a tap dance
|
||||||
|
static int espc_l_tap_state = 0;
|
||||||
|
static int espc_r_tap_state = 0;
|
||||||
|
static int scln_cln_tap_state = 0;
|
||||||
|
|
||||||
|
// Watch the state of the tap dance
|
||||||
|
int cur_dance(qk_tap_dance_state_t *state) {
|
||||||
|
if (state->pressed) {
|
||||||
|
return SINGLE_HOLD;
|
||||||
|
}
|
||||||
|
if (state->count == 1) {
|
||||||
|
return SINGLE_TAP;
|
||||||
|
}
|
||||||
|
if (state->count == 2) {
|
||||||
|
return DOUBLE_TAP;
|
||||||
|
}
|
||||||
|
if (state->count == 3) {
|
||||||
|
return TRIPLE_TAP;
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extended Space Cadet Shift - Left ==================================
|
||||||
|
void espc_l_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
espc_l_tap_state = cur_dance(state);
|
||||||
|
switch (espc_l_tap_state) {
|
||||||
|
case SINGLE_TAP: // (
|
||||||
|
register_code16(LSFT(KC_9));
|
||||||
|
break;
|
||||||
|
case DOUBLE_TAP: // {
|
||||||
|
unregister_code16(LSFT(KC_9));
|
||||||
|
register_code16(LSFT(KC_LBRC));
|
||||||
|
break;
|
||||||
|
case TRIPLE_TAP: // [
|
||||||
|
unregister_code16(LSFT(KC_LBRC));
|
||||||
|
register_code16(KC_LBRC);
|
||||||
|
break;
|
||||||
|
case SINGLE_HOLD: // LShift
|
||||||
|
register_code16(KC_LSFT);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void espc_l_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
switch (espc_l_tap_state) {
|
||||||
|
case SINGLE_TAP: // (
|
||||||
|
unregister_code16(LSFT(KC_9));
|
||||||
|
break;
|
||||||
|
case DOUBLE_TAP: // {
|
||||||
|
unregister_code16(LSFT(KC_LBRC));
|
||||||
|
break;
|
||||||
|
case TRIPLE_TAP: // [
|
||||||
|
unregister_code16(KC_LBRC);
|
||||||
|
break;
|
||||||
|
case SINGLE_HOLD: // LShift
|
||||||
|
unregister_code16(KC_LSFT);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
espc_l_tap_state = 0;
|
||||||
|
}
|
||||||
|
// ====================================================================//
|
||||||
|
|
||||||
|
// Extended Space Cadet Shift - Right ==================================
|
||||||
|
void espc_r_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
espc_r_tap_state = cur_dance(state);
|
||||||
|
switch (espc_r_tap_state) {
|
||||||
|
case SINGLE_TAP: // )
|
||||||
|
register_code16(LSFT(KC_0));
|
||||||
|
break;
|
||||||
|
case DOUBLE_TAP: // }
|
||||||
|
unregister_code16(LSFT(KC_0));
|
||||||
|
register_code16(LSFT(KC_RBRC));
|
||||||
|
break;
|
||||||
|
case TRIPLE_TAP: // ]
|
||||||
|
unregister_code16(LSFT(KC_RBRC));
|
||||||
|
register_code16(KC_RBRC);
|
||||||
|
break;
|
||||||
|
case SINGLE_HOLD: // RShift
|
||||||
|
register_code16(KC_RSFT);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void espc_r_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
switch (espc_r_tap_state) {
|
||||||
|
case SINGLE_TAP: // )
|
||||||
|
unregister_code16(LSFT(KC_0));
|
||||||
|
break;
|
||||||
|
case DOUBLE_TAP: // }
|
||||||
|
unregister_code16(LSFT(KC_RBRC));
|
||||||
|
break;
|
||||||
|
case TRIPLE_TAP: // ]
|
||||||
|
unregister_code16(KC_RBRC);
|
||||||
|
break;
|
||||||
|
case SINGLE_HOLD: // RShift
|
||||||
|
unregister_code16(KC_RSFT);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
espc_r_tap_state = 0;
|
||||||
|
}
|
||||||
|
// ====================================================================//
|
||||||
|
|
||||||
|
// Semicolon - Colon ==================================================
|
||||||
|
void scln_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
scln_cln_tap_state = cur_dance(state);
|
||||||
|
switch (scln_cln_tap_state) {
|
||||||
|
case SINGLE_TAP: // ;
|
||||||
|
register_code16(KC_SCLN);
|
||||||
|
break;
|
||||||
|
default: // :
|
||||||
|
register_code16(LSFT(KC_SCLN));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void scln_cln_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
switch (scln_cln_tap_state) {
|
||||||
|
case SINGLE_TAP: // ;
|
||||||
|
unregister_code16(KC_SCLN);
|
||||||
|
break;
|
||||||
|
default: // :
|
||||||
|
unregister_code16(LSFT(KC_SCLN));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ====================================================================//
|
||||||
|
|
||||||
|
// Associate tap dance with defined functionality
|
||||||
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
|
// Extended space cadet shift left: Hold - Shift, One - (, Two - {, Three - [
|
||||||
|
[ESPC_L] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, espc_l_finished, espc_l_reset),
|
||||||
|
// Extended space cadet shift right: Hold - Shift, One - ), Two - }, Three - ]
|
||||||
|
[ESPC_R] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, espc_r_finished, espc_r_reset),
|
||||||
|
// Semicolon - Colon: One - ;, Two - :
|
||||||
|
[SCLN_CLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, scln_cln_finished, scln_cln_reset),
|
||||||
|
};
|
||||||
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
// #define RGBLIGHT_SAT_STEP 8
|
// #define RGBLIGHT_SAT_STEP 8
|
||||||
// #define RGBLIGHT_VAL_STEP 8
|
// #define RGBLIGHT_VAL_STEP 8
|
||||||
// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||||
// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||||
// /*== all animations enable ==*/
|
// /*== all animations enable ==*/
|
||||||
#define RGBLIGHT_ANIMATIONS
|
#define RGBLIGHT_ANIMATIONS
|
||||||
// /*== or choose animations ==*/
|
// /*== or choose animations ==*/
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
[LAYER_LOWER] = LAYOUT(
|
[LAYER_LOWER] = LAYOUT(
|
||||||
KC_CAPS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
|
KC_CAPS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
|
||||||
_______, _______, _______, _______, _______, _______, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_TILD,
|
_______, _______, _______, _______, _______, _______, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_TILD,
|
||||||
_______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_APP, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_GRV,
|
_______, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, _______, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_GRV,
|
||||||
_______, _______, _______, _______, _______, _______
|
_______, _______, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ on a layer, but that'd take some getting used to....)
|
|||||||
|
|
||||||
## Lower layer
|
## Lower layer
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
([KLE](http://www.keyboard-layout-editor.com/#/gists/c3fba5eaa2cd70fdfbdbc0f9e34d3bc0))
|
([KLE](http://www.keyboard-layout-editor.com/#/gists/c3fba5eaa2cd70fdfbdbc0f9e34d3bc0))
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Turn off RGB when computer goes to sleep
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
#define RGBLIGHT_SLEEP
|
||||||
|
#endif // RGBLIGHT_ENABLE
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#define C_ESC CTL_T(KC_ESC)
|
||||||
|
|
||||||
|
|
||||||
|
// Layers
|
||||||
|
#define _BASE 0
|
||||||
|
#define _FN 1
|
||||||
|
#define _LIGHTS 2
|
||||||
|
|
||||||
|
/* Layout designed primarily around replicating the ergonomics of an HHKB, with
|
||||||
|
* a standard 60% spacebar row to be more compatible with conveniently
|
||||||
|
* available parts. The feature most shamelessly ripped off from the HHKB is
|
||||||
|
* the split right shift and backspace.
|
||||||
|
*
|
||||||
|
* This keymap is macOS-oriented by default, but pressing the AG_TOGG key on
|
||||||
|
* the _FN layer will swap alt and gui, making this layout also functional for
|
||||||
|
* Linux and PC.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* _BASE layer
|
||||||
|
* Looks like this Arranged like this
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||||
|
* │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ \ │ ` │ │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │0e │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||||
|
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ { │ } │Bksp │ │10 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||||
|
* │esc/^ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │ │20 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2d │
|
||||||
|
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||||
|
* │lshift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │rshift│fn │ │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3d │3e │
|
||||||
|
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤ ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤
|
||||||
|
* │ctrl│alt │win │ │win │alt │menu│ctrl│ │40 │41 │43 │46 │4a │4b │4d │4e │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
*/
|
||||||
|
[_BASE] = LAYOUT_60_ansi_split_bs_rshift(
|
||||||
|
// _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E
|
||||||
|
/*0_*/ KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV,
|
||||||
|
/*1_*/ 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_BSPC,
|
||||||
|
/*2_*/ C_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
/*3_*/ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN),
|
||||||
|
/*4_*/ KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(_LIGHTS), KC_RCTL
|
||||||
|
),
|
||||||
|
|
||||||
|
/* _FN layer, where blank keys indicates transparency to the base layer
|
||||||
|
* Looks like this Arranged like this (as above)
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||||
|
* │slp│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ins│del│ │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │0e │
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||||
|
* │caps │bup│bdn│ │XXX│ │ │ │prt│scl│pus│ ↑ │ │ │ │10 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │
|
||||||
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||||
|
* │ │vup│vdn│vmt│ │ │ │ │hme│pup│ ← │ → │ Return │ │20 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2d │
|
||||||
|
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||||
|
* │lshift │ │ │ │ │ │ │ │end│pdn│ ↓ │rshift│ │ │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3d │3e │
|
||||||
|
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤ ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤
|
||||||
|
* │ctrl│lalt│lgui│ S P A C E │rgui│ralt│menu│ctrl│ │40 │41 │43 │46 │4a │4b │4d │4e │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||||
|
* XXX = RESET (dfu mode)
|
||||||
|
*/
|
||||||
|
[_FN] = LAYOUT_60_ansi_split_bs_rshift(
|
||||||
|
// _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E
|
||||||
|
/*0_*/ KC_SLEP, 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,
|
||||||
|
/*1_*/ KC_CAPS, KC_BRID, KC_BRIU, KC_NO, RESET, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_NO, KC_NO,
|
||||||
|
/*2_*/ KC_NO, KC_VOLD, KC_VOLU, KC_MUTE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_RGHT, KC_RETURN,
|
||||||
|
/*3_*/ KC_LSPO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_END, KC_PGDN, KC_DOWN, KC_RSPC, KC_TRNS,
|
||||||
|
/*4_*/ KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_APP, AG_TOGG
|
||||||
|
),
|
||||||
|
|
||||||
|
/* _LIGHTS LAYER (stolen shamelessly from 256k_HHKB
|
||||||
|
*
|
||||||
|
* ,---------------------------------------------------------------------------------------------------------------------+
|
||||||
|
* | RGB_TOGGLE | STATIC | BREATHE | RAINBOW | SWIRL | SNAKE | KNIGHTRIDER | XMAS | STATIC_GRAD | _ | _ | _ | _ | _ | _ |
|
||||||
|
* |----------------------------------------------------------------------------------------------------------------------+
|
||||||
|
* | RBG_MOD | HUE_INC | SATURATION_INC | BRIGHT_INC | _ | _ | _ | _ | _ | _ | _ | _ | _ | _ |
|
||||||
|
* |----------------------------------------------------------------------------------------------------------------------+
|
||||||
|
* | CTRL | HUE_DEC | SATURATION_DEC | BRIGHT_DEC | _ | _ | _ | _ | _ | _ | _ | _ | _ |
|
||||||
|
* |----------------------------------------------------------------------------------------------------------------------+
|
||||||
|
* | Shift | _ | _ | _ | _ | _ | _ | _ | _ | _ | _ | _ | _ |
|
||||||
|
* |----------------------------------------------------------------------------------------------------------------------+
|
||||||
|
* | _ | _ | _ | _ | _ |
|
||||||
|
* `----------------------------------------------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_LIGHTS] = LAYOUT_60_ansi_split_bs_rshift(
|
||||||
|
// _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E
|
||||||
|
/*0_*/ RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
/*1_*/ RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
/*2_*/ KC_NO, RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
/*3_*/ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
/*4_*/ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
EXTRAKEY_ENABLE = yes
|
||||||
|
NKRO_ENABLE = yes
|
||||||
|
|
||||||
|
BACKLIGHT_ENABLE = yes
|
||||||
|
MOUSEKEY_ENABLE = no
|
||||||
|
AUDIO_ENABLE = no
|
||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
LEADER_ENABLE = no
|
||||||
|
MIDI_ENABLE = no
|
||||||
|
BLUETOOTH_ENABLE = no
|
||||||
@@ -21,268 +21,298 @@
|
|||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[DVORAK] = LAYOUT_ergodox_wrapper(
|
[DVORAK] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
KC_GRV, ___NUMBER_L___, DEF_OS_LAYER_SW,
|
KC_GRV, ___NUMBER_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___DVORAK_L1___, KC_LBRC,
|
KC_LOCK, ___DVORAK_L1___, LCTL(KC_C),
|
||||||
TAB_BKTAB, ___DVORAK_L2___,
|
TAB_BKTAB, ___DVORAK_L2___,
|
||||||
KC_LSFT, ___DVORAK_L3___, KC_LPRN,
|
KC_LSFT, ___DVORAK_L3___, TO(MDIA),
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
MDIA_SYMB, ___NUMBER_R___, KC_EQL,
|
MDIA_SYMB_KP_LAYERS, ___NUMBER_R___, KC_EQL,
|
||||||
KC_RBRC, ___DVORAK_R1___, KC_SLASH,
|
LCTL(KC_V), ___DVORAK_R1___, KC_SLASH,
|
||||||
/* */ ___DVORAK_R2___, KC_MINUS,
|
/* */ ___DVORAK_R2___, KC_MINUS,
|
||||||
KC_RPRN, ___DVORAK_R3___, KC_RSFT,
|
TO(KEYPAD), ___DVORAK_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___BOTTOM_RIGHT___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT___
|
||||||
),
|
),
|
||||||
|
|
||||||
[XMONAD] = LAYOUT_ergodox_wrapper(
|
[XMONAD] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
___, ___FUNC_L___, ___,
|
___, ___FUNC_L___, ___,
|
||||||
___, ___DVORAK_L1___, ___,
|
___, ___DVORAK_L1___, ___,
|
||||||
___, ___DVORAK_L2___,
|
___, ___DVORAK_L2___,
|
||||||
___, ___DVORAK_L3___, ___,
|
___, ___DVORAK_L3___, ___,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
___, ___FUNC_R___, ___,
|
___, ___FUNC_R___, ___,
|
||||||
___, ___DVORAK_R1___, ___,
|
___, ___DVORAK_R1___, ___,
|
||||||
/**/ ___DVORAK_R2___, ___,
|
/**/ ___DVORAK_R2___, ___,
|
||||||
___, ___DVORAK_R3___, ___,
|
___, ___DVORAK_R3___, ___,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___BOTTOM_RIGHT___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT___
|
||||||
),
|
),
|
||||||
|
|
||||||
[QWERTY] = LAYOUT_ergodox_wrapper(
|
[QWERTY] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
KC_GRV, ___NUMBER_L___, DEF_OS_LAYER_SW,
|
KC_GRV, ___NUMBER_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___QWERTY_L1___, KC_LBRC,
|
KC_LOCK, ___QWERTY_L1___, LCTL(KC_C),
|
||||||
TAB_BKTAB, ___QWERTY_L2___,
|
TAB_BKTAB, ___QWERTY_L2___,
|
||||||
KC_LSFT, ___QWERTY_L3___, KC_LPRN,
|
KC_LSFT, ___QWERTY_L3___, TO(MDIA),
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
MDIA_SYMB, ___NUMBER_R___, KC_EQL,
|
MDIA_SYMB_KP_LAYERS, ___NUMBER_R___, KC_EQL,
|
||||||
KC_RBRC, ___QWERTY_R1___, KC_SLASH,
|
LCTL(KC_V), ___QWERTY_R1___, KC_SLASH,
|
||||||
/* */ ___QWERTY_R2___, KC_MINUS,
|
/* */ ___QWERTY_R2___, KC_MINUS,
|
||||||
KC_RPRN, ___QWERTY_R3___, KC_RSFT,
|
TO(KEYPAD), ___QWERTY_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___BOTTOM_RIGHT___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT___
|
||||||
),
|
),
|
||||||
|
|
||||||
[COLEMAK] = LAYOUT_ergodox_wrapper(
|
[COLEMAK] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
KC_GRV, ___NUMBER_L___, DEF_OS_LAYER_SW,
|
KC_GRV, ___NUMBER_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___COLEMAK_L1___, KC_LBRC,
|
KC_LOCK, ___COLEMAK_L1___, LCTL(KC_C),
|
||||||
TAB_BKTAB, ___COLEMAK_L2___,
|
TAB_BKTAB, ___COLEMAK_L2___,
|
||||||
KC_LSFT, ___COLEMAK_L3___, KC_LPRN,
|
KC_LSFT, ___COLEMAK_L3___, TO(MDIA),
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
MDIA_SYMB, ___NUMBER_R___, KC_EQL,
|
MDIA_SYMB_KP_LAYERS, ___NUMBER_R___, KC_EQL,
|
||||||
KC_RBRC, ___COLEMAK_R1___, KC_SLASH,
|
LCTL(KC_V), ___COLEMAK_R1___, KC_SLASH,
|
||||||
/* */ ___COLEMAK_R2___, KC_MINUS,
|
/* */ ___COLEMAK_R2___, KC_MINUS,
|
||||||
KC_RPRN, ___COLEMAK_R3___, KC_RSFT,
|
TO(KEYPAD), ___COLEMAK_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___BOTTOM_RIGHT___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT___
|
||||||
),
|
),
|
||||||
|
|
||||||
[WORKMAN] = LAYOUT_ergodox_wrapper(
|
[WORKMAN] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
KC_GRV, ___NUMBER_L___, DEF_OS_LAYER_SW,
|
KC_GRV, ___NUMBER_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___WORKMAN_L1___, KC_LBRC,
|
KC_LOCK, ___WORKMAN_L1___, LCTL(KC_C),
|
||||||
TAB_BKTAB, ___WORKMAN_L2___,
|
TAB_BKTAB, ___WORKMAN_L2___,
|
||||||
KC_LSFT, ___WORKMAN_L3___, KC_LPRN,
|
KC_LSFT, ___WORKMAN_L3___, TO(MDIA),
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
MDIA_SYMB, ___NUMBER_R___, KC_EQL,
|
MDIA_SYMB_KP_LAYERS, ___NUMBER_R___, KC_EQL,
|
||||||
KC_RBRC, ___WORKMAN_R1___, KC_SLASH,
|
LCTL(KC_V), ___WORKMAN_R1___, KC_SLASH,
|
||||||
/* */ ___WORKMAN_R2___, KC_MINUS,
|
/* */ ___WORKMAN_R2___, KC_MINUS,
|
||||||
KC_RPRN, ___WORKMAN_R3___, KC_RSFT,
|
TO(KEYPAD), ___WORKMAN_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___BOTTOM_RIGHT___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT___
|
||||||
),
|
),
|
||||||
|
|
||||||
[NORMAN] = LAYOUT_ergodox_wrapper(
|
[NORMAN] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
KC_GRV, ___NUMBER_L___, DEF_OS_LAYER_SW,
|
KC_GRV, ___NUMBER_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___NORMAN_L1___, KC_LBRC,
|
KC_LOCK, ___NORMAN_L1___, LCTL(KC_C),
|
||||||
TAB_BKTAB, ___NORMAN_L2___,
|
TAB_BKTAB, ___NORMAN_L2___,
|
||||||
KC_LSFT, ___NORMAN_L3___, KC_LPRN,
|
KC_LSFT, ___NORMAN_L3___, TO(MDIA),
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
MDIA_SYMB, ___NUMBER_R___, KC_EQL,
|
MDIA_SYMB_KP_LAYERS, ___NUMBER_R___, KC_EQL,
|
||||||
KC_RBRC, ___NORMAN_R1___, KC_SLASH,
|
LCTL(KC_V), ___NORMAN_R1___, KC_SLASH,
|
||||||
/* */ ___NORMAN_R2___, KC_MINUS,
|
/* */ ___NORMAN_R2___, KC_MINUS,
|
||||||
KC_RPRN, ___NORMAN_R3___, KC_RSFT,
|
TO(KEYPAD), ___NORMAN_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___BOTTOM_RIGHT___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT___
|
||||||
),
|
),
|
||||||
|
|
||||||
[DVORAK_ON_BEPO] = LAYOUT_ergodox_wrapper(
|
[DVORAK_ON_BEPO] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
DB_GRV, ___NUMBER_BEPO_L___, DEF_OS_LAYER_SW,
|
DB_GRV, ___NUMBER_BEPO_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___DVORAK_FR_L1___, DB_LBRC,
|
KC_LOCK, ___DVORAK_FR_L1___, DB_LBRC,
|
||||||
TAB_BKTAB, ___DVORAK_FR_L2___,
|
TAB_BKTAB, ___DVORAK_FR_L2___,
|
||||||
KC_LSFT, ___DVORAK_FR_L3___, DB_LPRN,
|
KC_LSFT, ___DVORAK_FR_L3___, DB_LPRN,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___BOTTOM_LEFT_FR___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___ERGODOX_THUMB_LEFT_BP___,
|
||||||
|
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
MDIA_SYMB, ___NUMBER_BEPO_R___, DB_EQL,
|
MDIA_SYMB_KP_LAYERS, ___NUMBER_BEPO_R___, DB_EQL,
|
||||||
DB_RBRC, ___DVORAK_FR_R1___, DB_SLASH,
|
DB_RBRC, ___DVORAK_FR_R1___, DB_SLASH,
|
||||||
|
|
||||||
/* */ ___DVORAK_FR_R2___, DB_MINUS,
|
/* */ ___DVORAK_FR_R2___, DB_MINUS,
|
||||||
DB_RPRN, ___DVORAK_FR_R3___, KC_RSFT,
|
DB_RPRN, ___DVORAK_FR_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT_FR___,
|
___BOTTOM_RIGHT_FR___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___ERGODOX_THUMB_RIGHT_BP___
|
||||||
),
|
),
|
||||||
|
|
||||||
[XMONAD_FR] = LAYOUT_ergodox_wrapper(
|
|
||||||
// left hand
|
|
||||||
___, ___FUNC_L___, ___,
|
|
||||||
___, ___DVORAK_FR_L1___, ___,
|
|
||||||
___, ___DVORAK_FR_L2___,
|
|
||||||
___, ___DVORAK_FR_L3___, ___,
|
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
|
||||||
___ERGODOX_THUMB_LEFT___,
|
|
||||||
|
|
||||||
|
|
||||||
// right hand
|
|
||||||
___, ___FUNC_R___, ___,
|
|
||||||
___, ___DVORAK_FR_R1___, ___,
|
|
||||||
/**/ ___DVORAK_FR_R2___, ___,
|
|
||||||
___, ___DVORAK_FR_R3___, ___,
|
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT_FR___,
|
|
||||||
___ERGODOX_THUMB_RIGHT___
|
|
||||||
),
|
|
||||||
|
|
||||||
[BEPO] = LAYOUT_ergodox_wrapper(
|
[BEPO] = LAYOUT_ergodox_wrapper(
|
||||||
// Left hand
|
// Left hand
|
||||||
BP_DLR, ___SYMBOL_BEPO_L___, DEF_OS_LAYER_SW,
|
BP_DLR, ___SYMBOL_BEPO_L___, OSL(LAYERS),
|
||||||
KC_LOCK, ___BEPO_FR_L1___, DB_LBRC,
|
KC_LOCK, ___BEPO_FR_L1___, DB_LBRC,
|
||||||
TAB_BKTAB, ___BEPO_FR_L2___,
|
TAB_BKTAB, ___BEPO_FR_L2___,
|
||||||
BP_SFT_T_ECRC, ___BEPO_FR_L3___, DB_RBRC,
|
BP_SFT_T_ECRC, ___BEPO_FR_L3___, DB_RBRC,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_LEFT___,
|
___5___,
|
||||||
___ERGODOX_THUMB_LEFT___,
|
___6___,
|
||||||
|
|
||||||
|
|
||||||
// Right hand
|
// Right hand
|
||||||
MDIA_SYMB, ___SYMBOL_BEPO_R___, BP_EQL,
|
MDIA_SYMB_KP_LAYERS, ___SYMBOL_BEPO_R___, BP_EQL,
|
||||||
BP_DCRC, ___BEPO_FR_R1___, BP_W,
|
BP_DCRC, ___BEPO_FR_R1___, BP_W,
|
||||||
/* */ ___BEPO_FR_R2___, BP_CCED,
|
/* */ ___BEPO_FR_R2___, BP_CCED,
|
||||||
BP_C, ___BEPO_FR_R3___, KC_RSFT,
|
BP_C, ___BEPO_FR_R3___, KC_RSFT,
|
||||||
|
|
||||||
___ERGODOX_BOTTOM_RIGHT___,
|
___5___,
|
||||||
___ERGODOX_THUMB_RIGHT___
|
___6___
|
||||||
),
|
),
|
||||||
|
|
||||||
|
[XMONAD_FR] = LAYOUT_ergodox_wrapper(
|
||||||
|
// left hand
|
||||||
|
___, ___FUNC_L___, ___,
|
||||||
|
___, ___DVORAK_FR_L1___, ___,
|
||||||
|
___, ___DVORAK_FR_L2___,
|
||||||
|
___, ___DVORAK_FR_L3___, ___,
|
||||||
|
|
||||||
|
___BOTTOM_LEFT_FR___,
|
||||||
|
___ERGODOX_THUMB_LEFT_BP___,
|
||||||
|
|
||||||
|
|
||||||
|
// right hand
|
||||||
|
___, ___FUNC_R___, ___,
|
||||||
|
___, ___DVORAK_FR_R1___, ___,
|
||||||
|
/**/ ___DVORAK_FR_R2___, ___,
|
||||||
|
___, ___DVORAK_FR_R3___, ___,
|
||||||
|
|
||||||
|
___BOTTOM_RIGHT_FR___,
|
||||||
|
___ERGODOX_THUMB_RIGHT_BP___
|
||||||
|
),
|
||||||
|
|
||||||
// SYMBOLS
|
// SYMBOLS
|
||||||
[SYMB] = LAYOUT_ergodox_wrapper(
|
[SYMB] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
___, ___FUNC_L___, ___,
|
___FUNC_1_6___, ___,
|
||||||
___, ___SYMBOLS_1___, ___,
|
___SYMBOLS6_1___, ___,
|
||||||
___, ___SYMBOLS_2___,
|
___SYMBOLS6_2___,
|
||||||
___, ___SYMBOLS_3___, ___,
|
___SYMBOLS6_3___, ___,
|
||||||
|
___SYMBOLS5_4___,
|
||||||
___ERGODOX_TRANS_BOTTOM___,
|
___6___,
|
||||||
___ERGODOX_TRANS_THUMBS___,
|
|
||||||
|
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
___, ___FUNC_R___, KC_F11,
|
___, ___FUNC_7_12___,
|
||||||
___, KC_UP, ___KEYPAD_1___, KC_F12,
|
___, ___SYMPAD_1___,
|
||||||
/**/ KC_DOWN, ___KEYPAD_2___, KC_TRNS,
|
/**/ ___SYMPAD_2___,
|
||||||
___, KC_AMPR, ___KEYPAD_3___, KC_PENT,
|
___, ___SYMPAD_3___,
|
||||||
/* */ ___KEYPAD_4___, ___,
|
/**/ ___5_SYMPAD_4___,
|
||||||
|
___6___
|
||||||
___ERGODOX_TRANS_THUMBS___
|
),
|
||||||
),
|
|
||||||
|
|
||||||
[SYMB_ON_BEPO] = LAYOUT_ergodox_wrapper(
|
[SYMB_ON_BEPO] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
___, ___FUNC_L___, ___,
|
___FUNC_1_6___, ___,
|
||||||
___, ___SYMBOLS_1_BP___, ___,
|
___SYMBOLS6_1_BP___, ___,
|
||||||
___, ___SYMBOLS_2_BP___,
|
___SYMBOLS6_2_BP___,
|
||||||
___, ___SYMBOLS_3_BP___, ___,
|
___SYMBOLS6_3_BP___, ___,
|
||||||
|
___SYMBOLS5_4_BP___,
|
||||||
___ERGODOX_TRANS_BOTTOM___,
|
___6___,
|
||||||
___ERGODOX_TRANS_THUMBS___,
|
|
||||||
|
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
___, ___FUNC_R___, KC_F11,
|
___, ___FUNC_7_12___,
|
||||||
___, KC_UP, ___KEYPAD_1_BP___, KC_F12,
|
___, ___SYMPAD_1_BP___,
|
||||||
/**/ KC_DOWN, ___KEYPAD_2_BP___, KC_TRNS,
|
/**/ ___SYMPAD_2_BP___,
|
||||||
___, KC_AMPR, ___KEYPAD_3_BP___, KC_PENT,
|
___, ___SYMPAD_3_BP___,
|
||||||
/* */ ___KEYPAD_4_BP___, ___,
|
/**/ ___5_SYMPAD_4_BP___,
|
||||||
|
___6___
|
||||||
|
),
|
||||||
|
|
||||||
___ERGODOX_TRANS_THUMBS___
|
[KEYPAD] = LAYOUT_ergodox_wrapper(
|
||||||
),
|
___FUNC_1_6___, ___,
|
||||||
|
___2___, ___FUNCPAD_T___, ___, ___,
|
||||||
|
___2___, ___FUNCPAD_1___, ___,
|
||||||
|
___2___, ___FUNCPAD_2___, ___, ___,
|
||||||
|
___2___, ___FUNCPAD_3___,
|
||||||
|
___6___,
|
||||||
|
|
||||||
|
// right hand
|
||||||
|
___, ___FUNC_7_12___,
|
||||||
|
___, ___, ___KEYPAD_1___, ___,
|
||||||
|
/**/ ___, ___KEYPAD_2___, ___,
|
||||||
|
___, ___, ___KEYPAD_3___, ___,
|
||||||
|
/* */ ___KEYPAD_4___, ___,
|
||||||
|
___6___
|
||||||
|
),
|
||||||
|
|
||||||
|
[KEYPAD_ON_BEPO] = LAYOUT_ergodox_wrapper(
|
||||||
|
___FUNC_1_6___, ___,
|
||||||
|
___2___, ___FUNCPAD_T___, ___, ___,
|
||||||
|
___2___, ___FUNCPAD_1___, ___,
|
||||||
|
___2___, ___FUNCPAD_2___, ___, ___,
|
||||||
|
___2___, ___FUNCPAD_3___,
|
||||||
|
___6___,
|
||||||
|
|
||||||
|
// right hand
|
||||||
|
___, ___FUNC_7_12___,
|
||||||
|
___, ___, ___KEYPAD_1_BP___, ___,
|
||||||
|
/**/ ___, ___KEYPAD_2_BP___, ___,
|
||||||
|
___, ___, ___KEYPAD_3_BP___, ___,
|
||||||
|
/* */ ___KEYPAD_4_BP___, ___,
|
||||||
|
___6___
|
||||||
|
),
|
||||||
|
|
||||||
// MEDIA AND MOUSE
|
// MEDIA AND MOUSE
|
||||||
[MDIA] = LAYOUT_ergodox_wrapper(
|
[MDIA] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
___, ___FUNC_L___, ___,
|
___FUNC_1_6___, ___,
|
||||||
___MOUSE_BTNS_L___, ___, ___,
|
___MOUSE_BTNS_L___, ___, ___,
|
||||||
___, ___MOUSE_LDUR___, ___,
|
___, ___MOUSE_LDUR___, ___,
|
||||||
___, ___MWHEEL_LDUR___, XXX, ___,
|
___, ___MWHEEL_LDUR___, XXX, ___,
|
||||||
___, ___, ___MOUSE_ACCL_012___,
|
___, ___, ___MOUSE_ACCL_012___,
|
||||||
___ERGODOX_TRANS_THUMBS___,
|
___6___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
___, ___FUNC_R___, KC_F11,
|
___, ___FUNC_7_12___,
|
||||||
KC_VOLU, ___, ___MUTE_PLAY_STOP___, ___, KC_F12,
|
___, KC_VOLU, ___MUTE_PRV_PLAY_NXT_STOP___,
|
||||||
/* */ KC_PGUP, ___VI_ARROWS___, ___,
|
/**/ KC_VOLD, ___VI_ARROWS___, ___,
|
||||||
KC_VOLD, KC_PGDN, ___MOUSE_BTNS_R___,
|
___, ___, ___MOUSE_BTNS_R___,
|
||||||
___ERGODOX_TRANS_BOTTOM___,
|
/* */ KC_PGDN, KC_PGUP, ___3___,
|
||||||
___ERGODOX_TRANS_THUMBS___
|
___6___
|
||||||
),
|
),
|
||||||
|
|
||||||
[LAYERS] = LAYOUT_ergodox_wrapper(
|
[LAYERS] = LAYOUT_ergodox_wrapper(
|
||||||
// left hand
|
// left hand
|
||||||
___, ___FUNC_L___, ___,
|
___FUNC_1_6___, ___,
|
||||||
XXX, XXX, XXX, ___LAYERS_L1___, XXX, XXX,
|
XXX, XXX, XXX, ___2_LAYERS_B1___, XXX, ___,
|
||||||
XXX, XXX, XXX, ___LAYERS_L2___, XXX,
|
XXX, XXX, XXX, ___2_LAYERS_B2___, XXX,
|
||||||
XXX, XXX, ___LAYERS_L3___, XXX, XXX,
|
XXX, XXX, ___3_LAYERS_B3___, XXX, ___,
|
||||||
___, ___, ___LAYERS_L4___,
|
___5___,
|
||||||
___ERGODOX_TRANS_THUMBS___,
|
___6___,
|
||||||
|
|
||||||
// right hand
|
// right hand
|
||||||
___, ___FUNC_R___, KC_F11,
|
___, ___FUNC_7_12___,
|
||||||
KC_VOLU, ___, ___MUTE_PLAY_STOP___, ___, KC_F12,
|
___, XXX, ___3_LAYERS_T_BP___, ___2___,
|
||||||
/* */ KC_PGUP, ___VI_ARROWS___, ___,
|
/**/ XXX, ___3_LAYERS_T___, ___2___,
|
||||||
KC_VOLD, KC_PGDN, ___MOUSE_BTNS_R___,
|
___, XXX, ___3_LAYERS_T_CTL___, ___2___,
|
||||||
___ERGODOX_TRANS_BOTTOM___,
|
___5___,
|
||||||
___ERGODOX_TRANS_THUMBS___
|
___6___
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/* Copyright 2020 /u/TheFourthCow
|
||||||
|
*
|
||||||
|
* 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 0xC4B5
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER TheFourthCow
|
||||||
|
#define PRODUCT Funky40
|
||||||
|
#define DESCRIPTION Ortholinear 40 percent keyboard
|
||||||
|
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 4
|
||||||
|
#define MATRIX_COLS 12
|
||||||
|
|
||||||
|
/* key matrix pins */
|
||||||
|
#define MATRIX_ROW_PINS { D4, C6, B4, B5 }
|
||||||
|
#define MATRIX_COL_PINS { D3, F5, F4, F7, B1, B6, B2, B3, D2, F6, E6, D7 }
|
||||||
|
#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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
#include "funky40.h"
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \
|
||||||
|
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \
|
||||||
|
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211 }, \
|
||||||
|
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, KC_NO, KC_NO } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "funky40",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "TheFourthCow",
|
||||||
|
"width": 12,
|
||||||
|
"height": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"Back<br>Space", "x":11, "y":0}, {"label":"Tab", "x":0, "y":1}, {"label":"A", "x":1, "y":1}, {"label":"S", "x":2, "y":1}, {"label":"D", "x":3, "y":1}, {"label":"F", "x":4, "y":1}, {"label":"G", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":":", "x":10, "y":1}, {"label":"\"", "x":11, "y":1}, {"label":"Shift", "x":0, "y":2}, {"label":"Z", "x":1, "y":2}, {"label":"X", "x":2, "y":2}, {"label":"C", "x":3, "y":2}, {"label":"V", "x":4, "y":2}, {"label":"B", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":"<", "x":8, "y":2}, {"label":">", "x":9, "y":2}, {"label":"?", "x":10, "y":2}, {"label":"Shift", "x":11, "y":2}, {"label":"Ctrl", "x":0, "y":3}, {"label":"Super", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"x":3, "y":3, "w":2}, {"label":"Del", "x":5, "y":3}, {"x":6, "y":3, "w":2}, {"label":"Left", "x":8, "y":3}, {"label":"Up", "x":9, "y":3}, {"label":"Down", "x":10, "y":3}, {"label":"Right", "x":11, "y":3}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/* Copyright 2020 /u/TheFourthCow
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
LAYOUT(
|
||||||
|
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||||
|
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_DOT, KC_SLSH, KC_SFTENT,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT(1, KC_DEL), KC_SPC, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
LAYOUT(
|
||||||
|
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_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_UNDS, KC_PLUS,
|
||||||
|
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_F11, KC_F12, KC_LBRC, KC_RBRC,
|
||||||
|
RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLU, KC_VOLD, KC_MNXT),
|
||||||
|
};
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Default Funky40 Layout
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
This is the default Funky40 layout, it is currently a work in progress. The right shift key is setup to be enter when tapped and right shift when held. The centered delete key is delete when tapped but a momentary layer modifier when held, use this to access the number and function keys and more as the map progresses.
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# Funky40
|
||||||
|
|
||||||
|
<!--  -->
|
||||||
|
|
||||||
|
A compact 40% (12x4) ortholinear keyboard kit made and sold by /u/TheFourthCow
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [TheFourthCow](https://github.com/TheFourthCow)
|
||||||
|
* Hardware Supported: Funky40 with Pro Micro or Elite C
|
||||||
|
* Hardware Availability: TBD - Currently from /u/TheFourthCow - [pm me on reddit](https://www.reddit.com/user/TheFourthCow/)!
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make funky40:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# 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 = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = yes # 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 - this may disable space cadet right shift/enter
|
||||||
|
# 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
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Aplx2
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A simple 2% keyboard for osu!. Designed to be assembled as a sandwich with a Pro Micro, using M3 x 16mm screws, your choice of MX- or Alps-compatible switches, and 1N4148 diodes.
|
||||||
|
|
||||||
|
**Layout:**
|
||||||
|
The default layout is: Z , X .
|
||||||
|
Used pins can be found in `config.h`. All ProMicro pins can be found [here](https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/ProMicro16MHzv1.pdf).
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [Aplyard](https://github.com/Aplyard)
|
||||||
|
* Hardware Supported: Pro Micro (ATmega32U4)
|
||||||
|
* Hardware Availability: [GitHub](https://github.com/Aplyard/Aplx2), [Thingiverse](https://www.thingiverse.com/thing:4294608)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make handwired/aplx2: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).
|
||||||
|
|
||||||
|
---
|
||||||
|
**Designed in:**
|
||||||
|
Fusion360
|
||||||
|
[Keyboard Plate & Case Builder](http://builder.swillkb.com/)
|
||||||
|
|
||||||
|
|
||||||
|
**Usefull Links:**
|
||||||
|
[Qmk Online Configurator](https://config.qmk.fm/#)
|
||||||
|
|
||||||
|
**Alternatives of qmk that worked for me:**
|
||||||
|
[Keyboard Layout Editor](http://www.keyboard-layout-editor.com/#/)
|
||||||
|
[Firmware Builder](https://kbfirmware.com/)
|
||||||
|
|
||||||
|
---
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 April Aplyard <[email protected]>
|
||||||
|
|
||||||
|
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 "aplx2.h"
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 April Aplyard <[email protected]>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
K00, K01 \
|
||||||
|
) { \
|
||||||
|
{ K00 , K01 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 April Aplyard <[email protected]>
|
||||||
|
|
||||||
|
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 0xE0E0
|
||||||
|
#define PRODUCT_ID 0x0030
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Aplyard
|
||||||
|
#define PRODUCT Aplx2
|
||||||
|
#define DESCRIPTION Aplx2% osu!
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 1
|
||||||
|
#define MATRIX_COLS 2
|
||||||
|
|
||||||
|
/* pin-out */
|
||||||
|
#define MATRIX_ROW_PINS { D1 }
|
||||||
|
#define MATRIX_COL_PINS { B5, D3 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#define _MAIN 0
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap __MAIN: Default Layer
|
||||||
|
* ,---------------.
|
||||||
|
* | |-----|-----| |
|
||||||
|
* | | Ζ | Χ | |
|
||||||
|
* | |-----|-----| |
|
||||||
|
* '---------------'
|
||||||
|
*/
|
||||||
|
[_MAIN] = LAYOUT(
|
||||||
|
KC_Z, KC_X
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -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 = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # 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
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
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
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 marhalloweenvt
|
||||||
|
|
||||||
|
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 0x3EAE
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER marhalloweenvt
|
||||||
|
#define PRODUCT p1800fl
|
||||||
|
#define DESCRIPTION A compact 1800 layout keyboard
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 6
|
||||||
|
#define MATRIX_COLS 15
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define MATRIX_ROW_PINS { B6, B5, B4, D7, D6, D4 }
|
||||||
|
#define MATRIX_COL_PINS { C7, F7, F6, F5, F4, F1, F0, E6, B0, B1, B2, B3, D0, D1, D2}
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define BACKLIGHT_PIN B7
|
||||||
|
#define BACKLIGHT_BREATHING
|
||||||
|
#define BACKLIGHT_LEVELS 5
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* disable these deprecated features by default */
|
||||||
|
#define NO_ACTION_MACRO
|
||||||
|
#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
/* QMK DFU key configuration */
|
||||||
|
#define QMK_ESC_OUTPUT C7 // usually COL
|
||||||
|
#define QMK_ESC_INPUT B6 // usually ROW
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "p1800fl",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "marhalloweenvt",
|
||||||
|
"width": 19.5,
|
||||||
|
"height": 5.25,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"!", "x":1, "y":0},
|
||||||
|
{"label":"@", "x":2, "y":0},
|
||||||
|
{"label":"#", "x":3, "y":0},
|
||||||
|
{"label":"$", "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":"Backspace", "x":13, "y":0},
|
||||||
|
{"label":"Backspace", "x":14, "y":0},
|
||||||
|
{"label":"Num Lock", "x":15.5, "y":0},
|
||||||
|
{"label":"/", "x":16.5, "y":0},
|
||||||
|
{"label":"*", "x":17.5, "y":0},
|
||||||
|
{"label":"-", "x":18.5, "y":0},
|
||||||
|
{"label":"Tab", "x":0, "y":1, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":1},
|
||||||
|
{"label":"W", "x":2.5, "y":1},
|
||||||
|
{"label":"E", "x":3.5, "y":1},
|
||||||
|
{"label":"R", "x":4.5, "y":1},
|
||||||
|
{"label":"T", "x":5.5, "y":1},
|
||||||
|
{"label":"Y", "x":6.5, "y":1},
|
||||||
|
{"label":"U", "x":7.5, "y":1},
|
||||||
|
{"label":"I", "x":8.5, "y":1},
|
||||||
|
{"label":"O", "x":9.5, "y":1},
|
||||||
|
{"label":"P", "x":10.5, "y":1},
|
||||||
|
{"label":"{", "x":11.5, "y":1},
|
||||||
|
{"label":"}", "x":12.5, "y":1},
|
||||||
|
{"label":"|", "x":13.5, "y":1, "w":1.5},
|
||||||
|
{"label":"7", "x":15.5, "y":1},
|
||||||
|
{"label":"8", "x":16.5, "y":1},
|
||||||
|
{"label":"9", "x":17.5, "y":1},
|
||||||
|
{"label":"+", "x":18.5, "y":1},
|
||||||
|
{"label":"Caps Lock", "x":0, "y":2, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":2},
|
||||||
|
{"label":"S", "x":2.75, "y":2},
|
||||||
|
{"label":"D", "x":3.75, "y":2},
|
||||||
|
{"label":"F", "x":4.75, "y":2},
|
||||||
|
{"label":"G", "x":5.75, "y":2},
|
||||||
|
{"label":"H", "x":6.75, "y":2},
|
||||||
|
{"label":"J", "x":7.75, "y":2},
|
||||||
|
{"label":"K", "x":8.75, "y":2},
|
||||||
|
{"label":"L", "x":9.75, "y":2},
|
||||||
|
{"label":":", "x":10.75, "y":2},
|
||||||
|
{"label":"\"", "x":11.75, "y":2},
|
||||||
|
{"label":"Enter", "x":12.75, "y":2},
|
||||||
|
{"label":"Enter", "x":13.75, "y":2, "w":1.25},
|
||||||
|
{"label":"4", "x":15.5, "y":2},
|
||||||
|
{"label":"5", "x":16.5, "y":2},
|
||||||
|
{"label":"6", "x":17.5, "y":2},
|
||||||
|
{"label":"+", "x":18.5, "y":2},
|
||||||
|
{"label":"Shift", "x":0, "y":3, "w":1.25},
|
||||||
|
{"label":"Shift", "x":1.25, "y":3},
|
||||||
|
{"label":"Z", "x":2.25, "y":3},
|
||||||
|
{"label":"X", "x":3.25, "y":3},
|
||||||
|
{"label":"C", "x":4.25, "y":3},
|
||||||
|
{"label":"V", "x":5.25, "y":3},
|
||||||
|
{"label":"B", "x":6.25, "y":3},
|
||||||
|
{"label":"N", "x":7.25, "y":3},
|
||||||
|
{"label":"M", "x":8.25, "y":3},
|
||||||
|
{"label":"<", "x":9.25, "y":3},
|
||||||
|
{"label":">", "x":10.25, "y":3},
|
||||||
|
{"label":"?", "x":11.25, "y":3},
|
||||||
|
{"label":"Shift", "x":12.25, "y":3, "w":1.75},
|
||||||
|
{"label":"1", "x":15.5, "y":3},
|
||||||
|
{"label":"2", "x":16.5, "y":3},
|
||||||
|
{"label":"3", "x":17.5, "y":3},
|
||||||
|
{"label":"Enter", "x":18.5, "y":3},
|
||||||
|
{"label":"Up", "x":14.25, "y":3.25},
|
||||||
|
{"label":"Ctrl", "x":0, "y":4, "w":1.25},
|
||||||
|
{"label":"Win", "x":1.25, "y":4, "w":1.25},
|
||||||
|
{"label":"Alt", "x":2.5, "y":4, "w":1.25},
|
||||||
|
{"label":"6.25x", "x":3.75, "y":4, "w":6.25},
|
||||||
|
{"label":"Ctrl", "x":10, "y":4},
|
||||||
|
{"label":"Win", "x":11, "y":4},
|
||||||
|
{"label":"Alt", "x":12, "y":4},
|
||||||
|
{"label":"0", "x":16.5, "y":4},
|
||||||
|
{"label":".", "x":17.5, "y":4},
|
||||||
|
{"label":"Enter", "x":18.5, "y":4},
|
||||||
|
{"label":"Left", "x":13.25, "y":4.25},
|
||||||
|
{"label":"Down", "x":14.25, "y":4.25},
|
||||||
|
{"label":"Right", "x":15.25, "y":4.25}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
/* Copyright 2020 marhalloweenvt
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names {
|
||||||
|
_BASE,
|
||||||
|
_FN
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Base */
|
||||||
|
[_BASE] = LAYOUT(
|
||||||
|
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PEQL,
|
||||||
|
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_PMNS,
|
||||||
|
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_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_LSFT, 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_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
|
||||||
|
),
|
||||||
|
[_FN] = LAYOUT(
|
||||||
|
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, BL_TOGG, BL_INC, KC_PAST, RESET,
|
||||||
|
_______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, BL_BRTG, BL_DEC, _______, EEP_RST,
|
||||||
|
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, EEP_RST,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLU, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for p1800fl
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
/* Copyright 2020 marhalloweenvt
|
||||||
|
*
|
||||||
|
* 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 "p1800fl.h"
|
||||||
|
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
|
bool res = led_update_user(led_state);
|
||||||
|
if(res) {
|
||||||
|
writePin(D3, led_state.num_lock);
|
||||||
|
writePin(D5, led_state.caps_lock);
|
||||||
|
writePin(C6, led_state.scroll_lock);
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/* Copyright 2020 marhalloweenvt
|
||||||
|
*
|
||||||
|
* 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"
|
||||||
|
|
||||||
|
/* This is a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
#define LAYOUT( \
|
||||||
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k50, k51, k52, k53, \
|
||||||
|
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k54, k55, k56, k57, \
|
||||||
|
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k58, k59, k5a, k5b, \
|
||||||
|
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k5c, k5d, k5e, k4e, \
|
||||||
|
k40, k41, k42, k43, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d \
|
||||||
|
) { \
|
||||||
|
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e }, \
|
||||||
|
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, KC_NO }, \
|
||||||
|
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, KC_NO }, \
|
||||||
|
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, KC_NO }, \
|
||||||
|
{ k40, k41, k42, k43, KC_NO, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d, k4e }, \
|
||||||
|
{ k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5a, k5b, k5c, k5d, k5e }, \
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# p1800fl
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A 1800 Frow-less keyboard project from our local makers.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [marhalloweenvt](https://github.com/marhalloweenvt)
|
||||||
|
* Hardware Supported: p1800fl
|
||||||
|
* Hardware Availability: p1800fl
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make handwired/p1800fl:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# 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 = qmk-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
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
|
||||||
@@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
#define VENDOR_ID 0x20A0
|
#define VENDOR_ID 0x4B50 // "KP"
|
||||||
#define PRODUCT_ID 0x422D
|
#define PRODUCT_ID 0x0044 // 4x4
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER KPrepublic
|
#define MANUFACTURER KPrepublic
|
||||||
#define PRODUCT JJ4x4
|
#define PRODUCT JJ4x4
|
||||||
|
|||||||
+28
-28
@@ -1,30 +1,30 @@
|
|||||||
{
|
{
|
||||||
"keyboard_name": "jj4x4",
|
"keyboard_name": "JJ4x4",
|
||||||
"url": "",
|
"url": "",
|
||||||
"maintainer": "qmk",
|
"maintainer": "qmk",
|
||||||
"width": 4,
|
"width": 4,
|
||||||
"height": 4,
|
"height": 4,
|
||||||
"layouts": {
|
"layouts": {
|
||||||
"LAYOUT_ortho_4x4": {
|
"LAYOUT_ortho_4x4": {
|
||||||
"key_count": 16,
|
"key_count": 16,
|
||||||
"layout": [
|
"layout": [
|
||||||
{"x":0, "y":0},
|
{"x":0, "y":0},
|
||||||
{"x":1, "y":0},
|
{"x":1, "y":0},
|
||||||
{"x":2, "y":0},
|
{"x":2, "y":0},
|
||||||
{"x":3, "y":0},
|
{"x":3, "y":0},
|
||||||
{"x":0, "y":1},
|
{"x":0, "y":1},
|
||||||
{"x":1, "y":1},
|
{"x":1, "y":1},
|
||||||
{"x":2, "y":1},
|
{"x":2, "y":1},
|
||||||
{"x":3, "y":1},
|
{"x":3, "y":1},
|
||||||
{"x":0, "y":2},
|
{"x":0, "y":2},
|
||||||
{"x":1, "y":2},
|
{"x":1, "y":2},
|
||||||
{"x":2, "y":2},
|
{"x":2, "y":2},
|
||||||
{"x":3, "y":2},
|
{"x":3, "y":2},
|
||||||
{"x":0, "y":3},
|
{"x":0, "y":3},
|
||||||
{"x":1, "y":3},
|
{"x":1, "y":3},
|
||||||
{"x":2, "y":3},
|
{"x":2, "y":3},
|
||||||
{"x":3, "y":3}
|
{"x":3, "y":3}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
+10
-11
@@ -28,14 +28,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
* represents the switch matrix.
|
* represents the switch matrix.
|
||||||
*/
|
*/
|
||||||
#define LAYOUT_ortho_4x4( \
|
#define LAYOUT_ortho_4x4( \
|
||||||
K01, K02, K03, K04, \
|
K00, K01, K02, K03, \
|
||||||
K11, K12, K13, K14, \
|
K10, K11, K12, K13, \
|
||||||
K21, K22, K23, K24, \
|
K20, K21, K22, K23, \
|
||||||
K31, K32, K33, K34 \
|
K30, K31, K32, K33 \
|
||||||
) \
|
) { \
|
||||||
{ \
|
{ K00, K01, K02, K03 }, \
|
||||||
{ K01, K02, K03, K04 }, \
|
{ K10, K11, K12, K13 }, \
|
||||||
{ K11, K12, K13, K14 }, \
|
{ K20, K21, K22, K23 }, \
|
||||||
{ K21, K22, K23, K24 }, \
|
{ K30, K31, K32, K33 } \
|
||||||
{ K31, K32, K33, K34 } \
|
}
|
||||||
}
|
|
||||||
@@ -13,61 +13,56 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
enum layers {
|
enum layers {
|
||||||
_BASE = 0,
|
_BASE = 0,
|
||||||
_FN1,
|
_FN1,
|
||||||
_FN2,
|
_FN2
|
||||||
};
|
};
|
||||||
|
|
||||||
// Defines the keycodes used by our macros in process_record_user
|
// Defines the keycodes used by our macros in process_record_user
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
QMKBEST = SAFE_RANGE,
|
QMKBEST = SAFE_RANGE,
|
||||||
QMKURL
|
QMKURL
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_BASE] = LAYOUT_ortho_4x4(
|
||||||
[_BASE] = LAYOUT_ortho_4x4(
|
KC_PGUP, KC_HOME, KC_UP, KC_END,
|
||||||
KC_PGUP, KC_HOME, KC_UP, KC_END , \
|
KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT,
|
||||||
KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, \
|
MO(_FN2), KC_VOLU, KC_MPLY, KC_MPRV,
|
||||||
MO(_FN2), KC_VOLU, KC_MPLY, KC_MPRV, \
|
MO(_FN1), KC_VOLD, KC_MUTE, KC_MNXT
|
||||||
MO(_FN1), KC_VOLD, KC_MUTE, KC_MNXT \
|
),
|
||||||
),
|
[_FN1] = LAYOUT_ortho_4x4(
|
||||||
[_FN1] = LAYOUT_ortho_4x4(
|
KC_ESC, KC_P7, KC_P8, KC_P9,
|
||||||
KC_ESC, KC_P7, KC_P8, KC_P9, \
|
KC_TAB, KC_P4, KC_P5, KC_P6,
|
||||||
KC_TAB, KC_P4, KC_P5, KC_P6, \
|
KC_ENT, KC_P1, KC_P2, KC_P3,
|
||||||
KC_ENT, KC_P1, KC_P2, KC_P3, \
|
_______, KC_P0, KC_P0, KC_DOT
|
||||||
_______, KC_P0, KC_P0, KC_DOT \
|
),
|
||||||
),
|
[_FN2] = LAYOUT_ortho_4x4(
|
||||||
[_FN2] = LAYOUT_ortho_4x4(
|
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||||
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, \
|
RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||||
RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, \
|
_______, _______, _______, RESET,
|
||||||
_______, _______, _______, RESET, \
|
BL_STEP, _______, QMKBEST, QMKURL
|
||||||
BL_STEP, _______, QMKBEST, QMKURL \
|
)
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case QMKBEST:
|
case QMKBEST:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
// when keycode QMKBEST is pressed
|
// when keycode QMKBEST is pressed
|
||||||
SEND_STRING("QMK is the best thing ever!");
|
SEND_STRING("QMK is the best thing ever!");
|
||||||
} else {
|
}
|
||||||
// when keycode QMKBEST is released
|
break;
|
||||||
}
|
case QMKURL:
|
||||||
break;
|
if (record->event.pressed) {
|
||||||
case QMKURL:
|
// when keycode QMKURL is pressed
|
||||||
if (record->event.pressed) {
|
SEND_STRING("https://qmk.fm/\n");
|
||||||
// when keycode QMKURL is pressed
|
}
|
||||||
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
|
break;
|
||||||
} else {
|
}
|
||||||
// when keycode QMKURL is released
|
return true;
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
LAYOUT_ortho_4x4(
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PSLS,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PAST,
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_PMNS,
|
||||||
|
KC_P0, KC_PDOT, KC_PPLS, LT(1, KC_ENT)
|
||||||
|
),
|
||||||
|
LAYOUT_ortho_4x4(
|
||||||
|
RESET, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______
|
||||||
|
),
|
||||||
|
LAYOUT_ortho_4x4(
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______
|
||||||
|
),
|
||||||
|
LAYOUT_ortho_4x4(
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
|
EXTRAKEY_ENABLE = no
|
||||||
|
MOUSEKEY_ENABLE = no
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
# jj4x4
|
# JJ4x4
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
A 4x4 keypad kit made and KPRepublic on AliExpress. This is a chopped off version of the jj40 with rearranged keys.
|
A 4x4 keypad kit made and KPRepublic on AliExpress. This is a chopped off version of the JJ40 with rearranged keys.
|
||||||
|
|
||||||
* Keyboard Maintainer: [QMK Community](https://github.com/qmk)
|
* Keyboard Maintainer: [QMK Community](https://github.com/qmk)
|
||||||
* Hardware Supported: Atmega32A
|
* Hardware Supported: Atmega32A
|
||||||
@@ -18,22 +18,22 @@ Flashing example for this keyboard ([after setting up the bootloadHID flashing e
|
|||||||
|
|
||||||
**Reset Key**:
|
**Reset Key**:
|
||||||
|
|
||||||
Hold down the key located at *K12*, commonly programmed as *8* while plugging in the keyboard USB cable.
|
Hold down the key located at *K11*, commonly programmed as *8* while plugging in the keyboard USB cable.
|
||||||
|
|
||||||
Key *K12* is in the above picture:
|
Key *K11* is in the above picture:
|
||||||
|
|
||||||
Row 2 from the top, Column 2 from the left, see the schematic below:
|
Row 2 from the top, Column 2 from the left, see the schematic below:
|
||||||
|
|
||||||
```
|
```
|
||||||
,-----------------------.
|
,-----------------------.
|
||||||
| | | | |
|
| | | | |
|
||||||
|-----`-----`-----`-----|
|
|-----`-----`-----`-----|
|
||||||
| | K12 | | |
|
| | K11 | | |
|
||||||
|-----`-----`-----`-----|
|
|-----`-----`-----`-----|
|
||||||
| | | | |
|
| | | | |
|
||||||
|-----`-----`-----`-----|
|
|-----`-----`-----`-----|
|
||||||
| | | | |
|
| | | | |
|
||||||
`-----`-----`-----`-----'
|
`-----`-----`-----`-----'
|
||||||
```
|
```
|
||||||
|
|
||||||
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).
|
||||||
@@ -31,6 +31,6 @@ UNICODE_ENABLE = no # Unicode
|
|||||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
AUDIO_ENABLE = no # Audio output on port C6
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
|
|
||||||
LAYOUTS = ortho_4x4
|
LAYOUTS = ortho_4x4
|
||||||
@@ -5,7 +5,7 @@ enum layer {
|
|||||||
LAYER_FUNCTION,
|
LAYER_FUNCTION,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define LY_FUNC LT(LAYER_FUNCTION, KC_APP)
|
#define LY_FN MO(LAYER_FUNCTION)
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* Default layer: http://www.keyboard-layout-editor.com/#/gists/dd675b40cc4df2c7bb78847ac29f5988 */
|
/* Default layer: http://www.keyboard-layout-editor.com/#/gists/dd675b40cc4df2c7bb78847ac29f5988 */
|
||||||
@@ -14,7 +14,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
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_BSPC, KC_PGUP,
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP,
|
||||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_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_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, LY_FUNC, KC_LEFT, KC_DOWN, KC_RGHT
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, LY_FN, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Function layer: http://www.keyboard-layout-editor.com/#/gists/f29128427f674c43777f045e363d1b44 */
|
/* Function layer: http://www.keyboard-layout-editor.com/#/gists/f29128427f674c43777f045e363d1b44 */
|
||||||
@@ -22,7 +22,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______, 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_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_CAPS, _______, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, _______,
|
KC_CAPS, _______, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, _______,
|
||||||
_______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
_______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, KC_APP, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
@@ -1,17 +1,16 @@
|
|||||||
# bcat's KBD67 hotswap layout
|
# bcat's KBD67 hotswap layout
|
||||||
|
|
||||||
This is pretty much a stock 65% split keyboard layout, with an HHKB-style
|
This is a standard 65% keyboard layout, with an HHKB-style (split) backspace
|
||||||
(split) backspace and media keys in the function layer centered around the ESDF
|
and media controls in the function layer (centered around the ESDF cluster).
|
||||||
cluster.
|
|
||||||
|
|
||||||
## Default layer
|
## Default layer
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
([KLE](http://www.keyboard-layout-editor.com/#/gists/dd675b40cc4df2c7bb78847ac29f5988))
|
([KLE](http://www.keyboard-layout-editor.com/#/gists/dd675b40cc4df2c7bb78847ac29f5988))
|
||||||
|
|
||||||
## Function layer
|
## Function layer
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
([KLE](http://www.keyboard-layout-editor.com/#/gists/f29128427f674c43777f045e363d1b44))
|
([KLE](http://www.keyboard-layout-editor.com/#/gists/f29128427f674c43777f045e363d1b44))
|
||||||
@@ -1 +1,18 @@
|
|||||||
#include "bdn9.h"
|
#include "bdn9.h"
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(5);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -1 +1,18 @@
|
|||||||
#include "chocopad.h"
|
#include "chocopad.h"
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(5);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -1 +1,18 @@
|
|||||||
#include "dilly.h"
|
#include "dilly.h"
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(3);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -1,51 +1,18 @@
|
|||||||
/* Copyright 2019 Keebio
|
|
||||||
*
|
|
||||||
* 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 "ergodicity.h"
|
#include "ergodicity.h"
|
||||||
|
|
||||||
// Optional override functions below.
|
void eeconfig_init_kb(void) {
|
||||||
// You can leave any or all of these undefined.
|
#ifdef BACKLIGHT_ENABLE
|
||||||
// These are only required if you want to perform custom actions.
|
backlight_enable();
|
||||||
|
backlight_level(5);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
void matrix_init_kb(void) {
|
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|
||||||
// put your per-action keyboard code here
|
|
||||||
// runs for every action, just before processing by the firmware
|
|
||||||
|
|
||||||
return process_record_user(keycode, record);
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Danny Nguyen <[email protected]>
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
#define MASTER_LEFT
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 12
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
@@ -0,0 +1,192 @@
|
|||||||
|
{
|
||||||
|
"author": "",
|
||||||
|
"layers": [
|
||||||
|
[
|
||||||
|
"KC_ESC",
|
||||||
|
"KC_1",
|
||||||
|
"KC_2",
|
||||||
|
"KC_3",
|
||||||
|
"KC_4",
|
||||||
|
"KC_5",
|
||||||
|
"KC_6",
|
||||||
|
"KC_7",
|
||||||
|
"KC_8",
|
||||||
|
"KC_9",
|
||||||
|
"KC_0",
|
||||||
|
"KC_BSPC",
|
||||||
|
"KC_TAB",
|
||||||
|
"KC_QUOT",
|
||||||
|
"KC_COMM",
|
||||||
|
"KC_DOT",
|
||||||
|
"KC_P",
|
||||||
|
"KC_Y",
|
||||||
|
"KC_F",
|
||||||
|
"KC_G",
|
||||||
|
"KC_C",
|
||||||
|
"KC_R",
|
||||||
|
"KC_L",
|
||||||
|
"KC_SLSH",
|
||||||
|
"KC_LCTL",
|
||||||
|
"KC_A",
|
||||||
|
"KC_O",
|
||||||
|
"KC_E",
|
||||||
|
"KC_U",
|
||||||
|
"KC_I",
|
||||||
|
"KC_D",
|
||||||
|
"KC_H",
|
||||||
|
"KC_T",
|
||||||
|
"KC_N",
|
||||||
|
"KC_S",
|
||||||
|
"KC_MINS",
|
||||||
|
"KC_LSFT",
|
||||||
|
"KC_SCLN",
|
||||||
|
"KC_Q",
|
||||||
|
"KC_J",
|
||||||
|
"KC_K",
|
||||||
|
"KC_X",
|
||||||
|
"KC_HOME",
|
||||||
|
"KC_END",
|
||||||
|
"KC_B",
|
||||||
|
"KC_M",
|
||||||
|
"KC_W",
|
||||||
|
"KC_V",
|
||||||
|
"KC_Z",
|
||||||
|
"KC_RSFT",
|
||||||
|
"MO(1)",
|
||||||
|
"KC_LGUI",
|
||||||
|
"KC_ENT",
|
||||||
|
"KC_SPC",
|
||||||
|
"KC_RALT",
|
||||||
|
"MO(2)"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"KC_TILD",
|
||||||
|
"KC_EXLM",
|
||||||
|
"KC_AT",
|
||||||
|
"KC_HASH",
|
||||||
|
"KC_DLR",
|
||||||
|
"KC_PERC",
|
||||||
|
"KC_CIRC",
|
||||||
|
"KC_AMPR",
|
||||||
|
"KC_ASTR",
|
||||||
|
"KC_LPRN",
|
||||||
|
"KC_RPRN",
|
||||||
|
"KC_BSPC",
|
||||||
|
"RESET",
|
||||||
|
"KC_1",
|
||||||
|
"KC_2",
|
||||||
|
"KC_3",
|
||||||
|
"KC_4",
|
||||||
|
"KC_5",
|
||||||
|
"KC_6",
|
||||||
|
"KC_7",
|
||||||
|
"KC_8",
|
||||||
|
"KC_9",
|
||||||
|
"KC_0",
|
||||||
|
"KC_GRV",
|
||||||
|
"KC_DEL",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_LEFT",
|
||||||
|
"KC_RGHT",
|
||||||
|
"KC_UP",
|
||||||
|
"KC_LCBR",
|
||||||
|
"KC_RCBR",
|
||||||
|
"KC_P4",
|
||||||
|
"KC_P5",
|
||||||
|
"KC_P6",
|
||||||
|
"KC_PPLS",
|
||||||
|
"KC_BSPC",
|
||||||
|
"BL_INC",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_DOWN",
|
||||||
|
"KC_LBRC",
|
||||||
|
"KC_LPRN",
|
||||||
|
"KC_RPRN",
|
||||||
|
"KC_RBRC",
|
||||||
|
"KC_P1",
|
||||||
|
"KC_P2",
|
||||||
|
"KC_P3",
|
||||||
|
"KC_PMNS",
|
||||||
|
"KC_PIPE",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_DEL",
|
||||||
|
"KC_DEL",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_P0"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"KC_F12",
|
||||||
|
"KC_F1",
|
||||||
|
"KC_F2",
|
||||||
|
"KC_F3",
|
||||||
|
"KC_F4",
|
||||||
|
"KC_F5",
|
||||||
|
"KC_F6",
|
||||||
|
"KC_F7",
|
||||||
|
"KC_F8",
|
||||||
|
"KC_F9",
|
||||||
|
"KC_F10",
|
||||||
|
"KC_F11",
|
||||||
|
"RGB_TOG",
|
||||||
|
"KC_EXLM",
|
||||||
|
"KC_AT",
|
||||||
|
"KC_HASH",
|
||||||
|
"KC_DLR",
|
||||||
|
"KC_PERC",
|
||||||
|
"KC_CIRC",
|
||||||
|
"KC_AMPR",
|
||||||
|
"KC_ASTR",
|
||||||
|
"KC_LPRN",
|
||||||
|
"KC_RPRN",
|
||||||
|
"KC_NO",
|
||||||
|
"RGB_MOD",
|
||||||
|
"KC_MRWD",
|
||||||
|
"KC_MFFD",
|
||||||
|
"KC_VOLU",
|
||||||
|
"KC_PGUP",
|
||||||
|
"KC_UNDS",
|
||||||
|
"KC_PEQL",
|
||||||
|
"KC_HOME",
|
||||||
|
"RGB_HUI",
|
||||||
|
"RGB_SAI",
|
||||||
|
"RGB_VAI",
|
||||||
|
"KC_BSLS",
|
||||||
|
"KC_MUTE",
|
||||||
|
"KC_MSTP",
|
||||||
|
"KC_MPLY",
|
||||||
|
"KC_VOLD",
|
||||||
|
"KC_PGDN",
|
||||||
|
"KC_PMNS",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_PPLS",
|
||||||
|
"KC_END",
|
||||||
|
"RGB_HUD",
|
||||||
|
"RGB_SAD",
|
||||||
|
"RGB_VAD",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO",
|
||||||
|
"KC_NO"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"layout": "LAYOUT",
|
||||||
|
"keymap": "keebio_iris_rev2_layout_dvorak.json",
|
||||||
|
"keyboard": "keebio/iris/rev2",
|
||||||
|
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.
|
||||||
|
|
||||||
|
To setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>
|
||||||
|
|
||||||
|
You can convert this file to a keymap.c using this command: `qmk json2c {keymap}`
|
||||||
|
|
||||||
|
You can compile this keymap using this command: `qmk compile {keymap}`\"
|
||||||
|
",
|
||||||
|
"notes": "",
|
||||||
|
"version": 1
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
enum my_layers {
|
||||||
|
_DVORAK,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_ADJUST
|
||||||
|
};
|
||||||
|
|
||||||
|
#define RAISE MO(_RAISE)
|
||||||
|
#define LOWER MO(_LOWER)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_DVORAK] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_HOME, KC_END, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT,
|
||||||
|
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
|
||||||
|
LOWER, KC_LGUI, KC_ENT, KC_SPC, KC_RALT, RAISE
|
||||||
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[_LOWER] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRAVE,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
KC_DEL, _______, KC_LEFT, KC_RGHT, KC_UP, KC_LBRC, KC_RBRC, KC_P4, KC_P5, KC_P6, KC_PLUS, KC_BSPC,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
BL_STEP, _______, _______, _______, KC_DOWN, KC_LCBR, KC_LPRN, KC_RPRN, KC_RCBR, KC_P1, KC_P2, KC_P3, KC_MINS, KC_PIPE,
|
||||||
|
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
|
||||||
|
_______, _______, KC_DEL, KC_DEL, _______, KC_P0
|
||||||
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[_RAISE] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
|
KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
RGB_TOG, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
RGB_MOD, KC_MPRV, KC_MNXT, KC_VOLU, KC_PGUP, KC_UNDS, KC_EQL, KC_HOME, RGB_HUI, RGB_SAI, RGB_VAI, KC_BSLS,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
KC_MUTE, KC_MSTP, KC_MPLY, KC_VOLD, KC_PGDN, KC_MINS, _______, _______, KC_PLUS, KC_END, RGB_HUD, RGB_SAD, RGB_VAD, _______,
|
||||||
|
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[_ADJUST] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
# Dvorak
|
||||||
|
|
||||||
|
```
|
||||||
|
make keebio/iris/rev2:dvorak
|
||||||
|
```
|
||||||
|
```
|
||||||
|
make keebio/iris/rev3:dvorak
|
||||||
|
```
|
||||||
|
```
|
||||||
|
make keebio/iris/rev4:dvorak
|
||||||
|
```
|
||||||
|
|
||||||
|
Tested with Iris rev. 2
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
BACKLIGHT_ENABLE = yes
|
||||||
@@ -1,12 +1,5 @@
|
|||||||
#include "rev2.h"
|
#include "rev2.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
@@ -26,3 +19,19 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(3);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -1,12 +1,5 @@
|
|||||||
#include "rev3.h"
|
#include "rev3.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
@@ -25,3 +18,20 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
{{0,4}, {1,4}, {2,4}, {3,4}, {4,4}, {5,4}},
|
{{0,4}, {1,4}, {2,4}, {3,4}, {4,4}, {5,4}},
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(3);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -1 +1,18 @@
|
|||||||
#include "rev4.h"
|
#include "rev4.h"
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(3);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -1,22 +1,18 @@
|
|||||||
#include "levinson.h"
|
#include "levinson.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
void eeconfig_init_kb(void) {
|
||||||
void led_set_kb(uint8_t usb_led) {
|
#ifdef BACKLIGHT_ENABLE
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
backlight_enable();
|
||||||
led_set_user(usb_led);
|
backlight_level(5);
|
||||||
}
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
// // green led on
|
}
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,22 +1,18 @@
|
|||||||
#include "levinson.h"
|
#include "levinson.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
void eeconfig_init_kb(void) {
|
||||||
void led_set_kb(uint8_t usb_led) {
|
#ifdef BACKLIGHT_ENABLE
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
backlight_enable();
|
||||||
led_set_user(usb_led);
|
backlight_level(5);
|
||||||
}
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
// // green led on
|
}
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,21 +1,18 @@
|
|||||||
#include "rev2.h"
|
#include "rev2.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
void eeconfig_init_kb(void) {
|
||||||
void led_set_kb(uint8_t usb_led) {
|
#ifdef BACKLIGHT_ENABLE
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
backlight_enable();
|
||||||
led_set_user(usb_led);
|
backlight_level(5);
|
||||||
}
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
// // green led on
|
}
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
@@ -1,21 +1,18 @@
|
|||||||
#include "rev3.h"
|
#include "rev3.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
void eeconfig_init_kb(void) {
|
||||||
void led_set_kb(uint8_t usb_led) {
|
#ifdef BACKLIGHT_ENABLE
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
backlight_enable();
|
||||||
led_set_user(usb_led);
|
backlight_level(5);
|
||||||
}
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
// // green led on
|
}
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
@@ -5,7 +5,7 @@ enum layer {
|
|||||||
LAYER_FUNCTION,
|
LAYER_FUNCTION,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define LY_FUNC MO(LAYER_FUNCTION)
|
#define LY_FN MO(LAYER_FUNCTION)
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* Default layer: http://www.keyboard-layout-editor.com/#/gists/60a262432bb340b37d364a4424f3037b */
|
/* Default layer: http://www.keyboard-layout-editor.com/#/gists/60a262432bb340b37d364a4424f3037b */
|
||||||
@@ -14,7 +14,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
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_BSPC, KC_PGUP,
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP,
|
||||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_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_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, LY_FUNC, KC_SPC, KC_SPC, XXXXXXX, KC_RALT, LY_FUNC, KC_APP, KC_LEFT, KC_DOWN, KC_RGHT
|
KC_LCTL, KC_LGUI, KC_LALT, LY_FN, KC_SPC, KC_SPC, XXXXXXX, KC_RALT, LY_FN, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Function layer: http://www.keyboard-layout-editor.com/#/gists/59636898946da51f91fb290f8e078b4d */
|
/* Function layer: http://www.keyboard-layout-editor.com/#/gists/59636898946da51f91fb290f8e078b4d */
|
||||||
@@ -22,7 +22,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______, 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, RGB_HUI,
|
_______, 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, RGB_HUI,
|
||||||
KC_CAPS, _______, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, RGB_SAI,
|
KC_CAPS, _______, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, RGB_SAI,
|
||||||
_______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_SAD,
|
_______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_SAD,
|
||||||
_______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, RGB_HUD,
|
_______, KC_APP, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, RGB_HUD,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
# bcat's Quefrency 65% layout
|
# bcat's Quefrency 65% layout
|
||||||
|
|
||||||
This is pretty much a stock 65% split keyboard layout, with an HHKB-style
|
This is a standard 65% keyboard layout, with a split spacebar, an HHKB-style
|
||||||
(split) backspace, media keys in the function layer centered around the ESDF
|
(split) backspace, media controls in the function layer (centered around the
|
||||||
cluster, and RGB controls in the function layer on the arrow/nav keys.
|
ESDF cluster), and RGB controls in the function layer (on the arrow/nav keys).
|
||||||
|
|
||||||
## Default layer
|
## Default layer
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
([KLE](http://www.keyboard-layout-editor.com/#/gists/60a262432bb340b37d364a4424f3037b))
|
([KLE](http://www.keyboard-layout-editor.com/#/gists/60a262432bb340b37d364a4424f3037b))
|
||||||
|
|
||||||
## Function layer
|
## Function layer
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
([KLE](http://www.keyboard-layout-editor.com/#/gists/59636898946da51f91fb290f8e078b4d))
|
([KLE](http://www.keyboard-layout-editor.com/#/gists/59636898946da51f91fb290f8e078b4d))
|
||||||
@@ -1,5 +1,14 @@
|
|||||||
#include "quefrency.h"
|
#include "quefrency.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void eeconfig_init_kb(void) {
|
||||||
matrix_init_user();
|
#ifdef RGBLIGHT_ENABLE
|
||||||
};
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// #define USE_I2C
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
// #define MASTER_RIGHT
|
||||||
|
// #define EE_HANDS
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 12
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
@@ -0,0 +1,193 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 Eric Gebhart <[email protected]>
|
||||||
|
|
||||||
|
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 "keymap_bepo.h"
|
||||||
|
#include "ericgebhart.h"
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[DVORAK] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_DVORAK_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_DVORAK_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_DVORAK_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[QWERTY] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_QWERTY_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_QWERTY_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_QWERTY_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[COLEMAK] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_COLEMAK_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_COLEMAK_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_COLEMAK_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[WORKMAN] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_WORKMAN_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_WORKMAN_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_WORKMAN_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[NORMAN] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_NORMAN_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_NORMAN_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_NORMAN_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[DVORAK_ON_BEPO] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_DVORAK_B_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_DVORAK_B_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_DVORAK_B_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM_FR___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[BEPO] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
KC_GRV, ___12_DVORAK_B_1___, KC_SLASH,
|
||||||
|
TAB_BKTAB, ___12_DVORAK_B_2___, KC_MINUS,
|
||||||
|
KC_LSFT, ___12_DVORAK_B_3___, KC_RSFT,
|
||||||
|
___ORTHO_14_BOTTOM_BP___,
|
||||||
|
___ORTHO_14_THUMBS_BOTTOM___
|
||||||
|
),
|
||||||
|
|
||||||
|
[XMONAD] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___, ___12_DVORAK_1___, ___,
|
||||||
|
___, ___12_DVORAK_2___, ___,
|
||||||
|
___, ___12_DVORAK_3___, ___,
|
||||||
|
___14___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
[XMONAD_FR] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___, ___12_DVORAK_B_1___, ___,
|
||||||
|
___, ___12_DVORAK_B_2___, ___,
|
||||||
|
___, ___12_DVORAK_B_3___, ___,
|
||||||
|
___14___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
// SYMBOLS
|
||||||
|
[SYMB] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_SYMB_1___,
|
||||||
|
___14_SYMB_2___,
|
||||||
|
___14_SYMB_3___,
|
||||||
|
___14_SYMB_4___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
[KEYPAD] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_KP_1___,
|
||||||
|
___14_KP_2___,
|
||||||
|
___14_KP_3___,
|
||||||
|
___14_KP_4___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
[KEYPAD_ON_BEPO] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_KP_B_1___,
|
||||||
|
___14_KP_B_2___,
|
||||||
|
___14_KP_B_3___,
|
||||||
|
___14_KP_B_4___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
[SYMB_ON_BEPO] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_SYMB_B_1___,
|
||||||
|
___14_SYMB_B_2___,
|
||||||
|
___14_SYMB_B_3___,
|
||||||
|
___14_SYMB_B_4___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
// MEDIA AND MOUSE
|
||||||
|
[MDIA] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_MDIA_1___,
|
||||||
|
___14_MDIA_2___,
|
||||||
|
___14_MDIA_3___,
|
||||||
|
___14_MDIA_4___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
[LAYERS] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_LAYERS_1___,
|
||||||
|
___14_LAYERS_2___,
|
||||||
|
___14_LAYERS_3___,
|
||||||
|
___14___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
|
||||||
|
[_RGB] = LAYOUT_ortho_5x14_wrapper(
|
||||||
|
___14_RGB_1___,
|
||||||
|
___14_RGB_2___,
|
||||||
|
___14_RGB_3___,
|
||||||
|
___14___,
|
||||||
|
___14___
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
/* bool process_record_user(uint16_t keycode, keyrecord_t *record) { */
|
||||||
|
/* switch (keycode) { */
|
||||||
|
/* case QWERTY: */
|
||||||
|
/* if (record->event.pressed) { */
|
||||||
|
/* set_single_persistent_default_layer(_QWERTY); */
|
||||||
|
/* } */
|
||||||
|
/* 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; */
|
||||||
|
/* } */
|
||||||
@@ -1 +1,18 @@
|
|||||||
#include "viterbi.h"
|
#include "viterbi.h"
|
||||||
|
|
||||||
|
void eeconfig_init_kb(void) {
|
||||||
|
#ifdef BACKLIGHT_ENABLE
|
||||||
|
backlight_enable();
|
||||||
|
backlight_level(5);
|
||||||
|
#endif
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
rgblight_enable(); // Enable RGB by default
|
||||||
|
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
|
||||||
|
#ifdef RGBLIGHT_ANIMATIONS
|
||||||
|
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
eeconfig_update_kb(0);
|
||||||
|
eeconfig_init_user();
|
||||||
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 latincompass
|
||||||
|
|
||||||
|
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"
|
||||||
|
#define VENDOR_ID 0x6C63 // "lc" = latincompass
|
||||||
|
#define PRODUCT_ID 0x6C70 // "lp" = latinpad
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER latincompass
|
||||||
|
#define PRODUCT latinpad
|
||||||
|
#define DESCRIPTION dual rotary encoder macro pad
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 4
|
||||||
|
#define MATRIX_ROW_PINS { F4, F5, F6, F7, B1 }
|
||||||
|
#define MATRIX_COL_PINS { D4, C6, D7, E6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define DIODE_DIRECTION ROW2COL
|
||||||
|
|
||||||
|
#define SSD1306OLED
|
||||||
|
#define RGB_DI_PIN D3
|
||||||
|
|
||||||
|
#define RGBLED_NUM 18
|
||||||
|
#define DRIVER_LED_TOTAL RGBLED_NUM
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
|
||||||
|
#define OLED_FONT_H "./lib/glcdfont.c"
|
||||||
|
|
||||||
|
#define ENCODERS_PAD_A { B4, B5 }
|
||||||
|
#define ENCODERS_PAD_B { B2, B6 }
|
||||||
|
|
||||||
|
#define ENCODER_RESOLUTION 4
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "latinpad",
|
||||||
|
"url": "https://github.com/latincompass/2-RotaryEncoder-pad",
|
||||||
|
"maintainer": "latincompass",
|
||||||
|
|
||||||
|
"width": 4,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Num Lock", "x":0, "y":0, "w":0.8, "h":0.8},
|
||||||
|
{"label":"/", "x":0.8, "y":0, "w":0.8, "h":0.8},
|
||||||
|
|
||||||
|
{"label":"7", "x":0, "y":1},
|
||||||
|
{"label":"8", "x":1, "y":1},
|
||||||
|
{"label":"9", "x":2, "y":1},
|
||||||
|
{"label":"+", "x":3, "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":"1", "x":0, "y":3},
|
||||||
|
{"label":"2", "x":1, "y":3},
|
||||||
|
{"label":"3", "x":2, "y":3},
|
||||||
|
{"label":"Enter", "x":3, "y":3},
|
||||||
|
{"label":"0", "x":0, "y":4},
|
||||||
|
{"label":"0", "x":1, "y":4},
|
||||||
|
{"label":".", "x":2, "y":4},
|
||||||
|
{"label":"Enter", "x":3, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
/* Keymap _0: (Base Layer) Default Layer
|
||||||
|
|
||||||
|
* .-----------.
|
||||||
|
* |PGUP | PGDN|
|
||||||
|
* |-----------------------.
|
||||||
|
* | 7 | 8 | 9 | MO1 |
|
||||||
|
* |-----|-----|-----|-----|
|
||||||
|
* | 4 | 5 | 6 | + |
|
||||||
|
* |-----|-----|-----|-----|
|
||||||
|
* | 1 | 2 | 3 | — |
|
||||||
|
* |-----|-----|-----|-----|
|
||||||
|
* | 0 | . | DEL |Enter|
|
||||||
|
* .-----------------------.
|
||||||
|
*/
|
||||||
|
/* Keymap _1: (Second Layer) second Layer
|
||||||
|
|
||||||
|
* .---------------.
|
||||||
|
* |NUMLOCK|Calc. |
|
||||||
|
* |--------------------------------.
|
||||||
|
* |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
|
||||||
|
* |-------|-------|-------|--------|
|
||||||
|
* |RGB_SAI|RGB_SAD|RGB_HUI|RGB_HUD |
|
||||||
|
* |-------|-------|-------|--------|
|
||||||
|
* |RGB_VAI|RGB_VAD|RGB_SPI|RGB_SPD |
|
||||||
|
* |-------|-------|-------|--------|
|
||||||
|
* |RGB_SPI|RGB_SPD|RGB_TOG|KC_TRNS |
|
||||||
|
* .--------------------------------.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
|
KC_PGUP, KC_PGDOWN,
|
||||||
|
KC_KP_7, KC_KP_8, KC_KP_9, MO(1),
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_KP_PLUS,
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_KP_MINUS,
|
||||||
|
KC_P0, KC_PDOT,KC_DELETE, KC_KP_ENTER),
|
||||||
|
[1] = LAYOUT(
|
||||||
|
KC_NUMLOCK, KC_CALCULATOR,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_M_K, RGB_M_X,
|
||||||
|
RGB_SAI, RGB_SAD, RGB_HUI, RGB_HUD,
|
||||||
|
RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
|
||||||
|
RGB_SPI, RGB_SPD, RGB_TOG, KC_TRNS),
|
||||||
|
};
|
||||||
|
|
||||||
|
static void render_logo(void) {
|
||||||
|
static const char PROGMEM qmk_logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0};
|
||||||
|
oled_write_P(qmk_logo, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
void oled_task_user(void) { render_logo(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (index == 0) {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_AUDIO_VOL_UP);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_AUDIO_VOL_DOWN);
|
||||||
|
}
|
||||||
|
} else if (index == 1) {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_BRIGHTNESS_UP);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_BRIGHTNESS_DOWN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void matrix_init_user(void) { render_logo(); }
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
/* Keymap _0: (Base Layer) Default Layer
|
||||||
|
* .-----------.
|
||||||
|
* |PGUP | PGDN|
|
||||||
|
* |-----------------------.
|
||||||
|
* | 7 | 8 | 9 | MO1 |
|
||||||
|
* |-----|-----|-----|-----|
|
||||||
|
* | 4 | 5 | 6 | + |
|
||||||
|
* |-----|-----|-----|-----|
|
||||||
|
* | 1 | 2 | 3 | — |
|
||||||
|
* |-----|-----|-----|-----|
|
||||||
|
* | 0 | . | DEL |Enter|
|
||||||
|
* .-----------------------.
|
||||||
|
*/
|
||||||
|
/* Keymap _1: (Second Layer) second Layer
|
||||||
|
* .---------------.
|
||||||
|
* |NUMLOCK|Calc. |
|
||||||
|
* |--------------------------------.
|
||||||
|
* |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
|
||||||
|
* |-------|-------|-------|--------|
|
||||||
|
* |RGB_SAI|RGB_SAD|RGB_HUI|RGB_HUD |
|
||||||
|
* |-------|-------|-------|--------|
|
||||||
|
* |RGB_VAI|RGB_VAD|RGB_SPI|RGB_SPD |
|
||||||
|
* |-------|-------|-------|--------|
|
||||||
|
* |RGB_SPI|RGB_SPD|RGB_TOG|KC_TRNS |
|
||||||
|
* .--------------------------------.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
|
KC_PGUP, KC_PGDOWN,
|
||||||
|
KC_KP_7, KC_KP_8, KC_KP_9, MO(1),
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_KP_PLUS,
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_KP_MINUS,
|
||||||
|
KC_P0, KC_PDOT,KC_DELETE, KC_KP_ENTER),
|
||||||
|
[1] = LAYOUT(
|
||||||
|
KC_NUMLOCK, KC_CALCULATOR,
|
||||||
|
RGB_TOG, RGB_MOD, RGB_M_K, RGB_M_X,
|
||||||
|
RGB_SAI, RGB_SAD, RGB_HUI, RGB_HUD,
|
||||||
|
RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
|
||||||
|
RGB_SPI, RGB_SPD, RGB_TOG, KC_TRNS),
|
||||||
|
};
|
||||||
|
|
||||||
|
static void render_logo(void) {
|
||||||
|
static const char PROGMEM qmk_logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0};
|
||||||
|
oled_write_P(qmk_logo, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
void oled_task_user(void) { render_logo(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (index == 0) {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_AUDIO_VOL_UP);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_AUDIO_VOL_DOWN);
|
||||||
|
}
|
||||||
|
} else if (index == 1) {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_BRIGHTNESS_UP);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_BRIGHTNESS_DOWN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void matrix_init_user(void) { render_logo(); }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/* Copyright 2020 latincompass
|
||||||
|
*
|
||||||
|
* 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 "latinpad.h"
|
||||||
|
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
led_config_t g_led_config = {
|
||||||
|
{
|
||||||
|
{ 1, 2, 3, 4 },
|
||||||
|
{ 5, 6, 7, 8 },
|
||||||
|
{ 9, 10, 11, 12 },
|
||||||
|
{ 13, 14, 15, 16 },
|
||||||
|
{ 17, 18, NO_LED, NO_LED }
|
||||||
|
},{
|
||||||
|
{ 74, 21 }, { 37, 21 }, { 24, 21 }, { 18, 21 },
|
||||||
|
{ 74, 10 }, { 37, 10 }, { 28, 10 }, { 18, 10 },
|
||||||
|
{ 74, 7 }, { 37, 7 }, { 20, 7 }, { 18, 7 },
|
||||||
|
{ 74, 5 }, { 37, 5 }, { 22, 5 }, { 18, 5 },
|
||||||
|
{ 74, 5 }, { 37, 5 },
|
||||||
|
},{
|
||||||
|
1, 1, 1, 1,
|
||||||
|
1, 1, 1, 1,
|
||||||
|
1, 1, 1, 1,
|
||||||
|
1, 1, 1, 1,
|
||||||
|
1, 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/* Copyright 2020 latincompass
|
||||||
|
*
|
||||||
|
* 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"
|
||||||
|
|
||||||
|
/* 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( \
|
||||||
|
K40, K41, \
|
||||||
|
K00, K01, K02, K03, \
|
||||||
|
K10, K11, K12, K13, \
|
||||||
|
K20, K21, K22, K23, \
|
||||||
|
K30, K31, K32, K33 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ K00, K01, K02, K03 }, \
|
||||||
|
{ K10, K11, K12, K13 }, \
|
||||||
|
{ K20, K21, K22, K23 }, \
|
||||||
|
{ K30, K31, K32, K33 }, \
|
||||||
|
{ K40, K41, KC_NO, KC_NO } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,228 @@
|
|||||||
|
#include "progmem.h"
|
||||||
|
// Standard ASCII 5x7 font
|
||||||
|
const unsigned char font[] PROGMEM = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||||
|
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||||
|
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||||
|
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||||
|
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||||
|
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||||
|
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||||
|
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||||
|
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||||
|
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||||
|
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||||
|
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||||
|
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||||
|
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||||
|
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||||
|
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||||
|
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||||
|
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||||
|
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||||
|
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||||
|
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||||
|
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||||
|
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||||
|
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||||
|
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||||
|
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||||
|
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||||
|
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||||
|
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||||
|
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||||
|
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||||
|
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||||
|
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||||
|
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||||
|
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||||
|
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||||
|
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||||
|
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||||
|
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||||
|
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||||
|
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||||
|
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||||
|
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||||
|
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||||
|
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||||
|
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||||
|
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||||
|
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||||
|
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||||
|
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||||
|
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||||
|
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||||
|
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||||
|
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||||
|
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||||
|
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||||
|
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||||
|
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||||
|
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||||
|
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||||
|
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||||
|
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||||
|
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||||
|
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||||
|
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||||
|
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||||
|
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||||
|
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
|
||||||
|
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||||
|
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||||
|
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||||
|
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||||
|
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||||
|
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||||
|
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||||
|
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||||
|
0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
|
||||||
|
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||||
|
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||||
|
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||||
|
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0xF8, 0xF8, 0x58, 0x58, 0x5E,
|
||||||
|
0xDA, 0x5A, 0x5B, 0x59, 0xDB, 0x5A,
|
||||||
|
0x5B, 0x58, 0xD8, 0x58, 0x58, 0x58,
|
||||||
|
0xD8, 0x58, 0x58, 0x58, 0xD8, 0x58,
|
||||||
|
0x58, 0x58, 0xD8, 0x58, 0x58, 0x58,
|
||||||
|
0xD8, 0x58, 0x58, 0x78, 0xF8, 0xF8,
|
||||||
|
0xF8, 0x78, 0x78, 0x78, 0xF8, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x44, 0x28, 0xFF, 0x5A, 0x24,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0xFF, 0xFF, 0x44, 0x55, 0x44,
|
||||||
|
0xFF, 0x44, 0x55, 0x44, 0xFF, 0x44,
|
||||||
|
0x55, 0x44, 0xFF, 0x44, 0x55, 0x44,
|
||||||
|
0xFF, 0x44, 0x55, 0x44, 0xFF, 0x44,
|
||||||
|
0x55, 0x44, 0xFF, 0x44, 0x55, 0x44,
|
||||||
|
0xFF, 0x44, 0x55, 0x44, 0xFF, 0xFF,
|
||||||
|
0xFF, 0xC4, 0xD5, 0xC4, 0xFF, 0x00,
|
||||||
|
0x00, 0xFE, 0x21, 0x61, 0xA1, 0x1E,
|
||||||
|
0x00, 0xFE, 0x01, 0x21, 0x21, 0xEF,
|
||||||
|
0x00, 0xFF, 0x11, 0x11, 0x11, 0xFE,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xFF, 0x11, 0x11, 0x11, 0xFE, 0x00,
|
||||||
|
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00,
|
||||||
|
0xFF, 0x11, 0x11, 0x11, 0x01, 0x00,
|
||||||
|
0x01, 0x01, 0xFF, 0x01, 0x01, 0x00,
|
||||||
|
0xFF, 0x01, 0x01, 0xFF, 0x00, 0xFF,
|
||||||
|
0x01, 0x01, 0xFF, 0x00, 0x01, 0x01,
|
||||||
|
0xFF, 0x01, 0x01, 0x00, 0xFF, 0x20,
|
||||||
|
0x20, 0x20, 0xFF, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x7F, 0x7F, 0x44, 0x55, 0x44,
|
||||||
|
0x7F, 0x44, 0x55, 0x54, 0x57, 0x54,
|
||||||
|
0x55, 0x54, 0x57, 0x54, 0x55, 0x54,
|
||||||
|
0x57, 0x54, 0x55, 0x54, 0x57, 0x54,
|
||||||
|
0x45, 0x7C, 0x47, 0x54, 0x45, 0x7C,
|
||||||
|
0x7F, 0x7C, 0x45, 0x54, 0x57, 0x50,
|
||||||
|
0x5E, 0x50, 0x57, 0x47, 0x7F, 0x00,
|
||||||
|
0x00, 0x03, 0x00, 0x00, 0x00, 0x03,
|
||||||
|
0x00, 0x01, 0x02, 0x02, 0x02, 0x03,
|
||||||
|
0x00, 0x03, 0x02, 0x02, 0x02, 0x01,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x03, 0x02, 0x02, 0x02, 0x01, 0x00,
|
||||||
|
0x03, 0x02, 0x02, 0x02, 0x02, 0x00,
|
||||||
|
0x03, 0x02, 0x02, 0x02, 0x03, 0x00,
|
||||||
|
0x03, 0x02, 0x02, 0x02, 0x02, 0x00,
|
||||||
|
0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
|
||||||
|
0x03, 0x02, 0x02, 0x03, 0x00, 0x03,
|
||||||
|
0x02, 0x02, 0x03, 0x00, 0x00, 0x30,
|
||||||
|
0x2B, 0x7C, 0x20, 0x40, 0x03, 0x7C,
|
||||||
|
0x44, 0x7C, 0x03, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
};
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# Latinpad
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
macro 2 rotary encoder pad
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [latincompass](https://github.com/latincompass)
|
||||||
|
* Hardware Availability: https://github.com/latincompass/2-RotaryEncoder-pad
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make latinpad: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).
|
||||||
Loaded 100 of 216 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user