Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0790a722d | ||
|
|
57815dbc3b | ||
|
|
5d76b5f655 | ||
|
|
84065e1d74 | ||
|
|
90bb7db48e | ||
|
|
e54aadf24a | ||
|
|
8416a94ad2 | ||
|
|
ecc7355321 | ||
|
|
baf6715a7e | ||
|
|
f7c8e7ff70 | ||
|
|
6776703d8f | ||
|
|
f7bdc54c69 | ||
|
|
d2115f7d1c | ||
|
|
e6b9980bd4 | ||
|
|
46606e1ea5 | ||
|
|
0a5125a535 | ||
|
|
eb91c96288 |
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
name: Bug report
|
name: Bug report
|
||||||
about: Create a report to help us improve QMK Firmware.
|
about: Create a report to help us improve QMK Firmware.
|
||||||
title: "[Bug] "
|
title: "[Bug] "
|
||||||
labels: bug, help wanted, discussion
|
labels: bug, help wanted
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
name: Feature request
|
name: Feature request
|
||||||
about: Suggest a new feature or changes to existing features.
|
about: Suggest a new feature or changes to existing features.
|
||||||
title: "[Feature Request] "
|
title: "[Feature Request] "
|
||||||
labels: enhancement, help wanted, discussion
|
labels: enhancement, help wanted
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
name: Other issues
|
name: Other issues
|
||||||
about: Anything else that doesn't fall into the above categories.
|
about: Anything else that doesn't fall into the above categories.
|
||||||
title: ''
|
title: ''
|
||||||
labels: help wanted, question, discussion
|
labels: help wanted, question
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
+8
-2
@@ -17,6 +17,9 @@ pulls:
|
|||||||
This pull request has been automatically marked as stale because it has not had
|
This pull request has been automatically marked as stale because it has not had
|
||||||
activity in the last 45 days. It will be closed in 30 days if no further activity occurs.
|
activity in the last 45 days. It will be closed in 30 days if no further activity occurs.
|
||||||
Please feel free to give a status update now, or re-open when it's ready.
|
Please feel free to give a status update now, or re-open when it's ready.
|
||||||
|
|
||||||
|
For maintainers: Please label with `awaiting review`, `breaking_change`, `in progress, or `on hold` to prevent
|
||||||
|
the issue from being re-flagged.
|
||||||
# Comment to post when closing a stale Issue or Pull Request.
|
# Comment to post when closing a stale Issue or Pull Request.
|
||||||
closeComment: >
|
closeComment: >
|
||||||
Thank you for your contribution!
|
Thank you for your contribution!
|
||||||
@@ -33,14 +36,17 @@ pulls:
|
|||||||
|
|
||||||
# Issue specific configuration
|
# Issue specific configuration
|
||||||
issues:
|
issues:
|
||||||
staleLabel: solved
|
staleLabel: stale
|
||||||
limitPerRun: 10
|
limitPerRun: 10
|
||||||
daysUntilStale: 90
|
daysUntilStale: 90
|
||||||
daysUntilClose: 30
|
daysUntilClose: 30
|
||||||
markComment: >
|
markComment: >
|
||||||
This issue has been automatically marked as resolved because it has not had activity in the
|
This issue has been automatically marked as stale because it has not had activity in the
|
||||||
last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity
|
last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity
|
||||||
occurs.
|
occurs.
|
||||||
|
|
||||||
|
For maintainers: Please label with `bug`, `in progress`, `on hold`, discussion` or `to do` to prevent
|
||||||
|
the issue from being re-flagged.
|
||||||
closeComment: >
|
closeComment: >
|
||||||
This issue has been automatically closed because it has not had activity in the last 30 days.
|
This issue has been automatically closed because it has not had activity in the last 30 days.
|
||||||
If this issue is still valid, re-open the issue and let us know.
|
If this issue is still valid, re-open the issue and let us know.
|
||||||
|
|||||||
@@ -272,12 +272,14 @@ define PARSE_RULE
|
|||||||
# If the rule starts with all, then continue the parsing from
|
# If the rule starts with all, then continue the parsing from
|
||||||
# PARSE_ALL_KEYBOARDS
|
# PARSE_ALL_KEYBOARDS
|
||||||
ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
|
ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
|
||||||
|
KEYBOARD_RULE=all
|
||||||
$$(eval $$(call PARSE_ALL_KEYBOARDS))
|
$$(eval $$(call PARSE_ALL_KEYBOARDS))
|
||||||
else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
|
else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
|
||||||
$$(eval $$(call PARSE_TEST))
|
$$(eval $$(call PARSE_TEST))
|
||||||
# If the rule starts with the name of a known keyboard, then continue
|
# If the rule starts with the name of a known keyboard, then continue
|
||||||
# the parsing from PARSE_KEYBOARD
|
# the parsing from PARSE_KEYBOARD
|
||||||
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
||||||
|
KEYBOARD_RULE=$$(MATCHED_ITEM)
|
||||||
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
||||||
# Otherwise use the KEYBOARD variable, which is determined either by
|
# Otherwise use the KEYBOARD variable, which is determined either by
|
||||||
# the current directory you run make from, or passed in as an argument
|
# the current directory you run make from, or passed in as an argument
|
||||||
@@ -380,6 +382,9 @@ define PARSE_KEYBOARD
|
|||||||
# Otherwise try to match the keymap from the current folder, or arguments to the make command
|
# Otherwise try to match the keymap from the current folder, or arguments to the make command
|
||||||
else ifneq ($$(KEYMAP),)
|
else ifneq ($$(KEYMAP),)
|
||||||
$$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
|
$$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
|
||||||
|
# Otherwise if we are running make all:<user> just skip
|
||||||
|
else ifeq ($$(KEYBOARD_RULE),all)
|
||||||
|
# $$(info Skipping: No user keymap for $$(CURRENT_KB))
|
||||||
# Otherwise, make all keymaps, again this is consistent with how it works without
|
# Otherwise, make all keymaps, again this is consistent with how it works without
|
||||||
# any arguments
|
# any arguments
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ else:
|
|||||||
os.environ['QMK_VERSION'] = 'nogit-' + strftime('%Y-%m-%d-%H:%M:%S') + '-dirty'
|
os.environ['QMK_VERSION'] = 'nogit-' + strftime('%Y-%m-%d-%H:%M:%S') + '-dirty'
|
||||||
|
|
||||||
# Setup the CLI
|
# Setup the CLI
|
||||||
import milc
|
import milc # noqa
|
||||||
|
|
||||||
milc.EMOJI_LOGLEVELS['INFO'] = '{fg_blue}Ψ{style_reset_all}'
|
milc.EMOJI_LOGLEVELS['INFO'] = '{fg_blue}Ψ{style_reset_all}'
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ def main():
|
|||||||
os.chdir(qmk_dir)
|
os.chdir(qmk_dir)
|
||||||
|
|
||||||
# Import the subcommands
|
# Import the subcommands
|
||||||
import qmk.cli
|
import qmk.cli # noqa
|
||||||
|
|
||||||
# Execute
|
# Execute
|
||||||
return_code = milc.cli()
|
return_code = milc.cli()
|
||||||
|
|||||||
@@ -173,3 +173,35 @@ You will only be able to access these arguments using `cli.args`. For example:
|
|||||||
```
|
```
|
||||||
cli.log.info('Reading from %s and writing to %s', cli.args.filename, cli.args.output)
|
cli.log.info('Reading from %s and writing to %s', cli.args.filename, cli.args.output)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Testing, and Linting, and Formatting (oh my!)
|
||||||
|
|
||||||
|
We use nose2, flake8, and yapf to test, lint, and format code. You can use the `pytest` and `pyformat` subcommands to run these tests:
|
||||||
|
|
||||||
|
### Testing and Linting
|
||||||
|
|
||||||
|
qmk pytest
|
||||||
|
|
||||||
|
### Formatting
|
||||||
|
|
||||||
|
qmk pyformat
|
||||||
|
|
||||||
|
## Formatting Details
|
||||||
|
|
||||||
|
We use [yapf](https://github.com/google/yapf) to automatically format code. Our configuration is in the `[yapf]` section of `setup.cfg`.
|
||||||
|
|
||||||
|
?> Tip- Many editors can use yapf as a plugin to automatically format code as you type.
|
||||||
|
|
||||||
|
## Testing Details
|
||||||
|
|
||||||
|
Our tests can be found in `lib/python/qmk/tests/`. You will find both unit and integration tests in this directory. We hope you will write both unit and integration tests for your code, but if you do not please favor integration tests.
|
||||||
|
|
||||||
|
If your PR does not include a comprehensive set of tests please add comments like this to your code so that other people know where they can help:
|
||||||
|
|
||||||
|
# TODO(unassigned/<yourGithubUsername>): Write <unit|integration> tests
|
||||||
|
|
||||||
|
We use [nose2](https://nose2.readthedocs.io/en/latest/getting_started.html) to run our tests. You can refer to the nose2 documentation for more details on what you can do in your test functions.
|
||||||
|
|
||||||
|
## Linting Details
|
||||||
|
|
||||||
|
We use flake8 to lint our code. Your code should pass flake8 before you open a PR. This will be checked when you run `qmk pytest` and by CI when you submit a PR.
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
* [完全な初心者のガイド](ja/newbs.md)
|
||||||
|
* [はじめに](ja/newbs_getting_started.md)
|
||||||
|
* [初めてのファームウェアの構築](ja/newbs_building_firmware.md)
|
||||||
|
* [ファームウェアのフラッシュ](ja/newbs_flashing.md)
|
||||||
|
* [テストとデバッグ](ja/newbs_testing_debugging.md)
|
||||||
|
* [Gitのベストプラクティス](ja/newbs_best_practices.md)
|
||||||
|
* [学習リソース](ja/newbs_learn_more_resources.md)
|
||||||
|
|
||||||
|
* [QMKの基本](ja/README.md)
|
||||||
|
* [QMKの導入](ja/getting_started_introduction.md)
|
||||||
|
* [QMK CLI](ja/cli.md)
|
||||||
|
* [QMK CLI 設定](ja/cli_configuration.md)
|
||||||
|
* [QMKへの貢献](ja/contributing.md)
|
||||||
|
* [Githubの使い方](ja/getting_started_github.md)
|
||||||
|
* [ヘルプ](ja/getting_started_getting_help.md)
|
||||||
|
|
||||||
|
* [破壊的な変更](ja/breaking_changes.md)
|
||||||
|
* [2019年8月30日](ja/ChangeLog/20190830.md)
|
||||||
|
|
||||||
|
* [FAQ](ja/faq.md)
|
||||||
|
* [一般的なFAQ](ja/faq_general.md)
|
||||||
|
* [QMKのビルド/コンパイル](ja/faq_build.md)
|
||||||
|
* [QMKのデバッグ/トラブルシューティング](ja/faq_debug.md)
|
||||||
|
* [キーマップ](ja/faq_keymap.md)
|
||||||
|
* [Zadigを使ったドライバのインストール](ja/driver_installation_zadig.md)
|
||||||
|
|
||||||
|
* 詳細なガイド
|
||||||
|
* [ビルドツールのインストール](ja/getting_started_build_tools.md)
|
||||||
|
* [Vagrantのガイド](ja/getting_started_vagrant.md)
|
||||||
|
* [ビルド/コンパイルの説明](ja/getting_started_make_guide.md)
|
||||||
|
* [ファームウェアのフラッシュ](ja/flashing.md)
|
||||||
|
* [機能のカスタマイズ](ja/custom_quantum_functions.md)
|
||||||
|
* [キーマップの概要](ja/keymap.md)
|
||||||
|
|
||||||
|
* [ハードウェア](ja/hardware.md)
|
||||||
|
* [AVR プロセッサ](ja/hardware_avr.md)
|
||||||
|
* [ドライバ](ja/hardware_drivers.md)
|
||||||
|
|
||||||
|
* リファレンス
|
||||||
|
* [キーボード ガイドライン](ja/hardware_keyboard_guidelines.md)
|
||||||
|
* [設定オプション](ja/config_options.md)
|
||||||
|
* [キーコード](ja/keycodes.md)
|
||||||
|
* [コーディング規約 - C](ja/coding_conventions_c.md)
|
||||||
|
* [コーディング規約 - Python](ja/coding_conventions_python.md)
|
||||||
|
* [ドキュメント ベストプラクティス](ja/documentation_best_practices.md)
|
||||||
|
* [ドキュメント テンプレート](ja/documentation_templates.md)
|
||||||
|
* [用語](ja/reference_glossary.md)
|
||||||
|
* [ユニットテスト](ja/unit_testing.md)
|
||||||
|
* [便利な関数](ja/ref_functions.md)
|
||||||
|
* [Configurator サポート](ja/reference_configurator_support.md)
|
||||||
|
* [info.json 形式](ja/reference_info_json.md)
|
||||||
|
* [Python CLI 開発](ja/cli_development.md)
|
||||||
|
|
||||||
|
* [機能](ja/features.md)
|
||||||
|
* [基本的なキーコード](ja/keycodes_basic.md)
|
||||||
|
* [US ANSI シフトキー](ja/keycodes_us_ansi_shifted.md)
|
||||||
|
* [Quantum キーコード](ja/quantum_keycodes.md)
|
||||||
|
* [Advanced キーコード](ja/feature_advanced_keycodes.md)
|
||||||
|
* [オーディオ](ja/feature_audio.md)
|
||||||
|
* [自動シフト](ja/feature_auto_shift.md)
|
||||||
|
* [バックライト](ja/feature_backlight.md)
|
||||||
|
* [ブルートゥース](ja/feature_bluetooth.md)
|
||||||
|
* [ブートマジック](ja/feature_bootmagic.md)
|
||||||
|
* [コンボ](ja/feature_combo.md)
|
||||||
|
* [コマンド](ja/feature_command.md)
|
||||||
|
* [Debounce API](ja/feature_debounce_type.md)
|
||||||
|
* [DIP スイッチ](ja/feature_dip_switch.md)
|
||||||
|
* [動的マクロ](ja/feature_dynamic_macros.md)
|
||||||
|
* [エンコーダ](ja/feature_encoders.md)
|
||||||
|
* [グレイブ エスケープ](ja/feature_grave_esc.md)
|
||||||
|
* [触覚フィードバック](ja/feature_haptic_feedback.md)
|
||||||
|
* [HD44780 LCD コントローラ](ja/feature_hd44780.md)
|
||||||
|
* [キーロック](ja/feature_key_lock.md)
|
||||||
|
* [レイアウト](ja/feature_layouts.md)
|
||||||
|
* [リーダー キー](ja/feature_leader_key.md)
|
||||||
|
* [LED マトリクス](ja/feature_led_matrix.md)
|
||||||
|
* [マクロ](ja/feature_macros.md)
|
||||||
|
* [マウスキー](ja/feature_mouse_keys.md)
|
||||||
|
* [OLED ドライバ](ja/feature_oled_driver.md)
|
||||||
|
* [One Shot Keys](ja/feature_advanced_keycodes.md#one-shot-keys)
|
||||||
|
* [ポインティング デバイス](ja/feature_pointing_device.md)
|
||||||
|
* [PS/2 マウス](ja/feature_ps2_mouse.md)
|
||||||
|
* [RGB ライト](ja/feature_rgblight.md)
|
||||||
|
* [RGB マトリクス](ja/feature_rgb_matrix.md)
|
||||||
|
* [Space Cadet](ja/feature_space_cadet.md)
|
||||||
|
* [分割キーボード](ja/feature_split_keyboard.md)
|
||||||
|
* [Stenography](ja/feature_stenography.md)
|
||||||
|
* [Swap Hands](ja/feature_swap_hands.md)
|
||||||
|
* [タップ ダンス](ja/feature_tap_dance.md)
|
||||||
|
* [Terminal](ja/feature_terminal.md)
|
||||||
|
* [感熱式プリンタ](ja/feature_thermal_printer.md)
|
||||||
|
* [ユニコード](ja/feature_unicode.md)
|
||||||
|
* [Userspace](ja/feature_userspace.md)
|
||||||
|
* [Velocikey](ja/feature_velocikey.md)
|
||||||
|
|
||||||
|
* メーカーおよびモッダーのために
|
||||||
|
* [Hand Wiring Guide](ja/hand_wire.md)
|
||||||
|
* [ISP Flashing Guide](ja/isp_flashing_guide.md)
|
||||||
|
* [ARM デバッグ ガイド](ja/arm_debugging.md)
|
||||||
|
* [I2C ドライバ](ja/i2c_driver.md)
|
||||||
|
* [GPIO コントロール](ja/internals_gpio_control.md)
|
||||||
|
* [Proton C 規約](ja/proton_c_conversion.md)
|
||||||
|
|
||||||
|
* より深く知るために
|
||||||
|
* [キーボードがどのように動作するか](ja/how_keyboards_work.md)
|
||||||
|
* [QMKの理解](ja/understanding_qmk.md)
|
||||||
|
|
||||||
|
* 他の話題
|
||||||
|
* [EclipseでQMKを使用](ja/other_eclipse.md)
|
||||||
|
* [VSCodeでQMKを使用](ja/other_vscode.md)
|
||||||
|
* [サポート](ja/support.md)
|
||||||
|
* [翻訳を追加する方法](ja/translating.md)
|
||||||
|
|
||||||
|
* QMK の内部詳細(作成中)
|
||||||
|
* [定義](ja/internals_defines.md)
|
||||||
|
* [Input Callback Reg](ja/internals_input_callback_reg.md)
|
||||||
|
* [Midi ドライバ](ja/internals_midi_device.md)
|
||||||
|
* [Midi デバイスのセットアップ手順](ja/internals_midi_device_setup_process.md)
|
||||||
|
* [Midi ユーティリティ](ja/internals_midi_util.md)
|
||||||
|
* [Send Functions](ja/internals_send_functions.md)
|
||||||
|
* [Sysex Tools](ja/internals_sysex_tools.md)
|
||||||
+8
-8
@@ -19,18 +19,18 @@ QMK は[多くの趣味のキーボード](http://qmk.fm/keyboards/)をサポー
|
|||||||
|
|
||||||
このガイドには7つの主要なセクションがあります。
|
このガイドには7つの主要なセクションがあります。
|
||||||
|
|
||||||
* [はじめに](newbs_getting_started.md)
|
* [はじめに](ja/newbs_getting_started.md)
|
||||||
* [コマンドラインを使用して初めてのファームウェアを構築する](newbs_building_firmware.md)
|
* [コマンドラインを使用して初めてのファームウェアを構築する](ja/newbs_building_firmware.md)
|
||||||
* [オンライン GUI を使用して初めてのファームウェアを構築する](newbs_building_firmware_configurator.md)
|
* [オンライン GUI を使用して初めてのファームウェアを構築する](ja/newbs_building_firmware_configurator.md)
|
||||||
* [ファームウェアを書きこむ](newbs_flashing.md)
|
* [ファームウェアを書きこむ](ja/newbs_flashing.md)
|
||||||
* [テストとデバッグ](newbs_testing_debugging.md)
|
* [テストとデバッグ](ja/newbs_testing_debugging.md)
|
||||||
* [QMK における Git 運用作法](newbs_best_practices.md)
|
* [QMK における Git 運用作法](ja/newbs_best_practices.md)
|
||||||
* [さらに学ぶための学習リソース](newbs_learn_more_resources.md)
|
* [さらに学ぶための学習リソース](ja/newbs_learn_more_resources.md)
|
||||||
|
|
||||||
このガイドは、これまでソフトウェアをコンパイルしたことがない人を支援することに特化しています。
|
このガイドは、これまでソフトウェアをコンパイルしたことがない人を支援することに特化しています。
|
||||||
その観点から選択と推奨を行います。
|
その観点から選択と推奨を行います。
|
||||||
これらの手順の多くには代替方法があり、これらの代替方法のほとんどをサポートしています。
|
これらの手順の多くには代替方法があり、これらの代替方法のほとんどをサポートしています。
|
||||||
タスクを達成する方法について疑問がある場合は、[案内を求めることができます](getting_started_getting_help.md)。
|
タスクを達成する方法について疑問がある場合は、[案内を求めることができます](ja/getting_started_getting_help.md)。
|
||||||
|
|
||||||
## 追加のリソース(英語)
|
## 追加のリソース(英語)
|
||||||
|
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ QMK に貢献するプロセスを順を追って説明し、この作業を簡
|
|||||||
<!-- 2. You've [set up your build environment](newbs_getting_started.md?id=environment-setup). -->
|
<!-- 2. You've [set up your build environment](newbs_getting_started.md?id=environment-setup). -->
|
||||||
<!-- #7231:da7d49246: 2. You've set up both [your build environment](newbs_getting_started.md?id=set-up-your-environment) and [QMK](newbs_getting_started.md?id=set-up-qmk). -->
|
<!-- #7231:da7d49246: 2. You've set up both [your build environment](newbs_getting_started.md?id=set-up-your-environment) and [QMK](newbs_getting_started.md?id=set-up-qmk). -->
|
||||||
|
|
||||||
1. あなたは GitHub アカウントがあり、アカウントに [qmk_firmware リポジトリをフォーク](getting_started_github.md) している。
|
1. あなたは GitHub アカウントがあり、アカウントに [qmk_firmware リポジトリをフォーク](ja/getting_started_github.md) している。
|
||||||
2. あなたは、[環境構築](newbs_getting_started.md#環境構築) と [QMK の設定](newbs_getting_started.md#qmk-の設定) を両方とも完了している。
|
2. あなたは、[環境構築](ja/newbs_getting_started.md#set-up-your-environment) と [QMK の設定](ja/newbs_getting_started.md#set-up-qmk) を両方とも完了している。
|
||||||
|
|
||||||
<!-- ## Your fork's master: Update Often, Commit Never -->
|
<!-- ## Your fork's master: Update Often, Commit Never -->
|
||||||
## あなたのフォークの master ブランチ: 更新は頻繁に、コミットはしないこと
|
## あなたのフォークの master ブランチ: 更新は頻繁に、コミットはしないこと
|
||||||
|
|||||||
@@ -67,9 +67,9 @@ macOS または Windows を使用している場合は、キーマップフォ
|
|||||||
あるレイヤー全体が必要ない場合はレイヤーを削除することもでき、必要があれば、合計 32 個までレイヤーを追加することもできます。
|
あるレイヤー全体が必要ない場合はレイヤーを削除することもでき、必要があれば、合計 32 個までレイヤーを追加することもできます。
|
||||||
ここで定義できる内容については、次のドキュメントを参照してください。
|
ここで定義できる内容については、次のドキュメントを参照してください。
|
||||||
|
|
||||||
* [キーコード](keycodes.md)
|
* [キーコード](ja/keycodes.md)
|
||||||
* [機能](features.md)
|
* [機能](ja/features.md)
|
||||||
* [FAQ](faq.md)
|
* [FAQ](ja/faq.md)
|
||||||
|
|
||||||
?> キーマップがどのように機能するかを感じながら、各変更を小さくしてください。大きな変更は、発生する問題のデバッグを困難にします。
|
?> キーマップがどのように機能するかを感じながら、各変更を小さくしてください。大きな変更は、発生する問題のデバッグを困難にします。
|
||||||
|
|
||||||
@@ -96,4 +96,4 @@ Checking file size of planck_rev5_xyverz.hex
|
|||||||
|
|
||||||
## ファームウェアを書きこむ
|
## ファームウェアを書きこむ
|
||||||
|
|
||||||
[「ファームウェアを書きこむ」](newbs_flashing.md) に移動して、キーボードに新しいファームウェアを書き込む方法を学習します。
|
[「ファームウェアを書きこむ」](ja/newbs_flashing.md) に移動して、キーボードに新しいファームウェアを書き込む方法を学習します。
|
||||||
@@ -83,7 +83,7 @@ QMK Configurator は Chrome/Firefox で最適に動作します。
|
|||||||
|
|
||||||
## キーボードに書き込む(フラッシュする)
|
## キーボードに書き込む(フラッシュする)
|
||||||
|
|
||||||
[ファームウェアを書きこむ](newbs_flashing.md) を参照してください。
|
[ファームウェアを書きこむ](ja/newbs_flashing.md) を参照してください。
|
||||||
|
|
||||||
## トラブルシューティング
|
## トラブルシューティング
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
キーボードに書き込む最も簡単な方法は [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) を使うことです。
|
キーボードに書き込む最も簡単な方法は [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) を使うことです。
|
||||||
|
|
||||||
ただし、QMK Toolbox は、現在は Windows と macOS でしか使えません。
|
ただし、QMK Toolbox は、現在は Windows と macOS でしか使えません。
|
||||||
Linuxを使用している場合(および、コマンドラインでファームウェアを書き込みたい場合)は、下の方で概説する[方法](newbs_flashing.md#コマンドラインでファームウェアを書き込む)で行なう必要があります。
|
Linuxを使用している場合(および、コマンドラインでファームウェアを書き込みたい場合)は、下の方で概説する[方法](ja/newbs_flashing.md#flash-your-keyboard-from-the-command-line)で行なう必要があります。
|
||||||
|
|
||||||
### QMK Toolbox にファイルをロードする
|
### QMK Toolbox にファイルをロードする
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ QMK Toolbox の `Flash` ボタンをクリックします。
|
|||||||
*** Clueboard - Clueboard 66% HotSwap connected -- 0xC1ED:0x2390
|
*** Clueboard - Clueboard 66% HotSwap connected -- 0xC1ED:0x2390
|
||||||
```
|
```
|
||||||
|
|
||||||
## コマンドラインでファームウェアを書き込む
|
## コマンドラインでファームウェアを書き込む :id=flash-your-keyboard-from-the-command-line
|
||||||
|
|
||||||
これは、以前のものと比較して非常に単純になりました。
|
これは、以前のものと比較して非常に単純になりました。
|
||||||
ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
|
ファームウェアをコンパイルして書き込む準備ができたら、ターミナルウィンドウを開いてビルドコマンドを実行します。
|
||||||
@@ -123,7 +123,7 @@ QMK Toolbox の `Flash` ボタンをクリックします。
|
|||||||
ブートローダは主に 5 種類のものが使われています。
|
ブートローダは主に 5 種類のものが使われています。
|
||||||
Pro Micro とそのクローンは Caterina を、Teensy は HalfKay を、OLKBの AVR ボードは QMK-DFU を、その他の ATmega32U4 ボードは DFU を、そして多くの ARM ボードは ARM DFU を使います。
|
Pro Micro とそのクローンは Caterina を、Teensy は HalfKay を、OLKBの AVR ボードは QMK-DFU を、その他の ATmega32U4 ボードは DFU を、そして多くの ARM ボードは ARM DFU を使います。
|
||||||
|
|
||||||
より詳しいブートローダの情報は、[Flashing Instructions and Bootloader Information](flashing.md) にあります。
|
より詳しいブートローダの情報は、[Flashing Instructions and Bootloader Information](ja/flashing.md) にあります。
|
||||||
|
|
||||||
使用しているブートローダがわかっているならば、ファームウェアをコンパイルするときに、実は `make` コマンドにブートローダを指定するテキストを追加して、書き込みプロセスを自動化できます。
|
使用しているブートローダがわかっているならば、ファームウェアをコンパイルするときに、実は `make` コマンドにブートローダを指定するテキストを追加して、書き込みプロセスを自動化できます。
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ Checking file size of planck_rev5_xyverz.hex
|
|||||||
>>> dfu-programmer atmega32u4 reset
|
>>> dfu-programmer atmega32u4 reset
|
||||||
```
|
```
|
||||||
|
|
||||||
?> `dfu-programmer:no device present` など、これに関する問題がある場合は、[よくある質問](faq_build.md) を参照してください。
|
?> `dfu-programmer:no device present` など、これに関する問題がある場合は、[よくある質問](ja/faq_build.md) を参照してください。
|
||||||
|
|
||||||
#### DFU コマンド
|
#### DFU コマンド
|
||||||
|
|
||||||
@@ -397,4 +397,4 @@ Uploading 22016 (0x5600) bytes starting at 0 (0x0)
|
|||||||
おめでとうございます! カスタムファームウェアがキーボードにプログラムされました!
|
おめでとうございます! カスタムファームウェアがキーボードにプログラムされました!
|
||||||
|
|
||||||
使ってみて、すべてがあなたの望むように動作するかどうか確認してください。
|
使ってみて、すべてがあなたの望むように動作するかどうか確認してください。
|
||||||
この初心者ガイドを完全なものにするために [テストとデバッグ](newbs_testing_debugging.md) を書いたので、カスタム機能のトラブルシューティング方法については、こちらをご覧ください。
|
この初心者ガイドを完全なものにするために [テストとデバッグ](ja/newbs_testing_debugging.md) を書いたので、カスタム機能のトラブルシューティング方法については、こちらをご覧ください。
|
||||||
@@ -20,7 +20,7 @@ QMK は、簡単なことは簡単に、そして、難しいことを可能な
|
|||||||
ファームウェアをコンパイルするキーボードの数に関わらず、この作業を一度だけ実行する必要があります。
|
ファームウェアをコンパイルするキーボードの数に関わらず、この作業を一度だけ実行する必要があります。
|
||||||
|
|
||||||
もし、GUI で作業をしたい場合、オンラインで作業できる [QMK Configurator](https://config.qmk.fm) を使ってください。
|
もし、GUI で作業をしたい場合、オンラインで作業できる [QMK Configurator](https://config.qmk.fm) を使ってください。
|
||||||
使い方は [Building Your First Firmware using the online GUI](newbs_building_firmware_configurator.md) を参照してください。
|
使い方は [オンライン GUI を使用して初めてのファームウェアを構築する](ja/newbs_building_firmware_configurator.md) を参照してください。
|
||||||
|
|
||||||
## ソフトウェアのダウンロード
|
## ソフトウェアのダウンロード
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ QMK Toolbox は、Windows と macOS で使える GUI を備えたプログラム
|
|||||||
* Windows 版: `qmk_toolbox.exe` (portable) または `qmk_toolbox_install.exe` (installer)
|
* Windows 版: `qmk_toolbox.exe` (portable) または `qmk_toolbox_install.exe` (installer)
|
||||||
* macOS 版: `QMK.Toolbox.app.zip` (portable) または `QMK.Toolbox.pkg` (installer)
|
* macOS 版: `QMK.Toolbox.app.zip` (portable) または `QMK.Toolbox.pkg` (installer)
|
||||||
|
|
||||||
## 環境構築
|
## 環境構築 :id=set-up-your-environment
|
||||||
|
|
||||||
私たちは、QMK を可能な限り簡単に構築できるように努力しています。
|
私たちは、QMK を可能な限り簡単に構築できるように努力しています。
|
||||||
Linux か Unix 環境を用意するだけで、QMK に残りをインストールさせることができます。
|
Linux か Unix 環境を用意するだけで、QMK に残りをインストールさせることができます。
|
||||||
@@ -77,9 +77,9 @@ Git のインストールが必要です。既にインストールされてい
|
|||||||
* Fedora / Red Hat / CentOS: `yum install git`
|
* Fedora / Red Hat / CentOS: `yum install git`
|
||||||
* Arch: `pacman -S git`
|
* Arch: `pacman -S git`
|
||||||
|
|
||||||
?> 全てのプラットフォームにおいて、Docker を使うことも可能です。[詳細はこちらをクリックしてください](getting_started_build_tools.md#docker)。
|
?> 全てのプラットフォームにおいて、Docker を使うことも可能です。[詳細はこちらをクリックしてください](ja/getting_started_build_tools.md#docker)。
|
||||||
|
|
||||||
## QMK の設定
|
## QMK の設定 :id=set-up-qmk
|
||||||
|
|
||||||
Linux/Unix 環境が準備できたら QMK のダウンロードの準備は完了です。Git を使用して QMK のリポジトリを「クローン」することで QMK をダウンロードします。ターミナルか MSYS2 MinGW ウィンドウを開いて、このガイドの残りの部分では開いたままにします。そのウィンドウ内で、次の2つのコマンドを実行します。
|
Linux/Unix 環境が準備できたら QMK のダウンロードの準備は完了です。Git を使用して QMK のリポジトリを「クローン」することで QMK をダウンロードします。ターミナルか MSYS2 MinGW ウィンドウを開いて、このガイドの残りの部分では開いたままにします。そのウィンドウ内で、次の2つのコマンドを実行します。
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ git clone --recurse-submodules https://github.com/qmk/qmk_firmware.git
|
|||||||
cd qmk_firmware
|
cd qmk_firmware
|
||||||
```
|
```
|
||||||
|
|
||||||
?> 既に [GitHub の使いかた](getting_started_github.md)を知っているなら、clone ではなく fork を勧めます。この一文の意味が分からない場合、このメッセージは無視してかまいません。
|
?> 既に [GitHub の使いかた](ja/getting_started_github.md)を知っているなら、clone ではなく fork を勧めます。この一文の意味が分からない場合、このメッセージは無視してかまいません。
|
||||||
|
|
||||||
QMK には、必要な残りの設定を手助けするスクリプトが含まれています。
|
QMK には、必要な残りの設定を手助けするスクリプトが含まれています。
|
||||||
セットアップ作業を完了させるため、次のコマンドを実行します。
|
セットアップ作業を完了させるため、次のコマンドを実行します。
|
||||||
@@ -119,4 +119,4 @@ Checking file size of clueboard_66_rev3_default.hex
|
|||||||
# キーマップの作成
|
# キーマップの作成
|
||||||
|
|
||||||
これであなた専用のキーマップを作成する準備ができました!
|
これであなた専用のキーマップを作成する準備ができました!
|
||||||
次は [Building Your First Firmware](newbs_building_firmware.md) で専用のキーマップを作成します。
|
次は [Building Your First Firmware](ja/newbs_building_firmware.md) で専用のキーマップを作成します。
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
* [Great General Tutorial](https://www.codecademy.com/learn/learn-git)
|
* [Great General Tutorial](https://www.codecademy.com/learn/learn-git)
|
||||||
* [Git Game To Learn From Examples](https://learngitbranching.js.org/)
|
* [Git Game To Learn From Examples](https://learngitbranching.js.org/)
|
||||||
* [Git Resources to Learn More About Github](getting_started_github.md)
|
* [Git Resources to Learn More About Github](ja/getting_started_github.md)
|
||||||
* [Git Resources Aimed Specifically toward QMK](contributing.md)
|
* [Git Resources Aimed Specifically toward QMK](ja/contributing.md)
|
||||||
|
|
||||||
### 日本語
|
### 日本語
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
## デバッグ
|
## デバッグ
|
||||||
|
|
||||||
`rules.mk`へ`CONSOLE_ENABLE = yes`の設定をするとキーボードはデバッグ情報を出力します。デフォルトの出力は非常に限られたものですが、デバッグモードをオンにすることでデバッグ情報の量を増やすことが出来ます。キーマップの`DEBUG`キーコードを使用するか、デバッグモードを有効にする [Command](feature_command.md) 機能を使用するか、以下のコードをキーマップに追加します。
|
`rules.mk`へ`CONSOLE_ENABLE = yes`の設定をするとキーボードはデバッグ情報を出力します。デフォルトの出力は非常に限られたものですが、デバッグモードをオンにすることでデバッグ情報の量を増やすことが出来ます。キーマップの`DEBUG`キーコードを使用するか、デバッグモードを有効にする [Command](ja/feature_command.md) 機能を使用するか、以下のコードをキーマップに追加します。
|
||||||
|
|
||||||
```c
|
```c
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
@@ -46,7 +46,7 @@ void keyboard_post_init_user(void) {
|
|||||||
|
|
||||||
## 独自のデバッグメッセージを送信する
|
## 独自のデバッグメッセージを送信する
|
||||||
|
|
||||||
[custom code](custom_quantum_functions.md)内からデバッグメッセージを出力すると便利な場合があります。それはとても簡単です。ファイルの先頭に`print.h`のインクルードを追加します:
|
[custom code](ja/custom_quantum_functions.md)内からデバッグメッセージを出力すると便利な場合があります。それはとても簡単です。ファイルの先頭に`print.h`のインクルードを追加します:
|
||||||
|
|
||||||
#include <print.h>
|
#include <print.h>
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ void keyboard_post_init_user(void) {
|
|||||||
|
|
||||||
## デバッグの例
|
## デバッグの例
|
||||||
|
|
||||||
以下は現実世界での実際のデバッグ手法の例を集めたものです。追加情報は[Debugging/Troubleshooting QMK](faq_debug.md)を参照してください。
|
以下は現実世界での実際のデバッグ手法の例を集めたものです。追加情報は[Debugging/Troubleshooting QMK](ja/faq_debug.md)を参照してください。
|
||||||
|
|
||||||
### マトリックス上のどの場所でキー押下が起こったか?
|
### マトリックス上のどの場所でキー押下が起こったか?
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ This document aims to instruct novices in the best ways to have a smooth experie
|
|||||||
This document assumes a few things:
|
This document assumes a few things:
|
||||||
|
|
||||||
1. You have a GitHub account, and have [forked the qmk_firmware repository](getting_started_github.md) to your account.
|
1. You have a GitHub account, and have [forked the qmk_firmware repository](getting_started_github.md) to your account.
|
||||||
2. You've [set up your build environment](newbs_getting_started.md?id=environment-setup).
|
2. You've [set up your build environment](newbs_getting_started.md#set-up-your-environment).
|
||||||
|
|
||||||
|
|
||||||
## Your fork's master: Update Often, Commit Never
|
## Your fork's master: Update Often, Commit Never
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
#include "analog.c"
|
#include "analog.c"
|
||||||
#include "pointing_device.h"
|
#include "pointing_device.h"
|
||||||
#include "pincontrol.h"
|
#include "pincontrol.h"
|
||||||
|
|
||||||
|
|
||||||
#define KC_X0 LT(_FN, KC_ESC)
|
#define KC_X0 LT(_FN, KC_ESC)
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[_QWERTY] = LAYOUT(
|
[_QWERTY] = LAYOUT(
|
||||||
KC_VOLU, KC_MPLY, KC_MPRV, RESET,
|
KC_VOLU, KC_MPLY, KC_MPRV, RESET,
|
||||||
@@ -14,6 +13,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
),
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
// Joystick
|
// Joystick
|
||||||
// Set Pins
|
// Set Pins
|
||||||
@@ -39,7 +39,7 @@ int16_t xOrigin, yOrigin;
|
|||||||
uint16_t lastCursor = 0;
|
uint16_t lastCursor = 0;
|
||||||
|
|
||||||
int16_t axisCoordinate(uint8_t pin, uint16_t origin) {
|
int16_t axisCoordinate(uint8_t pin, uint16_t origin) {
|
||||||
int8_t direction;
|
int8_t direction;
|
||||||
int16_t distanceFromOrigin;
|
int16_t distanceFromOrigin;
|
||||||
int16_t range;
|
int16_t range;
|
||||||
|
|
||||||
@@ -57,8 +57,8 @@ int16_t axisCoordinate(uint8_t pin, uint16_t origin) {
|
|||||||
direction = 1;
|
direction = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
float percent = (float)distanceFromOrigin / range;
|
float percent = (float)distanceFromOrigin / range;
|
||||||
int16_t coordinate = (int16_t)(percent * 100);
|
int16_t coordinate = (int16_t)(percent * 100);
|
||||||
if (coordinate < 0) {
|
if (coordinate < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (coordinate > 100) {
|
} else if (coordinate > 100) {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
|||||||
Executable → Regular
+7
-2
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
// place overrides here
|
// place overrides here
|
||||||
#undef MATRIX_COL_PINS
|
#undef MATRIX_COL_PINS
|
||||||
#define MATRIX_COL_PINS { A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
|
#define MATRIX_COL_PINS \
|
||||||
|
{ A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
|
||||||
#undef MATRIX_ROW_PINS
|
#undef MATRIX_ROW_PINS
|
||||||
#define MATRIX_ROW_PINS { B7, B1, B0 }
|
#define MATRIX_ROW_PINS \
|
||||||
|
{ B7, B1, B0 }
|
||||||
|
|
||||||
|
#define RGB_DI_PIN B10
|
||||||
|
#define RGBLED_NUM 15
|
||||||
@@ -1,45 +1,97 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include "drashna.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.
|
* The `LAYOUT_base` macro is a template to allow the use of identical
|
||||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
// entirely and just use numbers.
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
#define _QWERTY 0
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
#define _FN1 1
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// Defines for task manager and such
|
// clang-format off
|
||||||
#define CALTDEL LCTL(LALT(KC_DEL))
|
#define LAYOUT_base( \
|
||||||
#define TSKMGR LCTL(LSFT(KC_ESC))
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||||
|
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
|
||||||
|
) \
|
||||||
|
LAYOUT_wrapper( \
|
||||||
|
KC_ESC, K01, K02, K03, K04, K05, KC_NO, K06, K07, K08, K09, K0A, KC_DEL, \
|
||||||
|
ALT_T(KC_TAB), K11, K12, K13, K14, K15, KC_BSPC, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
|
KC_MLSF, CTL_T(K21), K22, K23, K24, LT(_LOWER,K25), KC_SPC, LT(_RAISE,K26), K27, K28, K29, RCTL_T(K2A), KC_ENT \
|
||||||
|
)
|
||||||
|
#define LAYOUT_base_wrapper(...) LAYOUT_base(__VA_ARGS__)
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Qwerty
|
[_QWERTY] = LAYOUT_base_wrapper(
|
||||||
* ,----------------------------------------------------------------------------. ,-------------.
|
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
|
||||||
* | Q | W | E | R | T | Bksp | Y | U | I | O | P | | M1 | M2 |
|
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________
|
||||||
* | A | S | D | F | G | Enter| H | J | K | L | ; | | M3 | M4 |
|
),
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
|
||||||
* | Z | X | C | V | B | FN1 | N | M | , | . | / | | M5 | M6 |
|
|
||||||
* `----------------------------------------------------------------------------' `-------------'
|
|
||||||
*/
|
|
||||||
[_QWERTY] = LAYOUT(
|
|
||||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_1, KC_2,
|
|
||||||
KC_A, KC_S, KC_D, KC_F, KC_G, MT(MOD_LSFT, KC_ENT), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_3, KC_4,
|
|
||||||
KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_FN1, KC_SPC), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_5, KC_6
|
|
||||||
),
|
|
||||||
|
|
||||||
/* FN1
|
[_COLEMAK] = LAYOUT_base_wrapper(
|
||||||
* ,----------------------------------------------------------------------------. ,-------------.
|
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
|
||||||
* | 1 | 2 | 3 | 4 | 5 | Bksp | 6 | 7 | 8 | 9 | 0 | | M1 | M2 |
|
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________
|
||||||
* | 4 | 5 | 6 | + | | Enter| | | | | | | M3 | M4 |
|
),
|
||||||
* |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
|
|
||||||
* | 7 | 8 | 9 | 0 | | FN1 | | | | | | | M5 | M6 |
|
[_DVORAK] = LAYOUT_base_wrapper(
|
||||||
* `----------------------------------------------------------------------------' `-------------'
|
_________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
|
||||||
*/
|
_________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
|
||||||
[_FN1] = LAYOUT(
|
_________________DVORAK_L3_________________, _________________DVORAK_R3_________________
|
||||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_BSPC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_1, KC_2,
|
),
|
||||||
KC_4, KC_5, KC_6, KC_PLUS, _______, KC_ENT, _______, _______, _______, _______, _______, KC_3, KC_4,
|
|
||||||
KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_5, KC_6
|
[_WORKMAN] = LAYOUT_base_wrapper(
|
||||||
),
|
_________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
|
||||||
|
_________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
|
||||||
|
_________________WORKMAN_L3________________, _________________WORKMAN_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_NORMAN] = LAYOUT_base_wrapper(
|
||||||
|
_________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
|
||||||
|
_________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
|
||||||
|
_________________NORMAN_L3_________________, _________________NORMAN_R3_________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_MALTRON] = LAYOUT_base_wrapper(
|
||||||
|
_________________MALTRON_L1________________, _________________MALTRON_R1________________,
|
||||||
|
_________________MALTRON_L2________________, _________________MALTRON_R2________________,
|
||||||
|
_________________MALTRON_L3________________, _________________MALTRON_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_EUCALYN] = LAYOUT_base_wrapper(
|
||||||
|
_________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
|
||||||
|
_________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
|
||||||
|
_________________EUCALYN_L3________________, _________________EUCALYN_R3________________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_CARPLAX] = LAYOUT_base_wrapper(
|
||||||
|
_____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
|
||||||
|
_____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
|
||||||
|
_____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_MODS] = LAYOUT_wrapper(
|
||||||
|
_______, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______,
|
||||||
|
_______, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______,
|
||||||
|
KC_LSFT, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_LOWER] = LAYOUT_wrapper(
|
||||||
|
KC_TILD, _________________LOWER_L1__________________, _______, _________________LOWER_R1__________________, KC_BSPC,
|
||||||
|
KC_DEL, _________________LOWER_L2__________________, _______, _________________LOWER_R2__________________, KC_PIPE,
|
||||||
|
_______, _________________LOWER_L3__________________, _______, _________________LOWER_R3__________________, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_RAISE] = LAYOUT_wrapper(
|
||||||
|
KC_GRV, _________________RAISE_L1__________________, _______, _________________RAISE_R1__________________, KC_BSPC,
|
||||||
|
KC_DEL, _________________RAISE_L2__________________, _______, _________________RAISE_R2__________________, KC_BSLS,
|
||||||
|
_______, _________________RAISE_L3__________________, _______, _________________RAISE_R3__________________, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[_ADJUST] = LAYOUT_wrapper(
|
||||||
|
KC_MAKE, _________________ADJUST_L1_________________, KC_NUKE, _________________ADJUST_R1_________________, KC_RST,
|
||||||
|
VRSN, _________________ADJUST_L2_________________, MG_NKRO, _________________ADJUST_R2_________________, EEP_RST,
|
||||||
|
TG_MODS, _________________ADJUST_L3_________________, KC_RGB_T,_________________ADJUST_R3_________________, RGB_IDL
|
||||||
|
)
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
@@ -15,4 +15,6 @@ MIDI_ENABLE = no # MIDI controls
|
|||||||
UNICODE_ENABLE = yes # Unicode
|
UNICODE_ENABLE = yes # 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 = yes # Audio output on port C6
|
AUDIO_ENABLE = yes # Audio output on port C6
|
||||||
RGBLIGHT_ENABLE = no # RGB Enable / Disable
|
RGBLIGHT_ENABLE = yes # RGB Enable / Disable
|
||||||
|
|
||||||
|
RGBLIGHT_STARTUP_ANIMATION = yes
|
||||||
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
enum layers {
|
enum layers {
|
||||||
_BASE,
|
_BASE,
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ enum custom_keycodes {
|
|||||||
CKEYS_ABOUT,
|
CKEYS_ABOUT,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* BASE (numpad)
|
/* BASE (numpad)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* LAYERS
|
/* LAYERS
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include "ssd1306.h"
|
#include "ssd1306.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
extern uint8_t is_master;
|
extern uint8_t is_master;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
enum planck_layers {
|
enum planck_layers {
|
||||||
_QWERTY,
|
_QWERTY,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
//Following line allows macro to read current RGB settings
|
//Following line allows macro to read current RGB settings
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __AVR__
|
#ifdef __AVR__
|
||||||
#include <avr/io.h>
|
# include <avr/io.h>
|
||||||
#include <avr/pgmspace.h>
|
# include <avr/pgmspace.h>
|
||||||
#elif defined(ESP8266)
|
#elif defined(ESP8266)
|
||||||
#include <pgmspace.h>
|
# include <pgmspace.h>
|
||||||
#else
|
#else
|
||||||
#define PROGMEM
|
# define PROGMEM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Corne 8x6 font with QMK Firmware Logo
|
// Corne 8x6 font with QMK Firmware Logo
|
||||||
// Online editor: https://helixfonteditor.netlify.com/
|
// Online editor: https://helixfonteditor.netlify.com/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
const unsigned char font[] PROGMEM = {
|
const unsigned char font[] PROGMEM = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
extern uint8_t is_master;
|
||||||
extern uint8_t is_master;
|
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
// Following line allows macro to read current RGB settings
|
// Following line allows macro to read current RGB settings
|
||||||
extern rgblight_config_t rgblight_config;
|
extern rgblight_config_t rgblight_config;
|
||||||
#endif
|
#endif
|
||||||
#ifdef OLED_DRIVER_ENABLE
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
static uint32_t oled_timer = 0;
|
# define KEYLOGGER_LENGTH 5
|
||||||
static char keylog_str[6] = {};
|
static uint32_t oled_timer = 0;
|
||||||
static uint16_t log_timer = 0;
|
static char keylog_str[KEYLOGGER_LENGTH + 1] = {"\n"};
|
||||||
|
static uint16_t log_timer = 0;
|
||||||
|
// clang-format off
|
||||||
static const char PROGMEM code_to_name[0xFF] = {
|
static const char PROGMEM code_to_name[0xFF] = {
|
||||||
// 0 1 2 3 4 5 6 7 8 9 A B c D E F
|
// 0 1 2 3 4 5 6 7 8 9 A B c D E F
|
||||||
' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', // 0x
|
' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', // 0x
|
||||||
@@ -37,7 +37,14 @@ void add_keylog(uint16_t keycode);
|
|||||||
|
|
||||||
enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
|
enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
|
||||||
|
|
||||||
// clang-format off
|
/*
|
||||||
|
* The `LAYOUT_crkbd_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
|
|
||||||
#define LAYOUT_crkbd_base( \
|
#define LAYOUT_crkbd_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||||
@@ -155,7 +162,7 @@ void add_keylog(uint16_t keycode) {
|
|||||||
keycode = 0;
|
keycode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint8_t i = 4; i > 0; --i) {
|
for (uint8_t i = (KEYLOGGER_LENGTH - 1); i > 0; --i) {
|
||||||
keylog_str[i] = keylog_str[i - 1];
|
keylog_str[i] = keylog_str[i - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +175,7 @@ void add_keylog(uint16_t keycode) {
|
|||||||
|
|
||||||
void update_log(void) {
|
void update_log(void) {
|
||||||
if (timer_elapsed(log_timer) > 750) {
|
if (timer_elapsed(log_timer) > 750) {
|
||||||
//add_keylog(0);
|
// add_keylog(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -179,7 +186,7 @@ void render_keylogger_status(void) {
|
|||||||
|
|
||||||
void render_default_layer_state(void) {
|
void render_default_layer_state(void) {
|
||||||
oled_write_P(PSTR("Lyout"), false);
|
oled_write_P(PSTR("Lyout"), false);
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
oled_write_P(PSTR(" QRTY"), false);
|
oled_write_P(PSTR(" QRTY"), false);
|
||||||
break;
|
break;
|
||||||
@@ -268,7 +275,7 @@ void render_status_secondary(void) {
|
|||||||
/* Show Keyboard Layout */
|
/* Show Keyboard Layout */
|
||||||
render_default_layer_state();
|
render_default_layer_state();
|
||||||
render_layer_state();
|
render_layer_state();
|
||||||
render_mod_status(get_mods()|get_oneshot_mods());
|
render_mod_status(get_mods() | get_oneshot_mods());
|
||||||
|
|
||||||
render_keylogger_status();
|
render_keylogger_status();
|
||||||
}
|
}
|
||||||
@@ -278,9 +285,11 @@ void oled_task_user(void) {
|
|||||||
oled_off();
|
oled_off();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifndef SPLIT_KEYBOARD
|
# ifndef SPLIT_KEYBOARD
|
||||||
else { oled_on(); }
|
else {
|
||||||
#endif
|
oled_on();
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
update_log();
|
update_log();
|
||||||
if (is_master) {
|
if (is_master) {
|
||||||
@@ -303,16 +312,12 @@ uint16_t get_tapping_term(uint16_t keycode) {
|
|||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
|
||||||
void suspend_power_down_keymap(void) {
|
void suspend_power_down_keymap(void) { rgb_matrix_set_suspend_state(true); }
|
||||||
rgb_matrix_set_suspend_state(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
void suspend_wakeup_init_keymap(void) {
|
void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); }
|
||||||
rgb_matrix_set_suspend_state(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void check_default_layer(uint8_t mode, uint8_t type) {
|
void check_default_layer(uint8_t mode, uint8_t type) {
|
||||||
switch (biton32(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type);
|
rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type);
|
||||||
break;
|
break;
|
||||||
@@ -351,7 +356,7 @@ void rgb_matrix_indicators_user(void) {
|
|||||||
rgb_matrix_config.enable
|
rgb_matrix_config.enable
|
||||||
# endif
|
# endif
|
||||||
) {
|
) {
|
||||||
switch (biton32(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case _GAMEPAD:
|
case _GAMEPAD:
|
||||||
rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
|
rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Layer shorthand
|
// Layer shorthand
|
||||||
#define _BL 0
|
#define _BL 0
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ qk_tap_dance_action_t tap_dance_actions[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// KEYMAP
|
// KEYMAP
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
/* DZ60 layout using following options (from layouts diagram on KBDfans):
|
||||||
|
* - plate B (2.25u lshift)
|
||||||
|
* - opt 4 (1.75, 1, 1 on rshift)
|
||||||
|
* - opt 10 (2.75, 1.25, 2.25 on space, 5x1u bottom right keys)
|
||||||
|
* http://www.keyboard-layout-editor.com/#/gists/225f0f4dcf6671405f744fabe314627c
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LAYOUT_b_4_10( \
|
||||||
|
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, \
|
||||||
|
K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
|
||||||
|
K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
|
||||||
|
K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K312, K313, K314, \
|
||||||
|
K400, K401, K403, K404, K406, K408, K410, K411, K412, K413, K414 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, KC_NO, K014 }, \
|
||||||
|
{ K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
|
||||||
|
{ K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
|
||||||
|
{ K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO, K312, K313, K314 }, \
|
||||||
|
{ K400, K401, KC_NO, K403, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413, K414 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Layer 0: basic qwerty */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
// |--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------||------2.0-------|
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||||
|
// |--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------||----------------|
|
||||||
|
//
|
||||||
|
// |----1.5-----||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|----1.5-----|
|
||||||
|
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,
|
||||||
|
// |------------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------------|
|
||||||
|
//
|
||||||
|
// |----1.75------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------2.25--------||
|
||||||
|
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,
|
||||||
|
// |--------------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------------------||
|
||||||
|
//
|
||||||
|
// |------2.25--------|--------|--------|--------|--------|--------|--------|--------|--------|--------||----1.75------|--------|--------||
|
||||||
|
KC_LSHIFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH), KC_UP, KC_HYPR,
|
||||||
|
// |------------------|--------|--------|--------|--------|--------|--------|--------|--------|--------||--------------|--------|--------||
|
||||||
|
//
|
||||||
|
// |---1.25---|---1.25---||---1.25---||--------2.75----------||---1.25---|------2.25--------||--------|--------|--------|--------|--------|
|
||||||
|
KC_MEH, KC_LALT, KC_LGUI, KC_SPC, TT(1), MO(1), TG(1), TT(2), KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
// |----------|----------||----------||----------------------||----------|------------------||--------|--------|--------|--------|--------|
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Layer 1: primary fn layer */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
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_TAB, KC_NO, KC_HOME, KC_UP, KC_END, KC_NO, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
KC_CAPS, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_NO, KC_NO, KC_ENT,
|
||||||
|
KC_LSFT, KC_MPRV, KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_MNXT, KC_NO, KC_NO, KC_NO, KC_NO, KC_LOCK, KC_PGUP, KC_INS,
|
||||||
|
KC_MEH, KC_LALT, KC_LGUI, KC_MEDIA_PLAY_PAUSE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Layer 2: mouse navigation */
|
||||||
|
/* Layer 3: numpad */
|
||||||
|
/* Layer 4: RGB lighting controls and keyboard config, reset */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
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, TO(5),
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_HUD,
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_MODE_PLAIN, RGB_MODE_FORWARD, KC_RSHIFT,
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_TOG, RGB_VAI, RGB_HUI,
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, RGB_SAD, RGB_VAD, RGB_SAI
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Build Options
|
||||||
|
# override the options specified in dz60/rules.mk
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
KEY_LOCK_ENABLE = yes # Enables use of KC_LOCK
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// number of taps for TT Tap-Toggle keys to toggle
|
||||||
|
#ifdef TAPPING_TOGGLE
|
||||||
|
#undef TAPPING_TOGGLE
|
||||||
|
#endif
|
||||||
|
#define TAPPING_TOGGLE 2
|
||||||
|
|
||||||
|
// time in ms that counts as a "tap" for various features
|
||||||
|
#ifdef TAPPING_TERM
|
||||||
|
#undef TAPPING_TERM
|
||||||
|
#endif
|
||||||
|
#define TAPPING_TERM 100
|
||||||
|
|
||||||
|
// https://docs.qmk.fm/features/mouse-keys#configuring-the-behavior-of-mousekeys
|
||||||
|
#define MOUSEKEY_DELAY 0
|
||||||
|
#define MOUSEKEY_INTERVAL 20
|
||||||
|
#define MOUSEKEY_MAX_SPEED 10
|
||||||
|
#define MOUSEKEY_TIME_TO_MAX 15
|
||||||
|
#define MOUSEKEY_WHEEL_MAX_SPEED 1
|
||||||
|
#define MOUSEKEY_WHEEL_TIME_TO_MAX 255
|
||||||
|
|
||||||
|
// flags from user/twschum/
|
||||||
|
#define TWSCHUM_TAPPING_CTRL_PREFIX 1
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "twschum.h"
|
||||||
|
|
||||||
|
/* DZ60 layout using following options (from layouts diagram on KBDfans):
|
||||||
|
* - plate B (2.25u lshift)
|
||||||
|
* - opt 4 (1.75, 1, 1 on rshift)
|
||||||
|
* - opt 10 (2.75, 1.25, 2.25 on space, 5x1u bottom right keys)
|
||||||
|
* http://www.keyboard-layout-editor.com/#/gists/225f0f4dcf6671405f744fabe314627c
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#define LAYOUT_b_4_10( \
|
||||||
|
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, \
|
||||||
|
K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
|
||||||
|
K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
|
||||||
|
K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K312, K313, K314, \
|
||||||
|
K400, K401, K403, K404, K406, K408, K410, K411, K412, K413, K414 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, XXXXXXX, K014 }, \
|
||||||
|
{ K100, XXXXXXX, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
|
||||||
|
{ K200, XXXXXXX, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, XXXXXXX }, \
|
||||||
|
{ K300, XXXXXXX, K302, K303, K304, K305, K306, K307, K308, K309, K310, XXXXXXX, K312, K313, K314 }, \
|
||||||
|
{ K400, K401, XXXXXXX, K403, K404, XXXXXXX, K406, XXXXXXX, K408, XXXXXXX, K410, K411, K412, K413, K414 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/* base 60% qwerty */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
// |--------|----1---|----2---|----3---|---4----|---5----|---6----|---7----|---8----|---9----|---0----|-- - ---|-- = ---||------2.0-------|
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||||
|
// |--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------||----------------|
|
||||||
|
//
|
||||||
|
// |----1.5-----||---Q----|---W----|---E----|---R----|---T----|---Y----|---U----|---I----|---O----|---P----|---[----|---]----|----1.5-----|
|
||||||
|
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,
|
||||||
|
// |------------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------------|
|
||||||
|
//
|
||||||
|
// |----1.75------||---A----|---S----|---D----|---F----|---G----|---H----|---J----|---K----|---L----|---;----|---'----|------2.25--------||
|
||||||
|
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,
|
||||||
|
// |--------------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------------------||
|
||||||
|
//
|
||||||
|
// |------2.25--------|---Z----|---X----|---C----|---V----|---B----|---N----|---M----|---,----|---.----||----1.75------|--------|--------||
|
||||||
|
KC_LSHIFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, /*SFT_T*/KC_SLSH, KC_UP, VIM_START,
|
||||||
|
// |------------------|--------|--------|--------|--------|--------|--------|--------|--------|--------||--------------|--------|--------||
|
||||||
|
//
|
||||||
|
// |---1.25---|---1.25---||---1.25---||--------2.75----------||---1.25---|------2.25--------||--------|--------|--------|--------|--------|
|
||||||
|
MO(_Fn), KC_LALT, KC_LGUI, KC_SPC, TT(_Nav), MO(_Fn), TG(_Num), TT(_Cfg), KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
// |----------|----------||----------||----------------------||----------|------------------||--------|--------|--------|--------|--------|
|
||||||
|
),
|
||||||
|
|
||||||
|
/* vim mode */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
VIM_ESC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, VIM_W, VIM_E, KC_R, _______, VIM_Y, VIM_U, VIM_I, VIM_O, VIM_P, _______, _______, _______,
|
||||||
|
_______, VIM_A, VIM_S, VIM_D, _______, VIM_G, VIM_H, VIM_J, VIM_K, VIM_L, _______, _______, _______,
|
||||||
|
VIM_SHIFT, _______, VIM_X, VIM_C, VIM_V, VIM_B, _______, _______, VIM_COMMA, VIM_PERIOD, _______, _______, VIM_ESC,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
/* primary fn layer */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
// |--------|----1---|----2---|----3---|---4----|---5----|---6----|---7----|---8----|---9----|---0----|-- - ---|-- = ---||------2.0-------|
|
||||||
|
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,
|
||||||
|
// |--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------||----------------|
|
||||||
|
//
|
||||||
|
// |----1.5-----||---Q----|---W----|---E----|---R----|---T----|---Y----|---U----|---I----|---O----|---P----|---[----|---]----|----1.5-----|
|
||||||
|
KC_TAB, CODE_PASTE, KC_HOME, KC_UP, KC_END, XXXXXXX, KC_HOME, KC_PGDN, KC_PGUP, KC_END, LESS_PD, XXXXXXX, XXXXXXX, CODE_PASTE,
|
||||||
|
// |------------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------------|
|
||||||
|
//
|
||||||
|
// |----1.75------||---A----|---S----|---D----|---F----|---G----|---H----|---J----|---K----|---L----|---;----|---'----|------2.25--------||
|
||||||
|
KC_CAPS, SALT_CMD, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, KC_ENT,
|
||||||
|
// |--------------||--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|------------------||
|
||||||
|
//
|
||||||
|
// |------2.25--------|---Z----|---X----|---C----|---V----|---B----|---N----|---M----|---,----|---.----||----1.75------|--------|--------||
|
||||||
|
KC_LSHIFT, KC_MPRV, KC_MUTE, KC_VOLD, KC_VOLU, KC_MNXT, _______, _______, XXXXXXX, XXXXXXX, KC_LOCK, KC_PGUP, KC_INS,
|
||||||
|
// |------------------|--------|--------|--------|--------|--------|--------|--------|--------|--------||--------------|--------|--------||
|
||||||
|
//
|
||||||
|
// |---1.25---|---1.25---||---1.25---||--------2.75----------||---1.25---|------2.25--------||--------|--------|--------|--------|--------|
|
||||||
|
KC_MEH, KC_LALT, KC_LGUI, KC_MEDIA_PLAY_PAUSE, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END
|
||||||
|
// |----------|----------||----------||----------------------||----------|------------------||--------|--------|--------|--------|--------|
|
||||||
|
),
|
||||||
|
|
||||||
|
/* mouse navigation */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
TO(_Base), KC_MS_ACCEL0, KC_MS_ACCEL1, KC_MS_ACCEL2, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1, XXXXXXX, XXXXXXX, KC_SLEP, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
KC_LCTL, KC_MS_BTN3, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, XXXXXXX, KC_MS_WH_LEFT, KC_MS_WH_DOWN, KC_MS_WH_UP, KC_MS_WH_RIGHT, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
KC_LSHIFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, KC_MS_BTN1, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
/* numpad layer */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_MINUS, KC_KP_PLUS, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_SLASH, KC_KP_ASTERISK, XXXXXXX, KC_ENT,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_DOT, KC_KP_ENTER, XXXXXXX, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_0, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
/* RGB lighting controls and keyboard config, reset */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TG_L0_RGB, XXXXXXX, XXXXXXX, TO(_None),
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUD,
|
||||||
|
EN_CTRL_SHORTCUTS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TG_LAYER_RGB, RGB_MODE_PLAIN, RGB_MODE_FORWARD, KC_RSHIFT,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MAKE, XXXXXXX, XXXXXXX, RGB_TOG, RGB_VAI, RGB_HUI,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, RGB_SAD, RGB_VAD, RGB_SAI
|
||||||
|
),
|
||||||
|
|
||||||
|
/* soft "off" state where none of the keystroke register */
|
||||||
|
LAYOUT_b_4_10(
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TO(_Base),
|
||||||
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
uint8_t vim_cmd_layer(void) {
|
||||||
|
return _Vim;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,15 @@
|
|||||||
|
# Build Options
|
||||||
|
# override the options specified in dz60/rules.mk
|
||||||
|
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
|
||||||
|
# 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 = yes # Enable keyboard RGB underglow
|
||||||
|
KEY_LOCK_ENABLE = yes # Enables use of KC_LOCK
|
||||||
|
|
||||||
|
# Enables including users/twschum/twschum.h
|
||||||
|
USER_NAME := twschum
|
||||||
@@ -21,8 +21,8 @@ CONSOLE_ENABLE = no # Console for debug(+400)
|
|||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
BACKLIGHT_ENABLE = yes # Enable per-key backlight LEDs
|
||||||
AUDIO_ENABLE = no
|
AUDIO_ENABLE = no # There is no speaker on this PCB
|
||||||
RGBLIGHT_ENABLE = yes
|
RGBLIGHT_ENABLE = yes # Enable the RGB underglow LEDs
|
||||||
|
|
||||||
LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_hhkb 60_iso 60_abnt2
|
LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_hhkb 60_iso 60_abnt2
|
||||||
@@ -1,39 +1,2 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "config_common.h"
|
||||||
#include "config_common.h"
|
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
|
||||||
#define VENDOR_ID 0xFEED
|
|
||||||
#define PRODUCT_ID 0x1219
|
|
||||||
#define DEVICE_VER 0x0001
|
|
||||||
#define MANUFACTURER DZTECH
|
|
||||||
|
|
||||||
#define PRODUCT DZ60RGB
|
|
||||||
#define DESCRIPTION DZ60 ARM RGB keyboard
|
|
||||||
#define MATRIX_ROWS 5
|
|
||||||
#define MATRIX_COLS 14
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
|
||||||
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
|
|
||||||
|
|
||||||
/* #define UNUSED_PINS {A0,A1,A2, A3,A4,A9,A10,C15,A13,A14,B2}*/
|
|
||||||
|
|
||||||
#define DIODE_DIRECTION COL2ROW
|
|
||||||
|
|
||||||
#define DEBOUNCE 3
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
|
||||||
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
|
||||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
|
||||||
#define RGB_MATRIX_KEYPRESSES
|
|
||||||
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
|
||||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
|
||||||
#define DISABLE_RGB_MATRIX_SPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
|
||||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
|
||||||
#define DRIVER_ADDR_1 0b1010000
|
|
||||||
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
|
||||||
#define DRIVER_COUNT 2
|
|
||||||
#define DRIVER_1_LED_TOTAL 63
|
|
||||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#pragma once
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1219
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
|
||||||
|
#define PRODUCT DZ60RGB
|
||||||
|
#define DESCRIPTION DZ60 ARM RGB keyboard
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
||||||
|
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
|
||||||
|
|
||||||
|
/* #define UNUSED_PINS {A0,A1,A2, A3,A4,A9,A10,C15,A13,A14,B2}*/
|
||||||
|
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
||||||
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||||
|
#define DRIVER_ADDR_1 0b1010000
|
||||||
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 63
|
||||||
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||||
|
#endif
|
||||||
@@ -2,13 +2,13 @@
|
|||||||
MCU = STM32F303
|
MCU = STM32F303
|
||||||
|
|
||||||
BACKLIGHT_ENABLE = no
|
BACKLIGHT_ENABLE = no
|
||||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||||
NKRO_ENABLE = no # USB Nkey Rollover
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
AUDIO_ENABLE = no
|
AUDIO_ENABLE = no
|
||||||
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
||||||
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
#pragma once
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1219
|
||||||
|
#define DEVICE_VER 0x0002
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
|
||||||
|
#define PRODUCT DZ60RGB
|
||||||
|
#define DESCRIPTION DZ60 AVR RGB keyboard
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS {F5, F4, F1, B3, B2 }
|
||||||
|
#define MATRIX_COL_PINS {C7, F7, F6, F0, B0, B1, B4, D7, D6, D4, D5, D3, D2, B7 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||||
|
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||||
|
#define DRIVER_ADDR_1 0b1010000
|
||||||
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 63
|
||||||
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
BACKLIGHT_ENABLE = no
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
AUDIO_ENABLE = no
|
||||||
|
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
||||||
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
@@ -1,39 +1,2 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
|
||||||
#define VENDOR_ID 0xFEED
|
|
||||||
#define PRODUCT_ID 0x1219
|
|
||||||
#define DEVICE_VER 0x0001
|
|
||||||
#define MANUFACTURER DZTECH
|
|
||||||
|
|
||||||
#define PRODUCT DZ60RGB
|
|
||||||
#define DESCRIPTION DZ60 ARM RGB keyboard
|
|
||||||
#define MATRIX_ROWS 5
|
|
||||||
#define MATRIX_COLS 14
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
|
||||||
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
|
|
||||||
|
|
||||||
/* #define UNUSED_PINS {A0,A1,A2, A3,A4,A9,A10,C15,A13,A14,B2}*/
|
|
||||||
|
|
||||||
#define DIODE_DIRECTION COL2ROW
|
|
||||||
|
|
||||||
#define DEBOUNCE 3
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
|
||||||
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
|
||||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
|
||||||
#define RGB_MATRIX_KEYPRESSES
|
|
||||||
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
|
||||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
|
||||||
#define DISABLE_RGB_MATRIX_SPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
|
||||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
|
||||||
#define DRIVER_ADDR_1 0b1010000
|
|
||||||
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
|
||||||
#define DRIVER_COUNT 2
|
|
||||||
#define DRIVER_1_LED_TOTAL 61
|
|
||||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#pragma once
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1220
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
|
||||||
|
#define PRODUCT DZ60RGB_ANSI
|
||||||
|
#define DESCRIPTION DZ60 ARM RGB keyboard
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
||||||
|
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
|
||||||
|
|
||||||
|
/* #define UNUSED_PINS {A0,A1,A2, A3,A4,A9,A10,C15,A13,A14,B2}*/
|
||||||
|
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
||||||
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||||
|
#define DRIVER_ADDR_1 0b1010000
|
||||||
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 61
|
||||||
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||||
|
#endif
|
||||||
@@ -2,15 +2,13 @@
|
|||||||
MCU = STM32F303
|
MCU = STM32F303
|
||||||
|
|
||||||
BACKLIGHT_ENABLE = no
|
BACKLIGHT_ENABLE = no
|
||||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||||
NKRO_ENABLE = no # USB Nkey Rollover
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
AUDIO_ENABLE = no
|
AUDIO_ENABLE = no
|
||||||
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
||||||
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
|
|
||||||
LAYOUTS = 60_ansi
|
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
#pragma once
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1220
|
||||||
|
#define DEVICE_VER 0x0002
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
|
||||||
|
#define PRODUCT DZ60RGB_ANSI
|
||||||
|
#define DESCRIPTION DZ60 AVR RGB keyboard
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS {F5, F4, F1, B3, B2 }
|
||||||
|
#define MATRIX_COL_PINS {C7, F7, F6, F0, B0, B1, B4, D7, D6, D4, D5, D3, D2, B7 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||||
|
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||||
|
#define DRIVER_ADDR_1 0b1010000
|
||||||
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 61
|
||||||
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
BACKLIGHT_ENABLE = no
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
AUDIO_ENABLE = no
|
||||||
|
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
||||||
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
@@ -1,39 +1,2 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "config_common.h"
|
||||||
#include "config_common.h"
|
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
|
||||||
#define VENDOR_ID 0xFEED
|
|
||||||
#define PRODUCT_ID 0x1219
|
|
||||||
#define DEVICE_VER 0x0001
|
|
||||||
#define MANUFACTURER DZTECH
|
|
||||||
|
|
||||||
#define PRODUCT DZ60RGB
|
|
||||||
#define DESCRIPTION DZ60 ARM RGB keyboard
|
|
||||||
#define MATRIX_ROWS 5
|
|
||||||
#define MATRIX_COLS 14
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
|
||||||
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
|
|
||||||
|
|
||||||
/* #define UNUSED_PINS {A0,A1,A2, A3,A4,A9,A10,C15,A13,A14,B2}*/
|
|
||||||
|
|
||||||
#define DIODE_DIRECTION COL2ROW
|
|
||||||
|
|
||||||
#define DEBOUNCE 3
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
|
||||||
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
|
||||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
|
||||||
#define RGB_MATRIX_KEYPRESSES
|
|
||||||
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
|
||||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
|
||||||
#define DISABLE_RGB_MATRIX_SPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
|
||||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
|
||||||
#define DRIVER_ADDR_1 0b1010000
|
|
||||||
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
|
||||||
#define DRIVER_COUNT 2
|
|
||||||
#define DRIVER_1_LED_TOTAL 62
|
|
||||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#pragma once
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1221
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
|
||||||
|
#define PRODUCT DZ60RGB_WKL
|
||||||
|
#define DESCRIPTION DZ60 ARM RGB keyboard
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
||||||
|
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
|
||||||
|
|
||||||
|
/* #define UNUSED_PINS {A0,A1,A2, A3,A4,A9,A10,C15,A13,A14,B2}*/
|
||||||
|
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
||||||
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||||
|
#define DRIVER_ADDR_1 0b1010000
|
||||||
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 62
|
||||||
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||||
|
#endif
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
MCU = STM32F303
|
# MCU name
|
||||||
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
|
MCU = STM32F303
|
||||||
DFU_SUFFIX_ARGS = -p DF11 -v 0483
|
|
||||||
BACKLIGHT_ENABLE = no
|
BACKLIGHT_ENABLE = no
|
||||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||||
NKRO_ENABLE = no # USB Nkey Rollover
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
AUDIO_ENABLE = no
|
AUDIO_ENABLE = no
|
||||||
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
||||||
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
#pragma once
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1221
|
||||||
|
#define DEVICE_VER 0x0002
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
|
||||||
|
#define PRODUCT DZ60RGB_WKL
|
||||||
|
#define DESCRIPTION DZ60 AVR RGB keyboard
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS {F5, F4, F1, B3, B2 }
|
||||||
|
#define MATRIX_COL_PINS {C7, F7, F6, F0, B0, B1, B4, D7, D6, D4, D5, D3, D2, B7 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||||
|
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||||
|
#define DRIVER_ADDR_1 0b1010000
|
||||||
|
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 62
|
||||||
|
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
BACKLIGHT_ENABLE = no
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
AUDIO_ENABLE = no
|
||||||
|
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
|
||||||
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
@@ -1,46 +1,2 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
#define VENDOR_ID 0xFEED
|
|
||||||
#define PRODUCT_ID 0x1224
|
|
||||||
#define DEVICE_VER 0x0001
|
|
||||||
#define MANUFACTURER DZTECH
|
|
||||||
#define PRODUCT DZ65RGB
|
|
||||||
#define DESCRIPTION DZ65 ARM RGB keyboard
|
|
||||||
|
|
||||||
#define MATRIX_ROWS 5
|
|
||||||
#define MATRIX_COLS 15
|
|
||||||
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
|
||||||
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14, C15 }
|
|
||||||
#define DIODE_DIRECTION COL2ROW
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
|
||||||
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
|
||||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
|
||||||
#define DEBOUNCE 3
|
|
||||||
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
|
||||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
|
||||||
#define RGB_MATRIX_KEYPRESSES
|
|
||||||
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
|
||||||
#define DISABLE_RGB_MATRIX_BAND_SAT
|
|
||||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
|
||||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
|
||||||
#define DISABLE_RGB_MATRIX_SPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
|
||||||
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
|
||||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
|
||||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
|
||||||
#define DRIVER_ADDR_1 0b1110100
|
|
||||||
#define DRIVER_ADDR_2 0b1110111
|
|
||||||
#define DRIVER_COUNT 2
|
|
||||||
#define DRIVER_1_LED_TOTAL 35
|
|
||||||
#define DRIVER_2_LED_TOTAL 33
|
|
||||||
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
#pragma once
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1222
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
#define PRODUCT DZ65RGB
|
||||||
|
#define DESCRIPTION DZ65 ARM RGB keyboard
|
||||||
|
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 15
|
||||||
|
#define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
|
||||||
|
#define MATRIX_COL_PINS {A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14, C15 }
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
||||||
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||||
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||||
|
#define DRIVER_ADDR_1 0b1110100
|
||||||
|
#define DRIVER_ADDR_2 0b1110111
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 35
|
||||||
|
#define DRIVER_2_LED_TOTAL 33
|
||||||
|
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
|
||||||
|
#endif
|
||||||
File renamed without changes.
@@ -0,0 +1,45 @@
|
|||||||
|
#pragma once
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x1222
|
||||||
|
#define DEVICE_VER 0x0002
|
||||||
|
#define MANUFACTURER DZTECH
|
||||||
|
#define PRODUCT DZ65RGB
|
||||||
|
#define DESCRIPTION DZ65 AVR RGB keyboard
|
||||||
|
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 15
|
||||||
|
#define MATRIX_ROW_PINS {F0, F1, F4, E6, C6 }
|
||||||
|
#define MATRIX_COL_PINS {F7, F6, F5, C7, B0, B1, B2, B3, B4, D7, D6, D4, D5, D3, D2}
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
|
||||||
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
||||||
|
#define DEBOUNCE 3
|
||||||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||||
|
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||||
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||||
|
#define DRIVER_ADDR_1 0b1110100
|
||||||
|
#define DRIVER_ADDR_2 0b1110111
|
||||||
|
#define DRIVER_COUNT 2
|
||||||
|
#define DRIVER_1_LED_TOTAL 35
|
||||||
|
#define DRIVER_2_LED_TOTAL 33
|
||||||
|
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
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
|
||||||
|
RGB_MATRIX_ENABLE = yes # Use RGB matrix
|
||||||
|
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
|
||||||
|
|
||||||
|
LAYOUTS = 65_ansi
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define BASE 0
|
#define BASE 0
|
||||||
#define META 1
|
#define META 1
|
||||||
@@ -64,4 +63,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
)
|
)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
|
|||||||
@@ -17,16 +17,22 @@
|
|||||||
#include "e65.h"
|
#include "e65.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
setPinOutput(B6);
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
matrix_init_user();
|
matrix_init_user();
|
||||||
|
led_init_ports();
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_init_ports(void) {
|
||||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
setPinOutput(B6);
|
||||||
writePinHigh(B6);
|
writePinHigh(B6);
|
||||||
} else {
|
}
|
||||||
writePinLow(B6);
|
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
|
if(led_update_user(led_state)) {
|
||||||
|
writePin(B6, !led_state.caps_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
/* Good on you for modifying your layout! if you don't have
|
|
||||||
* time to read the QMK docs, a list of keycodes can be found at
|
|
||||||
*
|
|
||||||
* https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
|
|
||||||
*
|
|
||||||
* There's also a template for adding new layers at the bottom of this file!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
|
||||||
#include "drashna.h"
|
#include "drashna.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The `LAYOUT_gergo_base` macro is a template to allow the use of identical
|
||||||
|
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||||
|
* that there is no need to set them up for each layout, and modify all of
|
||||||
|
* them if I want to change them. This helps to keep consistency and ease
|
||||||
|
* of use. K## is a placeholder to pass through the individual keycodes
|
||||||
|
*/
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#define LAYOUT_gergo_base( \
|
#define LAYOUT_gergo_base( \
|
||||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||||
@@ -17,7 +15,7 @@
|
|||||||
) \
|
) \
|
||||||
LAYOUT_gergo_wrapper( \
|
LAYOUT_gergo_wrapper( \
|
||||||
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_PIPE, \
|
KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_PIPE, \
|
||||||
KC_TAB, K11, K12, K13, K14, K15, _______, _______, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
LALT_T(KC_TAB), K11, K12, K13, K14, K15, _______, _______, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
|
||||||
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, _______, _______, _______, _______, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, _______, _______, _______, _______, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
|
||||||
KC_GRV, KC_SPC, BK_LWER, OS_LALT, OS_RGUI, DL_RAIS, KC_ENT, _______ \
|
KC_GRV, KC_SPC, BK_LWER, OS_LALT, OS_RGUI, DL_RAIS, KC_ENT, _______ \
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
#ifdef SSD1306OLED
|
#ifdef SSD1306OLED
|
||||||
#include "ssd1306.h"
|
#include "ssd1306.h"
|
||||||
#endif
|
#endif
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
//Following line allows macro to read current RGB settings
|
//Following line allows macro to read current RGB settings
|
||||||
extern rgblight_config_t rgblight_config;
|
extern rgblight_config_t rgblight_config;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _BASE 0
|
#define _BASE 0
|
||||||
#define _RAISE 1
|
#define _RAISE 1
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _BASE 0
|
#define _BASE 0
|
||||||
#define _RAISE 1
|
#define _RAISE 1
|
||||||
@@ -84,4 +83,3 @@ void persistent_default_layer_set(uint16_t default_layer) {
|
|||||||
eeconfig_update_default_layer(default_layer);
|
eeconfig_update_default_layer(default_layer);
|
||||||
default_layer_set(default_layer);
|
default_layer_set(default_layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
@@ -48,5 +47,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______,_______, _______,_______
|
_______,_______, _______,_______
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
@@ -52,4 +51,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
),
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
#include <keymap_colemak.h>
|
#include <keymap_colemak.h>
|
||||||
#include <sendstring_colemak.h>
|
#include <sendstring_colemak.h>
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Automatic Layer ID:
|
// Automatic Layer ID:
|
||||||
enum layer_names {
|
enum layer_names {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _QWERTY 0
|
||||||
#define _LOWER 1
|
#define _LOWER 1
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
@@ -81,4 +80,3 @@ uint32_t layer_state_set_user(uint32_t state) {
|
|||||||
|
|
||||||
void matrix_init_user(void) {
|
void matrix_init_user(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
@@ -119,4 +118,3 @@ void matrix_scan_user(void) {
|
|||||||
reset_keyboard();
|
reset_keyboard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
|
||||||
|
|
||||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
// 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.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 Yan-Fa Li
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/* Copyright 2019 Yan-Fa Li
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
};
|
||||||
|
|
||||||
|
// Defines the keycodes used by our macros in process_record_user
|
||||||
|
enum custom_keycodes {
|
||||||
|
QMKURL = SAFE_RANGE
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Base */
|
||||||
|
[_BASE] = LAYOUT(
|
||||||
|
KC_A, KC_1, MO(_FN)
|
||||||
|
),
|
||||||
|
[_FN] = LAYOUT(
|
||||||
|
RESET, QMKURL, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case QMKURL:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
// when keycode QMKURL is pressed
|
||||||
|
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
|
||||||
|
} else {
|
||||||
|
// when keycode QMKURL is released
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for PostageBoard
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 Yan-Fa Li
|
||||||
|
|
||||||
|
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 0xB07D
|
||||||
|
#define DEVICE_VER 0x0002
|
||||||
|
#define MANUFACTURER LifeIsOnTheWire
|
||||||
|
#define PRODUCT PostageBoard
|
||||||
|
#define DESCRIPTION "A Handwire Controller Board Round 2"
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 1
|
||||||
|
#define MATRIX_COLS 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 { D5 }
|
||||||
|
#define MATRIX_COL_PINS { E6, B3, B7 }
|
||||||
|
#define UNUSED_PINS { D0, D1, D2, D3, D4, D6, D7, B4, B5, B6, C6, C7, B2, B1, B0, F7, F6, F5, F4, F1, F0 }
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not 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
|
||||||
|
|
||||||
|
/* Bootmagic Lite key configuration */
|
||||||
|
// #define BOOTMAGIC_LITE_ROW 0
|
||||||
|
// #define BOOTMAGIC_LITE_COLUMN 0
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
/* Copyright 2019 Yan-Fa Li
|
||||||
|
*
|
||||||
|
* 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 "mini.h"
|
||||||
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
/* Copyright 2019 Yan-Fa Li
|
||||||
|
*
|
||||||
|
* 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 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = 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 = no # 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 @@
|
|||||||
|
#include "postageboard.h"
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
/* Copyright 2019 Yan-Fa Li
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
k00, k01, k02 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 Yan-Fa Li
|
||||||
|
|
||||||
|
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 0xB07D
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER LifeIsOnTheWire
|
||||||
|
#define PRODUCT PostageBoard
|
||||||
|
#define DESCRIPTION "A Handwire Controller Board"
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 1
|
||||||
|
#define MATRIX_COLS 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 }
|
||||||
|
#define MATRIX_COL_PINS { B7, C6, C7 }
|
||||||
|
#define UNUSED_PINS { D4, D6, D7, B4, B5, D5, D3, D2, D1, D0, B2, B3, F0, F1, F4, F5, F6, F7, E6, B0, B1 }
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not 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
|
||||||
|
|
||||||
|
/* Bootmagic Lite key configuration */
|
||||||
|
// #define BOOTMAGIC_LITE_ROW 0
|
||||||
|
// #define BOOTMAGIC_LITE_COLUMN 0
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
/* Copyright 2019 Yan-Fa Li
|
||||||
|
*
|
||||||
|
* 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 "r1.h"
|
||||||
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
/* Copyright 2019 Yan-Fa Li
|
||||||
|
*
|
||||||
|
* 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 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = 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 = no # 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
|
||||||
Loaded 100 of 361 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user