Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29f68459a0 | ||
|
|
6a59198a42 | ||
|
|
36bed36cd6 | ||
|
|
db440f3e75 | ||
|
|
7e655a207e | ||
|
|
55d37d9fbc | ||
|
|
27b0f8923e | ||
|
|
3da8d46a07 | ||
|
|
4db31fb374 | ||
|
|
3956b7c685 | ||
|
|
de5c8d86b4 | ||
|
|
7e68faa336 | ||
|
|
588b2329cb | ||
|
|
6fa88d981c | ||
|
|
12a07dae33 | ||
|
|
3235c8527d | ||
|
|
22ba36a4d8 | ||
|
|
50bc2dbe77 | ||
|
|
61ce41ae13 |
No files matched your search
+2
-2
@@ -324,7 +324,6 @@ ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# # project specific files
|
# # project specific files
|
||||||
SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
|
|
||||||
SRC += $(KEYBOARD_SRC) \
|
SRC += $(KEYBOARD_SRC) \
|
||||||
$(KEYMAP_C) \
|
$(KEYMAP_C) \
|
||||||
$(QUANTUM_SRC)
|
$(QUANTUM_SRC)
|
||||||
@@ -334,15 +333,16 @@ SRC += $(KEYBOARD_SRC) \
|
|||||||
|
|
||||||
# Search Path
|
# Search Path
|
||||||
VPATH += $(KEYMAP_PATH)
|
VPATH += $(KEYMAP_PATH)
|
||||||
|
VPATH += $(USER_PATH)
|
||||||
VPATH += $(KEYBOARD_PATHS)
|
VPATH += $(KEYBOARD_PATHS)
|
||||||
VPATH += $(COMMON_VPATH)
|
VPATH += $(COMMON_VPATH)
|
||||||
VPATH += $(USER_PATH)
|
|
||||||
|
|
||||||
include common_features.mk
|
include common_features.mk
|
||||||
include $(TMK_PATH)/protocol.mk
|
include $(TMK_PATH)/protocol.mk
|
||||||
include $(TMK_PATH)/common.mk
|
include $(TMK_PATH)/common.mk
|
||||||
include bootloader.mk
|
include bootloader.mk
|
||||||
|
|
||||||
|
SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
|
||||||
SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC))
|
SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC))
|
||||||
SRC += $(TMK_COMMON_SRC)
|
SRC += $(TMK_COMMON_SRC)
|
||||||
OPT_DEFS += $(TMK_COMMON_DEFS)
|
OPT_DEFS += $(TMK_COMMON_DEFS)
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ endif
|
|||||||
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
||||||
POST_CONFIG_H += $(QUANTUM_DIR)/rgblight_post_config.h
|
POST_CONFIG_H += $(QUANTUM_DIR)/rgblight_post_config.h
|
||||||
OPT_DEFS += -DRGBLIGHT_ENABLE
|
OPT_DEFS += -DRGBLIGHT_ENABLE
|
||||||
|
SRC += $(QUANTUM_DIR)/color.c
|
||||||
SRC += $(QUANTUM_DIR)/rgblight.c
|
SRC += $(QUANTUM_DIR)/rgblight.c
|
||||||
CIE1931_CURVE = yes
|
CIE1931_CURVE = yes
|
||||||
LED_BREATHING_TABLE = yes
|
LED_BREATHING_TABLE = yes
|
||||||
|
|||||||
@@ -330,6 +330,8 @@ Use these to enable or disable building certain features. The more you have enab
|
|||||||
* Forces the keyboard to wait for a USB connection to be established before it starts up
|
* Forces the keyboard to wait for a USB connection to be established before it starts up
|
||||||
* `NO_USB_STARTUP_CHECK`
|
* `NO_USB_STARTUP_CHECK`
|
||||||
* Disables usb suspend check after keyboard startup. Usually the keyboard waits for the host to wake it up before any tasks are performed. This is useful for split keyboards as one half will not get a wakeup call but must send commands to the master.
|
* Disables usb suspend check after keyboard startup. Usually the keyboard waits for the host to wake it up before any tasks are performed. This is useful for split keyboards as one half will not get a wakeup call but must send commands to the master.
|
||||||
|
* `LINK_TIME_OPTIMIZATION_ENABLE`
|
||||||
|
= Enables Link Time Optimization (`LTO`) when compiling the keyboard. This makes the process take longer, but can significantly reduce the compiled size (and since the firmware is small, the added time is not noticable). However, this will automatically disable the old Macros and Functions features automatically, as these break when `LTO` is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`
|
||||||
|
|
||||||
## USB Endpoint Limitations
|
## USB Endpoint Limitations
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ The following options can be used to tweak the various animations:
|
|||||||
|`RGBLIGHT_EFFECT_RGB_TEST` |*Not defined*|If defined, enable RGB test animation mode. |
|
|`RGBLIGHT_EFFECT_RGB_TEST` |*Not defined*|If defined, enable RGB test animation mode. |
|
||||||
|`RGBLIGHT_EFFECT_ALTERNATING` |*Not defined*|If defined, enable alternating animation mode. |
|
|`RGBLIGHT_EFFECT_ALTERNATING` |*Not defined*|If defined, enable alternating animation mode. |
|
||||||
|`RGBLIGHT_ANIMATIONS` |*Not defined*|If defined, enables all additional animation modes |
|
|`RGBLIGHT_ANIMATIONS` |*Not defined*|If defined, enables all additional animation modes |
|
||||||
|`RGBLIGHT_EFFECT_BREATHE_CENTER` |`1.85` |Used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
|
|`RGBLIGHT_EFFECT_BREATHE_CENTER` |*Not defined*|If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
|
||||||
|`RGBLIGHT_EFFECT_BREATHE_MAX` |`255` |The maximum brightness for the breathing mode. Valid values are 1 to 255 |
|
|`RGBLIGHT_EFFECT_BREATHE_MAX` |`255` |The maximum brightness for the breathing mode. Valid values are 1 to 255 |
|
||||||
|`RGBLIGHT_EFFECT_SNAKE_LENGTH` |`4` |The number of LEDs to light up for the "Snake" animation |
|
|`RGBLIGHT_EFFECT_SNAKE_LENGTH` |`4` |The number of LEDs to light up for the "Snake" animation |
|
||||||
|`RGBLIGHT_EFFECT_KNIGHT_LENGTH` |`3` |The number of LEDs to light up for the "Knight" animation |
|
|`RGBLIGHT_EFFECT_KNIGHT_LENGTH` |`3` |The number of LEDs to light up for the "Knight" animation |
|
||||||
@@ -145,7 +145,7 @@ const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {100, 50, 20};
|
|||||||
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
||||||
|
|
||||||
// These control which hues are selected for each of the "Static gradient" modes
|
// These control which hues are selected for each of the "Static gradient" modes
|
||||||
const uint16_t RGBLED_GRADIENT_RANGES[] PROGMEM = {360, 240, 180, 120, 90};
|
const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
||||||
```
|
```
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
# 介绍
|
||||||
|
|
||||||
|
本页解释了使用QMK项目所需的基本信息。它假定您能熟练使用Unix shell,但您不熟悉C语言也不熟悉使用make编译。
|
||||||
|
|
||||||
|
## 基本QMK结构
|
||||||
|
|
||||||
|
QMK是[Jun Wako](https://github.com/tmk)的[tmk_keyboard](https://github.com/tmk/tmk_keyboard)工程的一个分叉。经过更改的TMK原始代码放在`tmk` 文件夹中。 QMK增加的新东西可以在 `quantum` 文件夹中找到。 键盘项目可以在 `handwired`(手动飞线) 和 `keyboard`(PCB键盘)这两个文件夹找到。
|
||||||
|
|
||||||
|
### 用户空间结构
|
||||||
|
|
||||||
|
在`users`文件夹里面的目录是每个用户的目录。这个文件夹里面放的是用户们在不同键盘都能用到的代码。详见[用户空间特性](feature_userspace.md)
|
||||||
|
|
||||||
|
### 键盘项目结构
|
||||||
|
|
||||||
|
在`keyboards`文件夹和他的子文件夹`handwired`中就是各个键盘的项目了,比如`qmk_firmware/keyboards/clueboard`。内部结构与如下:
|
||||||
|
|
||||||
|
* `keymaps/`: 可以构建的不同布局
|
||||||
|
* `rules.mk`: 用来设置 "make" 命令默认选项的文件。别直接编辑这个文件,你应该使用具体某个布局的 `rules.mk`.
|
||||||
|
* `config.h`: 用于设置默认编译选项的文件。别直接编辑这个文件, 你应该使用具体某个布局的 `config.h`.
|
||||||
|
|
||||||
|
### 布局结构
|
||||||
|
|
||||||
|
在各个布局的文件夹,你能找到以下文件。只有 `keymap.c` 是必要的, 如果其他文件找不到就会直接选择默认选项。
|
||||||
|
|
||||||
|
* `config.h`: 配置布局的选项
|
||||||
|
* `keymap.c`: 布局的全部代码, 必要文件
|
||||||
|
* `rules.mk`: 使能的QMK特性
|
||||||
|
* `readme.md`:介绍你的布局,告诉别人怎么使用,附上功能说明。请将图片上传到imgur等图床(译者注:imgur可能已被墙,为了方便国人访问,建议使用国内可以直接访问的图床)。
|
||||||
|
|
||||||
|
# `config.h` 文件
|
||||||
|
|
||||||
|
有三个重要的`config.h` 位置:
|
||||||
|
|
||||||
|
* 键盘 (`/keyboards/<keyboard>/config.h`)
|
||||||
|
* 用户空间 (`/users/<user>/config.h`)
|
||||||
|
* 布局 (`/keyboards/<keyboard>/keymaps/<keymap>/config.h`)
|
||||||
|
|
||||||
|
构建系统按照上述顺序自动获取配置文件。如果要覆盖由上一个 `config.h` 所做的设置,您需要首先为要更改的设置包含一些样板代码。
|
||||||
|
|
||||||
|
```
|
||||||
|
#pragma once
|
||||||
|
```
|
||||||
|
|
||||||
|
要覆盖上一个 `config.h` 所做的设置,你要先 `#undef` 然后再 `#define` 这个设置.
|
||||||
|
|
||||||
|
样板代码和设置看起来像这样:
|
||||||
|
|
||||||
|
```
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// 像下面那样覆盖设置(MY_SETTING指的是你要覆盖的设置项)!
|
||||||
|
#undef MY_SETTING
|
||||||
|
#define MY_SETTING 4
|
||||||
|
```
|
||||||
@@ -0,0 +1,163 @@
|
|||||||
|
# 最佳实践
|
||||||
|
|
||||||
|
## 或者说, "我应如何学会不再担心并开始爱上Git。"
|
||||||
|
|
||||||
|
本文档旨在指导新手以最佳方式获得为QMK做出贡献的丝滑体验。我们将介绍为QMK做出贡献的过程,详细介绍使这项任务更容易的一些方法,然后我们将制造一些问题,来教你如何解决它们。
|
||||||
|
|
||||||
|
本文假设了一些内容:
|
||||||
|
|
||||||
|
1. 一有个GitHub账户, 并[创建qmk_firmware仓库分叉](getting_started_github.md)到你的帐户.
|
||||||
|
2. 你已经[建立你的构建环境](newbs_getting_started.md?id=environment-setup).
|
||||||
|
|
||||||
|
|
||||||
|
## 你分叉的主分支: 一直在上传,但不要提交
|
||||||
|
|
||||||
|
十分推荐您在QMK开发过程中无论开发是否完成都要保持你的 `master` 分支更新,但是 ***一定不要*** 提交。相反,你应该在一个开发分叉中做出你所有修改并在开发时提交pull request。
|
||||||
|
|
||||||
|
减少合并冲突的可能性 — 两个或多个用户同时编辑文件的同一部分的实例 — 保持 `master` 分支最新,并创建一个新的分支来开始新的开发。
|
||||||
|
|
||||||
|
### 更新你的主分支
|
||||||
|
|
||||||
|
保持你的 `master` 更新, 推荐你添加QMK Firmware仓库作为Git的远程仓库,想这么做的话, 你可以打开你的Git命令行接口然后输入:
|
||||||
|
|
||||||
|
```
|
||||||
|
git remote add upstream https://github.com/qmk/qmk_firmware.git
|
||||||
|
```
|
||||||
|
|
||||||
|
运行 `git remote -v`, 来确定这个仓库已经添加,以下是回显:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git remote -v
|
||||||
|
origin https://github.com/<your_username>/qmk_firmware.git (fetch)
|
||||||
|
origin https://github.com/<your_username>/qmk_firmware.git (push)
|
||||||
|
upstream https://github.com/qmk/qmk_firmware.git (fetch)
|
||||||
|
upstream https://github.com/qmk/qmk_firmware.git (push)
|
||||||
|
```
|
||||||
|
|
||||||
|
现在添加已完成,你可以用`git fetch upstream`来检查仓库的更新. 这会检索branches 和 tags — 统称为"refs" — 从QMK仓库, 也就是 `upstream`。我们可以比较我们的分叉和QMK的 `origin` 数据的不同。
|
||||||
|
|
||||||
|
要更新你的分叉的主分支,请运行以下命令,在每行之后按Enter键:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout master
|
||||||
|
git fetch upstream
|
||||||
|
git pull upstream master
|
||||||
|
git push origin master
|
||||||
|
```
|
||||||
|
|
||||||
|
这回切换到你的`master` 分支, 检索你QMK仓库的refs, 下载当前QMK `master` 分支到你的电脑, 并上传到你的分叉.
|
||||||
|
|
||||||
|
### 做改动
|
||||||
|
|
||||||
|
你可以输入以下命令来创建一个新的分支来做改动:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout -b dev_branch
|
||||||
|
git push --set-upstream origin dev_branch
|
||||||
|
```
|
||||||
|
|
||||||
|
这回建立一个叫做 `dev_branch`的新分支, 检查一下, 然后想你的分叉保存分支. 使用 `--set-upstream` 参数来告诉git使用你的分叉并且当每次你对你的分支用`git push` 或 `git pull`时要使用`dev_branch`。 它仅需要在第一次push的时候使用;然后你就可以很安全的用 `git push` 或 `git pull`, 并不需要其他参数了。
|
||||||
|
|
||||||
|
!> 使用 `git push`, 你可以用 `-u` 来代替 `--set-upstream` — `-u`是`--set-upstream`的简写。
|
||||||
|
|
||||||
|
您可以将您的分支命名为您想要的任何名称,但建议将其命名为与您要进行的更改相关的内容。
|
||||||
|
|
||||||
|
默认情况下 `git checkout -b` 在已经检出的分支上建立新的分支。您可以将新的分支建立在未检出的现有分支的基础上,方法是将现有分支的名称添加到命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout -b dev_branch master
|
||||||
|
```
|
||||||
|
|
||||||
|
现在您已经有了一个开发分支,那么就打开您的文本编辑器并进行您需要做的任何更改。建议对您的分支进行许多小的提交;这样,任何引起问题的更改都可以在需要时更容易地跟踪和撤消。要进行更改,编辑并保存任何需要更新的文件,请将它们添加到Git的 *staging area* ,然后将它们提交到您的分支:
|
||||||
|
|
||||||
|
```
|
||||||
|
git add path/to/updated_file
|
||||||
|
git commit -m "My commit message."
|
||||||
|
```
|
||||||
|
|
||||||
|
` git add`添加已更改到Git的*临时区域*也就是Git的“加载区域”的文件。其中包含使用 `git commit` 命令 *提交* 的并已经保存到仓库的更改。建议您使用描述性的提交消息,这样您就可以一目了然地知道更改了什么。
|
||||||
|
|
||||||
|
!> 如果你修改了很多文件,但所有的文件都是同一个更改的一部分,你可以用 `git add .` 来添加当前目录中所有已更改的文件而不是单独添加每个文件.
|
||||||
|
|
||||||
|
### 发布更改
|
||||||
|
|
||||||
|
最后一步是将更改推送到您的分叉。 输入 `git push`来推送. 现在Git将`dev_branch`的当前状态发布到您的分叉。
|
||||||
|
|
||||||
|
|
||||||
|
## 解决合并冲突
|
||||||
|
|
||||||
|
有时,当您在某个分支中的工作需要很长时间才能完成时,其他人所做的更改与您在打开pull request时对该分支所做的更改相冲突。这称为*rebase* 即合并冲突,当多个人编辑同一文件的同一部分时会发生这种情况。
|
||||||
|
|
||||||
|
### 重新调整您的更改
|
||||||
|
|
||||||
|
*rebase*是Git的一种方法,它获取在某一点上应用的更改,撤销它们,然后将相同的更改应用到另一点。在合并冲突的情况下,您可以重新设置您的分支以获取在创建分支时和当前时间之间的那段时间所做的更改。
|
||||||
|
|
||||||
|
运行以下命令来开始:
|
||||||
|
|
||||||
|
```
|
||||||
|
git fetch upstream
|
||||||
|
git rev-list --left-right --count HEAD...upstream/master
|
||||||
|
```
|
||||||
|
|
||||||
|
这里的`git rev-list` 命令返回当前分支和qmk的主分支之间不同的提交数。我们首先运行`git fetch`,以确保我们有代表upstream仓库的refs。 `git rev-list` 命令的回显有两个数字:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git rev-list --left-right --count HEAD...upstream/master
|
||||||
|
7 35
|
||||||
|
```
|
||||||
|
|
||||||
|
第一个数字表示自创建以来当前分支的提交数, 第二个数字是自创建当前分支以来对 `upstream/master` 进行的提交数, 因此, 当前分支中未记录变动。
|
||||||
|
|
||||||
|
既然知道当前分支和upstream仓库的当前状态,我们可以开始一个rebase操作:
|
||||||
|
|
||||||
|
```
|
||||||
|
git rebase upstream/master
|
||||||
|
```
|
||||||
|
|
||||||
|
这就是让Git撤销当前分支上的提交,然后根据QMK的主分支重新应用它们。
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git rebase upstream/master
|
||||||
|
First, rewinding head to replay your work on top of it...
|
||||||
|
Applying: Commit #1
|
||||||
|
Using index info to reconstruct a base tree...
|
||||||
|
M conflicting_file_1.txt
|
||||||
|
Falling back to patching base and 3-way merge...
|
||||||
|
Auto-merging conflicting_file_1.txt
|
||||||
|
CONFLICT (content): Merge conflict in conflicting_file_1.txt
|
||||||
|
error: Failed to merge in the changes.
|
||||||
|
hint: Use 'git am --show-current-patch' to see the failed patch
|
||||||
|
Patch failed at 0001 Commit #1
|
||||||
|
|
||||||
|
Resolve all conflicts manually, mark them as resolved with
|
||||||
|
"git add/rm <conflicted_files>", then run "git rebase --continue".
|
||||||
|
You can instead skip this commit: run "git rebase --skip".
|
||||||
|
To abort and get back to the state before "git rebase", run "git rebase --abort".
|
||||||
|
```
|
||||||
|
|
||||||
|
这告诉我们有一个合并冲突,并给出带有冲突的文件的名称。在文本编辑器中打开冲突的文件,在该文件的某个位置,您会发现如下内容:
|
||||||
|
|
||||||
|
```
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<p>For help with any issues, email us at [email protected].</p>
|
||||||
|
=======
|
||||||
|
<p>Need help? Email [email protected].</p>
|
||||||
|
>>>>>>> Commit #1
|
||||||
|
```
|
||||||
|
|
||||||
|
`<<<<<<< HEAD`行标记合并冲突的开始, `>>>>>>> Commit #1` 行标记结束, 冲突选项被 `=======`分隔。`HEAD`那端的部分来自文件的qmk master版本,标记有commit消息的部分来自当前的分支持和提交。
|
||||||
|
|
||||||
|
因为Git跟踪 *对文件的更改* 而不是直接跟踪文件的内容,所以如果Git在提交之前找不到文件中的文本,它将不知道如何编辑该文件。重新编辑文件将解决冲突。进行更改,然后保存文件。
|
||||||
|
|
||||||
|
```
|
||||||
|
<p>Need help? Email [email protected].</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
现在运行:
|
||||||
|
|
||||||
|
```
|
||||||
|
git add conflicting_file_1.txt
|
||||||
|
git rebase --continue
|
||||||
|
```
|
||||||
|
|
||||||
|
Git记录对冲突文件的更改,并继续应用来自我们的分支的提交,直到它到达末尾。
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
# 构建第一个固件
|
||||||
|
|
||||||
|
现在您已经建立了构建环境,就可以开始构建自定义固件了。对于本指南的这一部分,我们将在3个程序之间切换——文件管理器、文本编辑器和终端窗口。请保持所有3个程序打开,直到您完成并对键盘固件满意。
|
||||||
|
|
||||||
|
如果您在按照指南第一部分的操作之后关闭并重新打开了终端窗口,请不要忘记输入“cd qmk_firmware”,来使您的终端位于正确的目录。
|
||||||
|
|
||||||
|
## 导航到您的keymaps文件夹
|
||||||
|
|
||||||
|
首先导航到键盘的 `keymaps` 文件夹.
|
||||||
|
|
||||||
|
?> 如果您使用的是MacOS或Windows,可以使用以下命令轻松地打开keymaps文件夹。
|
||||||
|
|
||||||
|
?> macOS:
|
||||||
|
|
||||||
|
open keyboards/<keyboard_folder>/keymaps
|
||||||
|
|
||||||
|
?> Windows:
|
||||||
|
|
||||||
|
start .\\keyboards\\<keyboard_folder>\\keymaps
|
||||||
|
|
||||||
|
## 创建`default` 布局副本
|
||||||
|
|
||||||
|
打开`keymaps`文件夹后,您将需要创建`default`文件夹的副本。我们强烈建议您将文件夹命名为与Github用户名相同的名称,但您也可以使用任何您想使用的名称,只要它只包含小写字母、数字和下划线字符。
|
||||||
|
|
||||||
|
要自动执行此过程,您还可以选择运行`new_keymap.sh`脚本。
|
||||||
|
|
||||||
|
导航到`qmk_firmware/util` 目录然后输入以下命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
./new_keymap.sh <keyboard path> <username>
|
||||||
|
```
|
||||||
|
|
||||||
|
例如,一个名字叫ymzcdg的用户要创建1up60hse的布局,他需要输入
|
||||||
|
|
||||||
|
```
|
||||||
|
./new_keymap.sh 1upkeyboards/1up60hse ymzcdg
|
||||||
|
```
|
||||||
|
|
||||||
|
## 在你最钟爱的文本编辑器中打开`keymap.c`
|
||||||
|
|
||||||
|
打开你的`keymap.c`. 在这个文件中,您可以找到控制键盘行为的结构。 在你的`keymap.c` 的顶部有一些让布局更易读的define和enum。在靠下的位置你会找到一行和下面这句很像的:
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
从这一行开始便是层列表。这行下面你会看到包括 `LAYOUT` 或 `KEYMAP`这两个词的几行, 从这些行开始就是层。在这一行下面是组成该特定层的键的列表。
|
||||||
|
|
||||||
|
!> 编辑您的keymap文件时,注意不要添加或删除任何逗号。如果这样做,您将阻止您的固件编译,并且您可能不容易找出多余的或缺少的逗号在哪里。
|
||||||
|
|
||||||
|
## 根据您的喜好自定义布局
|
||||||
|
|
||||||
|
如何完成这一步骤完全取决于您。改变一直困扰着你的问题,或者完全重做所有的事情。如果您不需要全部图层,可以删除图层,或者将图层总数增加到32个。查看以下文档,了解可以在此处定义的内容:
|
||||||
|
|
||||||
|
* [键码](keycodes.md)
|
||||||
|
* [特性](features.md)
|
||||||
|
* [问题与解答](faq.md)
|
||||||
|
|
||||||
|
?> 当你明白布局是怎么工作时,您也要让每次改变尽可能小。一次改变很大在调试时找出问题会十分困难。
|
||||||
|
|
||||||
|
## 构建你的固件
|
||||||
|
|
||||||
|
完成对布局的更改后,您就要构建固件了。为此,请返回终端窗口并运行build命令:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>
|
||||||
|
|
||||||
|
例如,如果您的keymap名为“xyverz”,并且您正在为rev5 planck构建一个keymap,那么您将使用此命令:
|
||||||
|
|
||||||
|
make planck/rev5:xyverz
|
||||||
|
|
||||||
|
在编译过程中,你将看到屏幕上有很多输出,通知您正在编译哪些文件他应该以与下文类似的输出结束:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev5_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
|
||||||
|
Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of planck_rev5_xyverz.hex [OK]
|
||||||
|
* File size is fine - 18392/28672
|
||||||
|
```
|
||||||
|
|
||||||
|
## 刷新你的固件
|
||||||
|
|
||||||
|
请移步 [Flashing Firmware](newbs_flashing.md) 来继续。
|
||||||
@@ -0,0 +1,307 @@
|
|||||||
|
# 刷新你的键盘
|
||||||
|
|
||||||
|
现在您已经构建了一个自定义固件文件,那么您就需要刷新键盘了。
|
||||||
|
|
||||||
|
## 用QMK工具箱刷新键盘
|
||||||
|
|
||||||
|
刷新键盘的最简单方法是使用[QMK 工具箱](https://github.com/qmk/qmk_toolbox/releases).
|
||||||
|
|
||||||
|
但是,QMK工具箱目前仅适用于Windows和MacOS。如果您使用的是Linux(或者只是希望从命令行刷新固件),则必须使用 [方法概述](newbs_flashing.md#flash-your-keyboard-from-the-command-line).
|
||||||
|
|
||||||
|
### 将文件加载到QMK工具箱中
|
||||||
|
|
||||||
|
首先打开QMK工具箱应用程序。您将要在访达或资源管理器中找到固件文件。您的键盘固件可能是两种格式之一`.hex`或`.bin`。qmk会尝试将键盘的相应文件复制到“qmk_firmware”根目录中。
|
||||||
|
|
||||||
|
?> 如果您在Windows或MacOS上,可以使用以下命令轻松地在资源管理器或访达中打开当前固件文件夹。
|
||||||
|
|
||||||
|
?> Windows:
|
||||||
|
|
||||||
|
start .
|
||||||
|
|
||||||
|
?> macOS:
|
||||||
|
|
||||||
|
open .
|
||||||
|
|
||||||
|
固件文件始终遵循此命名格式:
|
||||||
|
|
||||||
|
<keyboard_name>_<keymap_name>.{bin,hex}
|
||||||
|
|
||||||
|
例如,使用 `default` 布局的 `plank/rev5` 将使用以下名字:
|
||||||
|
|
||||||
|
planck_rev5_default.hex
|
||||||
|
|
||||||
|
找到固件文件后,将其拖到QMK工具箱中的“Local file”框中,或单击“Open”并导航到固件文件的存储位置。
|
||||||
|
|
||||||
|
### 将键盘置于DFU(Bootloader)模式
|
||||||
|
|
||||||
|
要刷新自定义固件,您必须将键盘置于特殊的刷新模式。在此模式下,您将无法键入或使用键盘。在写入固件时,不要拔下键盘插头或以其他方式中断刷新过程,这一点非常重要。
|
||||||
|
|
||||||
|
不同的键盘有不同的方式进入这种特殊模式。如果您的键盘当前运行的是QMK或TMK,而您没有得到特定的指示,请按顺序尝试以下操作:
|
||||||
|
|
||||||
|
* 按住两个shift键并按 `Pause`
|
||||||
|
* 按住两个shift键并按 `B`
|
||||||
|
* 拔下键盘插头, 同时按住空格键和 `B` , 插上键盘然后等一会再放开按键
|
||||||
|
* 按下PCB底部的 `RESET` 物理键
|
||||||
|
* 找到PCB上标记有 `BOOT0` 或 `RESET`的金属点, 在插入PCB的同时短接它们
|
||||||
|
|
||||||
|
成功后,您将在QMK工具箱中看到类似以下内容的消息:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
|
||||||
|
*** DFU device connected
|
||||||
|
```
|
||||||
|
|
||||||
|
### 刷新你的键盘
|
||||||
|
|
||||||
|
单击QMK工具箱中的 `Flash` 按钮。您将看到类似以下内容的输出:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
|
||||||
|
*** DFU device connected
|
||||||
|
*** Attempting to flash, please don't remove device
|
||||||
|
>>> dfu-programmer atmega32u4 erase --force
|
||||||
|
Erasing flash... Success
|
||||||
|
Checking memory from 0x0 to 0x6FFF... Empty.
|
||||||
|
>>> dfu-programmer atmega32u4 flash /Users/skully/qmk_firmware/clueboard_66_hotswap_gen1_skully.hex
|
||||||
|
Checking memory from 0x0 to 0x55FF... Empty.
|
||||||
|
0% 100% Programming 0x5600 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
0% 100% Reading 0x7000 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
Validating... Success
|
||||||
|
0x5600 bytes written into 0x7000 bytes memory (76.79%).
|
||||||
|
>>> dfu-programmer atmega32u4 reset
|
||||||
|
|
||||||
|
*** DFU device disconnected
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap connected -- 0xC1ED:0x2390
|
||||||
|
```
|
||||||
|
|
||||||
|
## 使用命令行刷新键盘
|
||||||
|
|
||||||
|
首先,您需要知道您的键盘使用的是哪个bootloader。通常是以下四个常见的bootloader。Pro-Micro 和 clones 使用 CATERINA, Teensy 使用 Halfkay, OLKB 键盘使用 QMK-DFU, 其他的atmega32u4芯片使用DFU。
|
||||||
|
|
||||||
|
您可以在以下文章中了解更多关于bootloader[刷新指令和Bootloader信息](flashing.md)。
|
||||||
|
|
||||||
|
如果您知道正在使用的bootloader是哪种,那么在编译固件时,可以向“make”命令里添加一些额外参数,以自动执行刷新过程。
|
||||||
|
|
||||||
|
### DFU
|
||||||
|
|
||||||
|
对于DFU引导加载程序,当您准备好编译和刷新固件时,打开终端窗口并运行构建命令:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:dfu
|
||||||
|
|
||||||
|
例如,如果您的布局名为“xyverz”,并且您正在为rev5 planck构建一个布局,那么您可以使用此命令:
|
||||||
|
|
||||||
|
make planck/rev5:xyverz:dfu
|
||||||
|
|
||||||
|
编译完成后,应输出以下内容:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev5_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
|
||||||
|
Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of planck_rev5_xyverz.hex
|
||||||
|
* File size is fine - 18574/28672
|
||||||
|
```
|
||||||
|
|
||||||
|
到了这个时候, 构建脚本将每隔5秒查找一次DFU。它将重复以下操作,直到找到设备或将其取消。
|
||||||
|
|
||||||
|
dfu-programmer: no device present.
|
||||||
|
Error: Bootloader not found. Trying again in 5s.
|
||||||
|
|
||||||
|
一旦出现以上回显,您将需要重置控制器。然后,它应该显示与以下类似的输出:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Attempting to flash, please don't remove device
|
||||||
|
>>> dfu-programmer atmega32u4 erase --force
|
||||||
|
Erasing flash... Success
|
||||||
|
Checking memory from 0x0 to 0x6FFF... Empty.
|
||||||
|
>>> dfu-programmer atmega32u4 flash /Users/skully/qmk_firmware/clueboard_66_hotswap_gen1_skully.hex
|
||||||
|
Checking memory from 0x0 to 0x55FF... Empty.
|
||||||
|
0% 100% Programming 0x5600 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
0% 100% Reading 0x7000 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
Validating... Success
|
||||||
|
0x5600 bytes written into 0x7000 bytes memory (76.79%).
|
||||||
|
>>> dfu-programmer atmega32u4 reset
|
||||||
|
```
|
||||||
|
|
||||||
|
如果您对此有任何问题,您可能需要这样做:
|
||||||
|
|
||||||
|
sudo make <my_keyboard>:<my_keymap>:dfu
|
||||||
|
|
||||||
|
#### DFU命令
|
||||||
|
|
||||||
|
有许多DFU命令可用于将固件下载到DFU设备:
|
||||||
|
|
||||||
|
* `:dfu` - 这是正常选项,等待DFU设备可用,然后刷新固件。这将每隔5秒检查一次,以查看是否出现了DFU设备。
|
||||||
|
* `:dfu-ee` - 这将刷新一个`eep`文件,而不是普通的十六进制文件。这很不常见。
|
||||||
|
* `:dfu-split-left` - 这将刷新正常固件,就像默认选项 (`:dfu`)一样. 但是,这也会刷新“左侧”EEPROM文件,用于分割键盘。 _这是基于Elite C的键盘的推荐选择。_
|
||||||
|
* `:dfu-split-right` - 这将刷新正常固件,就像默认选项(`:dfu`). 但是,这也会刷新“右侧”EEPROM文件,用于分割键盘。 _这是基于Elite C的键盘的推荐选择。_
|
||||||
|
|
||||||
|
|
||||||
|
### Caterina
|
||||||
|
|
||||||
|
对于Arduino板以及其克隆版来说(比如SparkFun和ProMicro), 准备好编译和刷新固件后,打开终端窗口并运行构建命令:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:avrdude
|
||||||
|
|
||||||
|
比如, 你的布局叫"xyverz"你要创建一个rev2 Lets Split的布局,你要用以下命令:
|
||||||
|
|
||||||
|
make lets_split/rev2:xyverz:avrdude
|
||||||
|
|
||||||
|
固件完成编译后,它将输出类似以下的内容:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/lets_split_rev2_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/lets_split_rev2_xyverz.hex [OK]
|
||||||
|
Checking file size of lets_split_rev2_xyverz.hex [OK]
|
||||||
|
* File size is fine - 27938/28672
|
||||||
|
Detecting USB port, reset your controller now..............
|
||||||
|
```
|
||||||
|
|
||||||
|
此时,复位,然后脚本将检测bootloader,然后刷新固件。输出应该像这样:
|
||||||
|
|
||||||
|
```
|
||||||
|
Detected controller on USB port at /dev/ttyS15
|
||||||
|
|
||||||
|
Connecting to programmer: .
|
||||||
|
Found programmer: Id = "CATERIN"; type = S
|
||||||
|
Software Version = 1.0; No Hardware Version given.
|
||||||
|
Programmer supports auto addr increment.
|
||||||
|
Programmer supports buffered memory access with buffersize=128 bytes.
|
||||||
|
|
||||||
|
Programmer supports the following devices:
|
||||||
|
Device code: 0x44
|
||||||
|
|
||||||
|
avrdude.exe: AVR device initialized and ready to accept instructions
|
||||||
|
|
||||||
|
Reading | ################################################## | 100% 0.00s
|
||||||
|
|
||||||
|
avrdude.exe: Device signature = 0x1e9587 (probably m32u4)
|
||||||
|
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
|
||||||
|
To disable this feature, specify the -D option.
|
||||||
|
avrdude.exe: erasing chip
|
||||||
|
avrdude.exe: reading input file "./.build/lets_split_rev2_xyverz.hex"
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
|
||||||
|
avrdude.exe: writing flash (27938 bytes):
|
||||||
|
|
||||||
|
Writing | ################################################## | 100% 2.40s
|
||||||
|
|
||||||
|
avrdude.exe: 27938 bytes of flash written
|
||||||
|
avrdude.exe: verifying flash memory against ./.build/lets_split_rev2_xyverz.hex:
|
||||||
|
avrdude.exe: load data flash data from input file ./.build/lets_split_rev2_xyverz.hex:
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex contains 27938 bytes
|
||||||
|
avrdude.exe: reading on-chip flash data:
|
||||||
|
|
||||||
|
Reading | ################################################## | 100% 0.43s
|
||||||
|
|
||||||
|
avrdude.exe: verifying ...
|
||||||
|
avrdude.exe: 27938 bytes of flash verified
|
||||||
|
|
||||||
|
avrdude.exe: safemode: Fuses OK (E:CB, H:D8, L:FF)
|
||||||
|
|
||||||
|
avrdude.exe done. Thank you.
|
||||||
|
```
|
||||||
|
如果您对此有任何问题,您可能需要这样做:
|
||||||
|
|
||||||
|
sudo make <my_keyboard>:<my_keymap>:avrdude
|
||||||
|
|
||||||
|
|
||||||
|
此外,如果要刷新多个板,请使用以下命令:
|
||||||
|
|
||||||
|
make <keyboard>:<keymap>:avrdude-loop
|
||||||
|
|
||||||
|
当你完成了刷新后,你需要按下ctrl+c或者其他正确的按键来让你的操作系统终止循环。
|
||||||
|
|
||||||
|
|
||||||
|
## HalfKay
|
||||||
|
|
||||||
|
对于PJRC设备(Teensy),当您准备好编译和刷新固件时,打开终端窗口并运行构建命令:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:teensy
|
||||||
|
|
||||||
|
比如, 如果你的布局叫做"xyverz"你想创建Ergodox or Ergodox EZ的布局,你要使用以下命令:
|
||||||
|
|
||||||
|
make erdogox_ez:xyverz:teensy
|
||||||
|
|
||||||
|
固件完成编译后,它将输出如下内容:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/ergodox_ez_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/ergodox_ez_xyverz.hex [OK]
|
||||||
|
Checking file size of ergodox_ez_xyverz.hex [OK]
|
||||||
|
* File size is fine - 25584/32256
|
||||||
|
Teensy Loader, Command Line, Version 2.1
|
||||||
|
Read "./.build/ergodox_ez_xyverz.hex": 25584 bytes, 79.3% usage
|
||||||
|
Waiting for Teensy device...
|
||||||
|
(hint: press the reset button)
|
||||||
|
```
|
||||||
|
|
||||||
|
此时,复位键盘。完成后,您将看到如下输出:
|
||||||
|
|
||||||
|
```
|
||||||
|
Found HalfKay Bootloader
|
||||||
|
Read "./.build/ergodox_ez_xyverz.hex": 28532 bytes, 88.5% usage
|
||||||
|
Programming............................................................................................................................................................................
|
||||||
|
...................................................
|
||||||
|
Booting
|
||||||
|
```
|
||||||
|
|
||||||
|
## STM32 (ARM)
|
||||||
|
|
||||||
|
对于大多数ARM板(包括Proton C、Planck Rev 6和Preonic Rev 3),当您准备好编译和刷新固件时,打开终端窗口并运行构建命令:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:dfu-util
|
||||||
|
|
||||||
|
例如,如果您的keymap被命名为“xyverz”,并且您正在为Planck Revision 6键盘构建一个布局,那么您需要使用以下命令,然后将键盘重新启动到bootloader(在完成编译之前):
|
||||||
|
|
||||||
|
make planck/rev6:xyverz:dfu-util
|
||||||
|
|
||||||
|
固件完成编译后,它将输出如下内容:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev6_xyverz.elf [OK]
|
||||||
|
Creating binary load file for flashing: .build/planck_rev6_xyverz.bin [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev6_xyverz.hex [OK]
|
||||||
|
|
||||||
|
Size after:
|
||||||
|
text data bss dec hex filename
|
||||||
|
0 41820 0 41820 a35c .build/planck_rev6_xyverz.hex
|
||||||
|
|
||||||
|
Copying planck_rev6_xyverz.bin to qmk_firmware folder [OK]
|
||||||
|
dfu-util 0.9
|
||||||
|
|
||||||
|
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
|
||||||
|
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
|
||||||
|
This program is Free Software and has ABSOLUTELY NO WARRANTY
|
||||||
|
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
|
||||||
|
|
||||||
|
Invalid DFU suffix signature
|
||||||
|
A valid DFU suffix will be required in a future dfu-util release!!!
|
||||||
|
Opening DFU capable USB device...
|
||||||
|
ID 0483:df11
|
||||||
|
Run-time device DFU version 011a
|
||||||
|
Claiming USB DFU Interface...
|
||||||
|
Setting Alternate Setting #0 ...
|
||||||
|
Determining device status: state = dfuERROR, status = 10
|
||||||
|
dfuERROR, clearing status
|
||||||
|
Determining device status: state = dfuIDLE, status = 0
|
||||||
|
dfuIDLE, continuing
|
||||||
|
DFU mode device DFU version 011a
|
||||||
|
Device returned transfer size 2048
|
||||||
|
DfuSe interface name: "Internal Flash "
|
||||||
|
Downloading to address = 0x08000000, size = 41824
|
||||||
|
Download [=========================] 100% 41824 bytes
|
||||||
|
Download done.
|
||||||
|
File downloaded successfully
|
||||||
|
Transitioning to dfuMANIFEST state
|
||||||
|
```
|
||||||
|
|
||||||
|
## 试一试吧!
|
||||||
|
|
||||||
|
恭喜您! 您的自定义固件已经刷写到您的键盘
|
||||||
|
|
||||||
|
试一试,确保一切按你想的方式进行。我们写了[测试和调试](newbs_testing_debugging.md)来完善新手引导。 因此,请前往那里了解如何排除自定义功能的故障。
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
# 介绍
|
||||||
|
|
||||||
|
你的电脑键盘里面包含一个处理器, 这个处理器和你电脑里面的不太一样。这个处理器负责运行一些特殊的软件,这些软件可以监测按钮按下并将按钮处于按下还是释放状态的数据发送出去。QMK就是这样一种软件,即监测按钮被按下并发送这样的信息到作为主机的计算机上。当你创建了你的布局, 你也就创建了你的键盘运行的的可执行程序。
|
||||||
|
|
||||||
|
QMK试图通过使简单的事情变得更简单,使使不可能成为可能来把大量的权力交给你。你不需要懂如何通过程序创建强大的布局——你只需要遵循简单的语法规则。
|
||||||
|
|
||||||
|
# 新手上路
|
||||||
|
|
||||||
|
在你能创建布局前,你要安装一些软件来建立你的开发环境。无论你想编译多少固件,这个操作都只需要进行一次。
|
||||||
|
|
||||||
|
如果您更喜欢图形化界面, 请考虑使用在线工具[QMK配置器](https://config.qmk.fm)。 请参考 [使用在线GUI构建您的第一个固件](newbs_building_firmware_configurator.md)。
|
||||||
|
|
||||||
|
|
||||||
|
## 下载软件
|
||||||
|
|
||||||
|
### 文本编辑器
|
||||||
|
|
||||||
|
你需要一个可以编辑 **纯文本** 文件的程序。在Windows上你可以用Notepad, 在Linux上使用gedit,这两个都是简单又实用的文本编辑工具。 在macOS上, 请小心使用 “文本编辑” 这个默认软件: 如果你不明确的选择_格式_菜单中的 _制作纯文本_ 的话文本将不会被保存为纯文本。
|
||||||
|
|
||||||
|
你也可以下载并安装一个专用编辑器 [Sublime Text](https://www.sublimetext.com/) 或 [VS Code](https://code.visualstudio.com/)。 这大概是跨平台的最好方法了, 这些编辑器是专门为了编辑代码设计的。
|
||||||
|
|
||||||
|
?>搞不清用哪种编辑器? Laurence Bradford 写了篇关于编辑器选择的文章 [a great introduction](https://learntocodewith.me/programming/basics/text-editors/)。
|
||||||
|
|
||||||
|
### QMK 工具箱
|
||||||
|
|
||||||
|
QMK 工具箱 是一种可选的Windows和macOS下的图形化工具,它可以对你的定制键盘进行编程和调试。你可能会发现它就是你能简单的刷新你的键盘固件并查看调试信息的稀世珍宝。
|
||||||
|
|
||||||
|
[在这里下载最新发布版本](https://github.com/qmk/qmk_toolbox/releases/latest)
|
||||||
|
|
||||||
|
* Windows用户: `qmk_toolbox.exe` (绿色版) 或 `qmk_toolbox_install.exe` (安装版)
|
||||||
|
* macOS用户: `QMK.Toolbox.app.zip` (绿色版) or `QMK.Toolbox.pkg` (安装版)
|
||||||
|
|
||||||
|
## 建立你的环境
|
||||||
|
|
||||||
|
我们为了使QMK环境变得更容易建立已竭尽所能。你只需要准备Linux 或 Unix 环境, 然后让QMK安装剩余部分。
|
||||||
|
|
||||||
|
?> 如果你从未使用过Linux/Unix的命令行,有一些你需要学习的基础概念和命令,以下资料将教会您使用QMK环境的必要能力:<br>
|
||||||
|
[必会Linux命令](https://www.guru99.com/must-know-linux-commands.html)<br>
|
||||||
|
[一些基本的Unix命令](https://www.tjhsst.edu/~dhyatt/superap/unixcmd.html)
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
你需要安装MSYS2和Git.
|
||||||
|
|
||||||
|
* 按照以下安装说明进行操作[MSYS2 主页](http://www.msys2.org)。
|
||||||
|
* 关闭所有打开的MSYS2终端并打开新的MSYS2 MinGW 64-bit终端。
|
||||||
|
* 使用以下命令安装Git: `pacman -S git`。
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
|
||||||
|
你需要安装Homebrew。按照以下说明进行操作 [Homebrew 主页](https://brew.sh)。
|
||||||
|
|
||||||
|
在Homebrew安装完成后, 继续 _同步QMK工程_. 这一步你将会通过运行一个脚本安装其他包。
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
|
||||||
|
你将需要安装Git.你很有可能已经安装,但若你尚未安装,可以使用以下命令进行安装:
|
||||||
|
|
||||||
|
* Debian / Ubuntu / Devuan: `apt-get install git`
|
||||||
|
* Fedora / Red Hat / CentOS: `yum install git`
|
||||||
|
* Arch: `pacman -S git`
|
||||||
|
|
||||||
|
?> 无论你使用哪种平台,Docker都可以是你的选择[点这里进一步了解](getting_started_build_tools.md#docker)
|
||||||
|
|
||||||
|
## 同步QMK工程
|
||||||
|
|
||||||
|
当你建立Linux/Unix环境后,你就已经可以下载QMK了.下载时我们可以用Git来 "clone" QMK仓库. 打开一个终端或MSYS2 MinGW 窗口,在阅读剩余的指南时请保持窗口打开。在窗口里面运行以下两句命令:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone --recurse-submodules https://github.com/qmk/qmk_firmware.git
|
||||||
|
cd qmk_firmware
|
||||||
|
```
|
||||||
|
|
||||||
|
?> 如果您已经知道[如何使用GitHub](getting_started_github.md), 我们推荐您创建您自己的分支并克隆。 如果您不知道这是什么, 您完全可以忽略这句无关紧要的话。
|
||||||
|
|
||||||
|
QMK附带一个脚本,可帮助您设置剩余的所需内容.您可以通过输入此命令来运行它:
|
||||||
|
|
||||||
|
util/qmk_install.sh
|
||||||
|
|
||||||
|
## 测试你的开发环境
|
||||||
|
|
||||||
|
现在你的QMK环境已经建立完毕, 你可以为你的键盘创建固件了。开始试着创建键盘的默认固件吧。 你需要使用以下格式的命令创建固件:
|
||||||
|
|
||||||
|
make <keyboard>:default
|
||||||
|
|
||||||
|
比如, 制作一个Clueboard 66%的固件,需要用:
|
||||||
|
|
||||||
|
make clueboard/66/rev3:default
|
||||||
|
|
||||||
|
当完成后你要看到一些回显,尾部如下:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/clueboard_66_rev3_default.elf [OK]
|
||||||
|
Creating load file for flashing: .build/clueboard_66_rev3_default.hex [OK]
|
||||||
|
Copying clueboard_66_rev3_default.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of clueboard_66_rev3_default.hex [OK]
|
||||||
|
* The firmware size is fine - 26356/28672 (2316 bytes free)
|
||||||
|
```
|
||||||
|
|
||||||
|
# 创建你的布局
|
||||||
|
|
||||||
|
现在你可以创建属于你自己的布局了! 请移步 [构建你的第一个固件](newbs_building_firmware.md)来继续。
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# 学习资源
|
||||||
|
|
||||||
|
这些资源旨在让QMK社区的新成员更了解新成员文档中提供的信息。
|
||||||
|
|
||||||
|
Git 资源:
|
||||||
|
|
||||||
|
* [很好的通用教程](https://www.codecademy.com/learn/learn-git)
|
||||||
|
* [从例子中学习Git游戏](https://learngitbranching.js.org/)
|
||||||
|
* [了解有关GitHub的更多信息的Git资源](getting_started_github.md)
|
||||||
|
* [专门针对QMK的Git资源](contributing.md)
|
||||||
|
|
||||||
|
|
||||||
|
命令行资源:
|
||||||
|
|
||||||
|
* [超棒的命令行通用教程](https://www.codecademy.com/learn/learn-the-command-line)
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
# 测试和调试
|
||||||
|
|
||||||
|
使用自定义固件刷新键盘后,您就可以测试它了。如果您幸运,一切都会完美运行,但如果没有,这份文件将帮助您找出问题所在。
|
||||||
|
|
||||||
|
## 测试
|
||||||
|
|
||||||
|
测试键盘通常非常简单。按下每一个键并确保它发送的是您期望的键。甚至有一些程序可以帮助您确保没有任何键失效。
|
||||||
|
|
||||||
|
注意:这些程序不是由QMK提供或认可的。
|
||||||
|
|
||||||
|
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (仅Windows)
|
||||||
|
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (仅Mac)
|
||||||
|
* [Keyboard Tester](http://www.keyboardtester.com) (网页版)
|
||||||
|
* [Keyboard Checker](http://keyboardchecker.com) (网页版)
|
||||||
|
|
||||||
|
## 使用QMK工具箱进行调试
|
||||||
|
|
||||||
|
[QMK工具箱](https://github.com/qmk/qmk_toolbox) 将会在你的`rules.mk`中有`CONSOLE_ENABLE = yes`的时候显示你键盘发来的消息。 默认情况下,输出极为有限,不过您可以打开调试模式来增加输出信息量。使用你键盘布局中的`DEBUG`键码,使用 [命令](feature_command.md) 特性来使能调试模式, 或者向你的布局中添加以下代码。
|
||||||
|
|
||||||
|
```c
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Customise these values to desired behaviour
|
||||||
|
debug_enable=true;
|
||||||
|
debug_matrix=true;
|
||||||
|
//debug_keyboard=true;
|
||||||
|
//debug_mouse=true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
<!-- 需要修改之处:这里要添加调试回显。 -->
|
||||||
|
|
||||||
|
## 发送您自己的调试消息
|
||||||
|
|
||||||
|
有时用[custom code](custom_quantum_functions.md)发送自定义调试信息很有用. 这么做很简单. 首先在你文件头部包含`print.h`:
|
||||||
|
|
||||||
|
#include <print.h>
|
||||||
|
|
||||||
|
之后,您可以使用一些不同的打印功能:
|
||||||
|
|
||||||
|
* `print("string")`: 打印简单字符串.
|
||||||
|
* `uprintf("%s string", var)`: 打印格式化字符串
|
||||||
|
* `dprint("string")`: 仅在调试模式使能时打印简单字符串
|
||||||
|
* `dprintf("%s string", var)`: 仅在调试模式使能时打印格式化字符串
|
||||||
@@ -158,7 +158,7 @@ void inline ws2812_setled(int i, uint8_t r, uint8_t g, uint8_t b)
|
|||||||
|
|
||||||
void ws2812_setled_all (uint8_t r, uint8_t g, uint8_t b)
|
void ws2812_setled_all (uint8_t r, uint8_t g, uint8_t b)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < RGBLED_NUM; i++) {
|
for (int i = 0; i < sizeof(led)/sizeof(led[0]); i++) {
|
||||||
led[i].r = r;
|
led[i].r = r;
|
||||||
led[i].g = g;
|
led[i].g = g;
|
||||||
led[i].b = b;
|
led[i].b = b;
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#ifndef CONFIG_KEYMAP_H
|
||||||
|
#define CONFIG_KEYMAP_H
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
// Fix KC_GESC conflict with Cmd+Alt+Esc on macos
|
||||||
|
#define GRAVE_ESC_GUI_OVERRIDE
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* ,-----------------------------------------------------------------------------------------.
|
||||||
|
* | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | Shift | Z | X | C | V | B | N | M | , | . | / |Shift| Up |Delete|
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | Ctrl | Alt | Cmd | Space | Fn | Alt | Left| Down|Right|
|
||||||
|
* `-----------------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
LAYOUT_all(
|
||||||
|
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSPC,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DELETE,
|
||||||
|
KC_LCTL, KC_LALT, KC_LGUI, KC_NO, KC_SPC, KC_NO, MO(1), KC_RALT, KC_LEFT, KC_DOWN, KC_RIGHT),
|
||||||
|
|
||||||
|
/* ,-----------------------------------------------------------------------------------------.
|
||||||
|
* | ` ~ | BR- | BR+ | | | | |PREV |PLAY |NEXT |MUTE | V- | V+ | Delete |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | | | | Up | | | | | 0 | 1 | 2 | 3 | | RESET |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | | | Left| Down|Right| | | | | 4 | 5 | 6 | |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | | | | | | | | | | 7 | 8 | 9 | | |
|
||||||
|
* |-----------------------------------------------------------------------------------------+
|
||||||
|
* | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
LAYOUT_all(
|
||||||
|
KC_GRV , KC_SCROLLLOCK, KC_PAUSE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_NO, KC_DEL,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_0, KC_1, KC_2, KC_3, KC_TRNS, RESET,
|
||||||
|
KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_4, KC_5, KC_6, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_7, KC_8, KC_9, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
};
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# MacOS 64 keymap
|
||||||
|
|
||||||
|
This is a keymap of DZ60 configured with 64 keys for MacOS. It refers the keymap of [macos_arrow](../macos_arrow/readme.md).
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
|
||||||
|
1. Follow the [introduction](https://docs.qmk.fm/#/) to compile the keymap
|
||||||
|
2. Download QMK Toolbox from [here](https://github.com/qmk/qmk_toolbox/releases)
|
||||||
|
3. Insert the dz60 keyboard while pressing ```Space+b``` (default)
|
||||||
|
4. Flash the firmware
|
||||||
|
|
||||||
|
More details about flashing firmware please check the [documentation](https://docs.qmk.fm/#/) of QMK.
|
||||||
|
|
||||||
|
## Base Layer
|
||||||
|
|
||||||
|
```
|
||||||
|
,-----------------------------------------------------------------------------------------.
|
||||||
|
| Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| Shift | Z | X | C | V | B | N | M | , | . | / |Shift| Up |Delete|
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| Ctrl | Alt | Cmd | Space | Fn | Alt | Left| Down|Right|
|
||||||
|
`-----------------------------------------------------------------------------------------'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fn Layer
|
||||||
|
|
||||||
|
```
|
||||||
|
,-----------------------------------------------------------------------------------------.
|
||||||
|
| ` ~ | BR- | BR+ | | | | |PREV |PLAY |NEXT |MUTE | V- | V+ | Delete |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| | | | Up | | | | | 0 | 1 | 2 | 3 | | RESET |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| | | Left| Down|Right| | | | | 4 | 5 | 6 | |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| | | | | | | | | | 7 | 8 | 9 | | |
|
||||||
|
|-----------------------------------------------------------------------------------------+
|
||||||
|
| | | | | | | | | |
|
||||||
|
`-----------------------------------------------------------------------------------------'
|
||||||
|
|
||||||
|
```
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
BACKLIGHT_ENABLE = no
|
||||||
|
RGBLIGHT_ENABLE = no
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#pragma once
|
||||||
|
#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
|
||||||
|
|
||||||
|
#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 RGB_MATRIX_MAXIMUM_BRIGHTNESS 180
|
||||||
|
|
||||||
|
#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
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
#include "dz65rgb.h"
|
||||||
|
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||||
|
{0, C2_1, C3_1, C4_1}, // LA0
|
||||||
|
{0, C1_1, C3_2, C4_2}, // LA1
|
||||||
|
{0, C1_2, C2_2, C4_3}, // LA2
|
||||||
|
{0, C1_3, C2_3, C3_3}, // LA3
|
||||||
|
{0, C1_4, C2_4, C3_4}, // LA4
|
||||||
|
{0, C1_5, C2_5, C3_5}, // LA5
|
||||||
|
{0, C1_6, C2_6, C3_6}, // LA6
|
||||||
|
{0, C1_7, C2_7, C3_7}, // LA7
|
||||||
|
{0, C1_8, C2_8, C3_8}, // LA8
|
||||||
|
{0, C9_1, C8_1, C7_1}, // LA9
|
||||||
|
{0, C9_2, C8_2, C7_2}, // LA10
|
||||||
|
{0, C9_3, C8_3, C7_3}, // LA11
|
||||||
|
{0, C9_4, C8_4, C7_4}, // LA12
|
||||||
|
{0, C9_5, C8_5, C7_5}, // LA13
|
||||||
|
{0, C9_6, C8_6, C7_6}, // LA14
|
||||||
|
{0, C9_7, C8_7, C6_6}, // LA15
|
||||||
|
{0, C9_8, C7_7, C6_7}, // LA16
|
||||||
|
{0, C8_8, C7_8, C6_8}, // LA17
|
||||||
|
{0, C2_9, C3_9, C4_9}, // LB0
|
||||||
|
{0, C1_9, C3_10, C4_10}, // LB1
|
||||||
|
{0, C1_10, C2_10, C4_11}, // LB2
|
||||||
|
{0, C1_11, C2_11, C3_11}, // LB3
|
||||||
|
//{0, C1_12, C2_12, C3_12}, // LB4
|
||||||
|
{0, C1_13, C2_13, C3_13}, // LB5
|
||||||
|
{0, C1_14, C2_14, C3_14}, // LB6
|
||||||
|
{0, C1_15, C2_15, C3_15}, // LB7
|
||||||
|
{0, C1_16, C2_16, C3_16}, // LB8
|
||||||
|
{0, C9_9, C8_9, C7_9}, // LB9
|
||||||
|
{0, C9_10, C8_10, C7_10}, // LB10
|
||||||
|
{0, C9_11, C8_11, C7_11}, // LB11
|
||||||
|
{0, C9_12, C8_12, C7_12}, // LB12
|
||||||
|
{0, C9_13, C8_13, C7_13}, // LB13
|
||||||
|
{0, C9_14, C8_14, C7_14}, // LB14
|
||||||
|
{0, C9_15, C8_15, C6_14}, // LB15
|
||||||
|
{0, C9_16, C7_15, C6_15}, // LB16
|
||||||
|
{0, C8_16, C7_16, C6_16}, // LB17
|
||||||
|
{1, C2_1, C3_1, C4_1}, // LC0
|
||||||
|
{1, C1_1, C3_2, C4_2}, // LC1
|
||||||
|
{1, C1_2, C2_2, C4_3}, // LC2
|
||||||
|
{1, C1_3, C2_3, C3_3}, // LC3
|
||||||
|
{1, C1_4, C2_4, C3_4}, // LC4
|
||||||
|
{1, C1_5, C2_5, C3_5}, // LC5
|
||||||
|
//{1, C1_6, C2_6, C3_6}, // LC6
|
||||||
|
{1, C1_7, C2_7, C3_7}, // LC7
|
||||||
|
{1, C1_8, C2_8, C3_8}, // LC8
|
||||||
|
{1, C9_1, C8_1, C7_1}, // LC9
|
||||||
|
{1, C9_2, C8_2, C7_2}, // LC10
|
||||||
|
{1, C9_3, C8_3, C7_3}, // LC11
|
||||||
|
{1, C9_4, C8_4, C7_4}, // LC12
|
||||||
|
{1, C9_5, C8_5, C7_5}, // LC13
|
||||||
|
{1, C9_6, C8_6, C7_6}, // LC14
|
||||||
|
//{1, C9_7, C8_7, C6_6}, // LC15
|
||||||
|
{1, C9_8, C7_7, C6_7}, // LC16
|
||||||
|
{1, C8_8, C7_8, C6_8}, // LC17
|
||||||
|
{1, C2_9, C3_9, C4_9}, // LD0
|
||||||
|
{1, C1_9, C3_10, C4_10}, // LD1
|
||||||
|
{1, C1_10, C2_10, C4_11}, // LD2
|
||||||
|
{1, C1_11, C2_11, C3_11}, // LD3
|
||||||
|
{1, C1_12, C2_12, C3_12}, // LD4
|
||||||
|
{1, C1_13, C2_13, C3_13}, // LD5
|
||||||
|
{1, C1_14, C2_14, C3_14}, // LD6
|
||||||
|
{1, C1_15, C2_15, C3_15}, // LD7
|
||||||
|
{1, C1_16, C2_16, C3_16}, // LD8
|
||||||
|
{1, C9_9, C8_9, C7_9}, // LD9
|
||||||
|
{1, C9_10, C8_10, C7_10}, // LD10
|
||||||
|
{1, C9_11, C8_11, C7_11}, // LD11
|
||||||
|
{1, C9_12, C8_12, C7_12}, // LD12
|
||||||
|
//{1, C9_13, C8_13, C7_13}, // LD13
|
||||||
|
{1, C9_14, C8_14, C7_14}, // LD14
|
||||||
|
{1, C9_15, C8_15, C6_14}, // LD15
|
||||||
|
{1, C9_16, C7_15, C6_15}, // LD16
|
||||||
|
{1, C8_16, C7_16, C6_16}, // LD17
|
||||||
|
};
|
||||||
|
rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
|
||||||
|
{{1|(7<<4)}, {16*7, 16}, 4},
|
||||||
|
{{1|(6<<4)}, {16*6, 16}, 4},
|
||||||
|
{{1|(5<<4)}, {16*5, 16}, 4},
|
||||||
|
{{1|(4<<4)}, {16*4, 16}, 4},
|
||||||
|
{{1|(3<<4)}, {16*3, 16}, 4},
|
||||||
|
{{1|(2<<4)}, {16*2, 16}, 4},
|
||||||
|
{{1|(1<<4)}, {16*1, 16}, 4},
|
||||||
|
{{1|(0<<4)}, {16*0, 16}, 1},
|
||||||
|
{{2|(0<<4)}, {16*0, 32}, 1},
|
||||||
|
{{0|(8<<4)}, {16*8, 0}, 1},
|
||||||
|
{{0|(7<<4)}, {16*7, 0}, 1},
|
||||||
|
{{0|(6<<4)}, {16*6, 0}, 1},
|
||||||
|
{{0|(5<<4)}, {16*5, 0}, 1},
|
||||||
|
{{0|(4<<4)}, {16*4, 0}, 1},
|
||||||
|
{{0|(3<<4)}, {16*3, 0}, 1},
|
||||||
|
{{0|(2<<4)}, {16*2, 0}, 1},
|
||||||
|
{{0|(1<<4)}, {16*1, 0}, 1},
|
||||||
|
{{0|(0<<4)}, {16*0, 0}, 1},
|
||||||
|
{{0|(9<<4)}, {16*9, 0}, 1},
|
||||||
|
{{0|(10<<4)}, {16*10, 0}, 1},
|
||||||
|
{{0|(11<<4)}, {16*11, 0}, 1},
|
||||||
|
{{0|(12<<4)}, {16*12, 0}, 1},
|
||||||
|
{{0|(13<<4)}, {16*13, 0}, 1},
|
||||||
|
{{0|(14<<4)}, {16*14, 0}, 1},
|
||||||
|
{{1|(14<<4)}, {16*14, 16}, 1},
|
||||||
|
{{2|(14<<4)}, {16*14, 32}, 1},
|
||||||
|
{{1|(8<<4)}, {16*8, 16}, 4},
|
||||||
|
{{1|(9<<4)}, {16*9, 16}, 4},
|
||||||
|
{{1|(10<<4)}, {16*10, 16}, 4},
|
||||||
|
{{1|(11<<4)}, {16*11, 16}, 4},
|
||||||
|
{{1|(12<<4)}, {16*12, 16}, 4},
|
||||||
|
{{1|(13<<4)}, {16*13, 16}, 4},
|
||||||
|
{{3|(14<<4)}, {16*14, 48}, 1},
|
||||||
|
{{4|(14<<4)}, {16*14, 64}, 1},
|
||||||
|
{{4|(13<<4)}, {16*13, 64}, 1},
|
||||||
|
{{4|(5<<4)}, {16*5, 64}, 1},
|
||||||
|
{{3|(5<<4)}, {16*5, 48}, 4},
|
||||||
|
{{3|(4<<4)}, {16*4, 48}, 4},
|
||||||
|
{{3|(3<<4)}, {16*3, 48}, 4},
|
||||||
|
{{3|(2<<4)}, {16*2, 48}, 4},
|
||||||
|
{{3|(1<<4)}, {16*1, 48}, 4},
|
||||||
|
{{4|(2<<4)}, {16*2, 64}, 1},
|
||||||
|
{{4|(1<<4)}, {16*1, 64}, 1},
|
||||||
|
{{2|(6<<4)}, {16*6, 32}, 4},
|
||||||
|
{{2|(5<<4)}, {16*5, 32}, 4},
|
||||||
|
{{2|(4<<4)}, {16*4, 32}, 4},
|
||||||
|
{{2|(3<<4)}, {16*3, 32}, 4},
|
||||||
|
{{2|(2<<4)}, {16*2, 32}, 4},
|
||||||
|
{{2|(1<<4)}, {16*1, 32}, 4},
|
||||||
|
{{3|(0<<4)}, {16*0, 48}, 1},
|
||||||
|
{{4|(0<<4)}, {16*0, 64}, 1},
|
||||||
|
{{2|(7<<4)}, {16*7, 32}, 4},
|
||||||
|
{{2|(8<<4)}, {16*8, 32}, 4},
|
||||||
|
{{2|(9<<4)}, {16*9, 32}, 4},
|
||||||
|
{{2|(10<<4)}, {16*10, 32}, 4},
|
||||||
|
{{2|(11<<4)}, {16*11, 32}, 4},
|
||||||
|
{{2|(13<<4)}, {16*13, 32}, 4},
|
||||||
|
{{3|(10<<4)}, {16*10, 48}, 4},
|
||||||
|
{{3|(11<<4)}, {16*11, 48}, 4},
|
||||||
|
{{3|(13<<4)}, {16*13, 48}, 4},
|
||||||
|
{{3|(6<<4)}, {16*6, 48}, 4},
|
||||||
|
{{3|(7<<4)}, {16*7, 48}, 4},
|
||||||
|
{{3|(8<<4)}, {16*8, 48}, 4},
|
||||||
|
{{3|(9<<4)}, {16*9, 48}, 4},
|
||||||
|
{{4|(8<<4)}, {16*8, 64}, 1},
|
||||||
|
{{4|(9<<4)}, {16*9, 64}, 1},
|
||||||
|
{{4|(10<<4)}, {16*10, 64}, 1},
|
||||||
|
{{4|(11<<4)}, {16*11, 64}, 1},
|
||||||
|
};
|
||||||
|
|
||||||
|
void suspend_power_down_kb(void)
|
||||||
|
{
|
||||||
|
rgb_matrix_set_suspend_state(true);
|
||||||
|
suspend_power_down_user();
|
||||||
|
}
|
||||||
|
void suspend_wakeup_init_kb(void)
|
||||||
|
{
|
||||||
|
rgb_matrix_set_suspend_state(false);
|
||||||
|
suspend_wakeup_init_user();
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
#define XXX KC_NO
|
||||||
|
#include "quantum.h"
|
||||||
|
#define LAYOUT_65_ansi( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, \
|
||||||
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3E, \
|
||||||
|
K40, K41, K42, K45, K48, K49, K4A, K4B, K4D, K4E \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, XXX, K2D, K2E }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, XXX, K3D, K3E }, \
|
||||||
|
{ K40, K41, K42, XXX, XXX, K45, XXX, XXX, K48, K49, K4A, K4B, XXX, K4D, K4E } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "dz65rgb",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "dztch",
|
||||||
|
"width": 15,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_65_ansi": {
|
||||||
|
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0, "w":2},{"x":15, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5},{"x":15, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":15, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75},{"x":14, "y":3}, {"x":15, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
extern bool g_suspend_state;
|
||||||
|
#define _LAYER0 0
|
||||||
|
#define _LAYER1 1
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_LAYER0] = LAYOUT_65_ansi( /* Base */
|
||||||
|
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME,\
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLASH, KC_PGUP,\
|
||||||
|
CTL_T(KC_CAPS),KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,\
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,\
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),
|
||||||
|
[_LAYER1] = LAYOUT_65_ansi( /* FN */
|
||||||
|
KC_GESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME,\
|
||||||
|
KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI,RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, RESET, KC_PGUP,\
|
||||||
|
CTL_T(KC_CAPS),RGB_SPI, RGB_SPD, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, EEP_RST, KC_PGDN,\
|
||||||
|
KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, KC_MUTE,\
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT),
|
||||||
|
};
|
||||||
|
|
||||||
|
void rgb_matrix_indicators_user(void)
|
||||||
|
{
|
||||||
|
if (IS_LED_ON(host_keyboard_leds(), USB_LED_CAPS_LOCK))
|
||||||
|
{
|
||||||
|
rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init_user(void)
|
||||||
|
{
|
||||||
|
//user initialization
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void)
|
||||||
|
{
|
||||||
|
//user matrix
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# DZ65RGB
|
||||||
|
|
||||||
|
A customizable 65% RGB keyboard.
|
||||||
|
|
||||||
|
Keyboard Maintainer: [DZtech](http://keyboarddiy.taobao.com)
|
||||||
|
Hardware Supported: [DZtech](http://keyboarddiy.taobao.com)
|
||||||
|
Hardware Availability: [kbdfans](https://kbdfans.myshopify.com/)
|
||||||
|
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make dztech/dz65rgb:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
MCU = STM32F303
|
||||||
|
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
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
AUDIO_ENABLE = no
|
||||||
|
RGB_MATRIX_ENABLE = yes # Use RGB matrix
|
||||||
|
|
||||||
|
LAYOUTS = 65_ansi
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
/* Copyright 2018 Josh Hinnebusch
|
|
||||||
*
|
|
||||||
* 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/>.
|
|
||||||
*/
|
|
||||||
#ifndef H87A_H
|
|
||||||
#define H87A_H
|
|
||||||
|
|
||||||
#include "quantum.h"
|
|
||||||
|
|
||||||
// This a shortcut to help you visually see your layout.
|
|
||||||
// The following is an example using the Planck MIT layout
|
|
||||||
// The first section contains all of the arguments
|
|
||||||
// The second converts the arguments into a two-dimensional array
|
|
||||||
#define LAYOUT_all(\
|
|
||||||
K000, K001, K011, K002, K012, K003, K013, K004, K014, K015, K006, K016, K007, K017, K008, K018, \
|
|
||||||
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K027, K037, K028, K038, \
|
|
||||||
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, K057, K048, K058, \
|
|
||||||
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K066, K076, \
|
|
||||||
K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K096, K088, \
|
|
||||||
K100, K110, K101, K113, K105, K115, K106, K116, K117, K108, K118 \
|
|
||||||
) { \
|
|
||||||
{ K000, K001, K002, K003, K004, KC_NO, K006, K007, K008 }, \
|
|
||||||
{ KC_NO, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
|
||||||
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
|
||||||
{ K030, K031, K032, K033, K034, K035, K036, K037, K038 }, \
|
|
||||||
{ K040, K041, K042, K043, K044, K045, K046, KC_NO, K048 }, \
|
|
||||||
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
|
||||||
{ K060, K061, K062, K063, K064, K065, K066, KC_NO, KC_NO }, \
|
|
||||||
{ K070, K071, K072, K073, K074, K075, K076, KC_NO, KC_NO }, \
|
|
||||||
{ K080, K081, K082, K083, K084, K085, K086, KC_NO, K088 }, \
|
|
||||||
{ K090, K091, K092, K093, K094, K095, K096, KC_NO, KC_NO }, \
|
|
||||||
{ K100, K101, KC_NO, KC_NO, KC_NO, K105, K106, KC_NO, K108 }, \
|
|
||||||
{ K110, KC_NO, KC_NO, K113, KC_NO, K115, K116, K117, K118 } \
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"keyboard_name": "h87a",
|
|
||||||
"url": "",
|
|
||||||
"maintainer": "hineybush",
|
|
||||||
"width": 18.25,
|
|
||||||
"height": 6.5,
|
|
||||||
"layouts": {
|
|
||||||
"LAYOUT_all": {
|
|
||||||
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"x":13, "y":1.5}, {"x":14, "y":1.5}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"x":12.75, "y":3.5}, {"label":"Enter", "x":13.75, "y":3.5, "w":1.25}, {"label":"Shift", "x":0, "y":4.5, "w":1.25}, {"x":1.25, "y":4.5}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":1.75}, {"x":14, "y":4.5}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -72,4 +72,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define RGBLIGHT_HUE_STEP 8
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
#define RGBLIGHT_SAT_STEP 8
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
#define RGBLIGHT_VAL_STEP 8
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
#define RGBLIGHT_SLEEP // RGB will turn off when PC is put to sleep
|
||||||
#endif
|
#endif
|
||||||
File renamed without changes.
@@ -0,0 +1,90 @@
|
|||||||
|
/* Copyright 2018 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
// This a shortcut to help you visually see your layout.
|
||||||
|
// The following is an example using the Planck MIT layout
|
||||||
|
// The first section contains all of the arguments
|
||||||
|
// The second converts the arguments into a two-dimensional array
|
||||||
|
#define LAYOUT_all(\
|
||||||
|
K000, K001, K011, K002, K012, K003, K013, K004, K014, K015, K006, K016, K007, K017, K008, K018, \
|
||||||
|
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K027, K037, K028, K038, \
|
||||||
|
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, K057, K048, K058, \
|
||||||
|
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K066, K076, \
|
||||||
|
K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K096, K088, \
|
||||||
|
K100, K110, K101, K113, K105, K115, K106, K116, K117, K108, K118 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, KC_NO, K006, K007, K008 }, \
|
||||||
|
{ KC_NO, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
||||||
|
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
||||||
|
{ K030, K031, K032, K033, K034, K035, K036, K037, K038 }, \
|
||||||
|
{ K040, K041, K042, K043, K044, K045, K046, KC_NO, K048 }, \
|
||||||
|
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
||||||
|
{ K060, K061, K062, K063, K064, K065, K066, KC_NO, KC_NO }, \
|
||||||
|
{ K070, K071, K072, K073, K074, K075, K076, KC_NO, KC_NO }, \
|
||||||
|
{ K080, K081, K082, K083, K084, K085, K086, KC_NO, K088 }, \
|
||||||
|
{ K090, K091, K092, K093, K094, K095, K096, KC_NO, KC_NO }, \
|
||||||
|
{ K100, K101, KC_NO, KC_NO, KC_NO, K105, K106, KC_NO, K108 }, \
|
||||||
|
{ K110, KC_NO, KC_NO, K113, KC_NO, K115, K116, K117, K118 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_ansi(\
|
||||||
|
K000, K001, K011, K002, K012, K003, K013, K004, K014, K015, K006, K016, K007, K017, K008, K018, \
|
||||||
|
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K027, K037, K028, K038, \
|
||||||
|
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, K057, K048, K058, \
|
||||||
|
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, \
|
||||||
|
K080, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K088, \
|
||||||
|
K100, K110, K101, K113, K105, K115, K106, K116, K117, K108, K118 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, KC_NO, K006, K007, K008 }, \
|
||||||
|
{ KC_NO, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
||||||
|
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
||||||
|
{ K030, K031, K032, K033, K034, K035, KC_NO, K037, K038 }, \
|
||||||
|
{ K040, K041, K042, K043, K044, K045, K046, KC_NO, K048 }, \
|
||||||
|
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
||||||
|
{ K060, K061, K062, K063, K064, K065, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
{ K070, K071, K072, K073, K074, K075, K076, KC_NO, KC_NO }, \
|
||||||
|
{ K080, K081, K082, K083, K084, K085, K086, KC_NO, K088 }, \
|
||||||
|
{KC_NO, K091, K092, K093, K094, K095, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
{ K100, K101, KC_NO, KC_NO, KC_NO, K105, K106, KC_NO, K108 }, \
|
||||||
|
{ K110, KC_NO, KC_NO, K113, KC_NO, K115, K116, K117, K118 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_ansi_wkl(\
|
||||||
|
K000, K001, K011, K002, K012, K003, K013, K004, K014, K015, K006, K016, K007, K017, K008, K018, \
|
||||||
|
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K027, K037, K028, K038, \
|
||||||
|
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, K057, K048, K058, \
|
||||||
|
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, \
|
||||||
|
K080, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K088, \
|
||||||
|
K100, K101, K113, K115, K116, K117, K108, K118 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, KC_NO, K006, K007, K008 }, \
|
||||||
|
{ KC_NO, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
||||||
|
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
||||||
|
{ K030, K031, K032, K033, K034, K035, KC_NO, K037, K038 }, \
|
||||||
|
{ K040, K041, K042, K043, K044, K045, K046, KC_NO, K048 }, \
|
||||||
|
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
||||||
|
{ K060, K061, K062, K063, K064, K065, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
{ K070, K071, K072, K073, K074, K075, K076, KC_NO, KC_NO }, \
|
||||||
|
{ K080, K081, K082, K083, K084, K085, K086, KC_NO, K088 }, \
|
||||||
|
{KC_NO, K091, K092, K093, K094, K095, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
{ K100, K101, KC_NO, KC_NO, KC_NO,KC_NO, KC_NO, KC_NO, K108 }, \
|
||||||
|
{KC_NO, KC_NO, KC_NO, K113, KC_NO, K115, K116, K117, K118 } \
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "h87a",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "hineybush",
|
||||||
|
"width": 18.25,
|
||||||
|
"height": 6.5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"x":13, "y":1.5}, {"label":"Bksp", "x":14, "y":1.5}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"x":12.75, "y":3.5}, {"label":"Enter", "x":13.75, "y":3.5, "w":1.25}, {"label":"Shift", "x":0, "y":4.5, "w":1.25}, {"x":1.25, "y":4.5}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":1.75}, {"x":14, "y":4.5}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}]
|
||||||
|
},
|
||||||
|
|
||||||
|
"LAYOUT_tkl_ansi": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"label":"Bksp", "x":13, "y":1.5, "w":2}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, {"label":"Shift", "x":0, "y":4.5, "w":2.25}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, {"x":3.75, "y":5.5, "w":6.25}, {"label":"Alt", "x":10, "y":5.5, "w":1.25}, {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}]
|
||||||
|
},
|
||||||
|
"LAYOUT_tkl_ansi_wkl": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0}, {"label":"F2", "x":3, "y":0}, {"label":"F3", "x":4, "y":0}, {"label":"F4", "x":5, "y":0}, {"label":"F5", "x":6.5, "y":0}, {"label":"F6", "x":7.5, "y":0}, {"label":"F7", "x":8.5, "y":0}, {"label":"F8", "x":9.5, "y":0}, {"label":"F9", "x":11, "y":0}, {"label":"F10", "x":12, "y":0}, {"label":"F11", "x":13, "y":0}, {"label":"F12", "x":14, "y":0}, {"label":"PrtSc", "x":15.25, "y":0}, {"label":"Scroll Lock", "x":16.25, "y":0}, {"label":"Pause", "x":17.25, "y":0}, {"label":"~", "x":0, "y":1.5}, {"label":"!", "x":1, "y":1.5}, {"label":"@", "x":2, "y":1.5}, {"label":"#", "x":3, "y":1.5}, {"label":"$", "x":4, "y":1.5}, {"label":"%", "x":5, "y":1.5}, {"label":"^", "x":6, "y":1.5}, {"label":"&", "x":7, "y":1.5}, {"label":"*", "x":8, "y":1.5}, {"label":"(", "x":9, "y":1.5}, {"label":")", "x":10, "y":1.5}, {"label":"_", "x":11, "y":1.5}, {"label":"+", "x":12, "y":1.5}, {"label":"Bksp", "x":13, "y":1.5, "w":2}, {"label":"Insert", "x":15.25, "y":1.5}, {"label":"Home", "x":16.25, "y":1.5}, {"label":"PgUp", "x":17.25, "y":1.5}, {"label":"Tab", "x":0, "y":2.5, "w":1.5}, {"label":"Q", "x":1.5, "y":2.5}, {"label":"W", "x":2.5, "y":2.5}, {"label":"E", "x":3.5, "y":2.5}, {"label":"R", "x":4.5, "y":2.5}, {"label":"T", "x":5.5, "y":2.5}, {"label":"Y", "x":6.5, "y":2.5}, {"label":"U", "x":7.5, "y":2.5}, {"label":"I", "x":8.5, "y":2.5}, {"label":"O", "x":9.5, "y":2.5}, {"label":"P", "x":10.5, "y":2.5}, {"label":"{", "x":11.5, "y":2.5}, {"label":"}", "x":12.5, "y":2.5}, {"label":"|", "x":13.5, "y":2.5, "w":1.5}, {"label":"Delete", "x":15.25, "y":2.5}, {"label":"End", "x":16.25, "y":2.5}, {"label":"PgDn", "x":17.25, "y":2.5}, {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, {"label":"A", "x":1.75, "y":3.5}, {"label":"S", "x":2.75, "y":3.5}, {"label":"D", "x":3.75, "y":3.5}, {"label":"F", "x":4.75, "y":3.5}, {"label":"G", "x":5.75, "y":3.5}, {"label":"H", "x":6.75, "y":3.5}, {"label":"J", "x":7.75, "y":3.5}, {"label":"K", "x":8.75, "y":3.5}, {"label":"L", "x":9.75, "y":3.5}, {"label":":", "x":10.75, "y":3.5}, {"label":"\"", "x":11.75, "y":3.5}, {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, {"label":"Shift", "x":0, "y":4.5, "w":2.25}, {"label":"Z", "x":2.25, "y":4.5}, {"label":"X", "x":3.25, "y":4.5}, {"label":"C", "x":4.25, "y":4.5}, {"label":"V", "x":5.25, "y":4.5}, {"label":"B", "x":6.25, "y":4.5}, {"label":"N", "x":7.25, "y":4.5}, {"label":"M", "x":8.25, "y":4.5}, {"label":"<", "x":9.25, "y":4.5}, {"label":">", "x":10.25, "y":4.5}, {"label":"?", "x":11.25, "y":4.5}, {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, {"label":"\u2191", "x":16.25, "y":4.5}, {"label":"Ctrl", "x":0, "y":5.5, "w":1.5}, {"label":"Alt", "x":2.5, "y":5.5, "w":1.5}, {"x":4, "y":5.5, "w":7}, {"label":"Alt", "x":11, "y":5.5, "w":1.5}, {"label":"Ctrl", "x":13.5, "y":5.5, "w":1.5}, {"label":"\u2190", "x":15.25, "y":5.5}, {"label":"\u2193", "x":16.25, "y":5.5}, {"label":"\u2192", "x":17.25, "y":5.5}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/* Copyright 2018 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
|
|
||||||
+1
-1
@@ -22,7 +22,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
|
||||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_TRNS, KC_UP,
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TRNS, KC_UP,
|
||||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
[1] = LAYOUT_all(
|
[1] = LAYOUT_all(
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for h87a
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,21 @@
|
|||||||
|
/* Copyright 2018 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
|
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
/* Copyright 2018 Josh Hinnebusch
|
||||||
|
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_tkl_ansi_wkl(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_tkl_ansi_wkl(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_init_ports(void) {
|
||||||
|
setPinOutput(D5);
|
||||||
|
setPinOutput(E6);
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) {
|
||||||
|
|
||||||
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||||
|
setPinOutput(D5);
|
||||||
|
writePinLow(D5);
|
||||||
|
} else {
|
||||||
|
setPinInput(D5);
|
||||||
|
writePinLow(D5);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
||||||
|
setPinOutput(E6);
|
||||||
|
writePinLow(E6);
|
||||||
|
} else {
|
||||||
|
setPinInput(E6);
|
||||||
|
writePinLow(E6);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for h87a
|
||||||
@@ -3,16 +3,16 @@ h87a
|
|||||||
|
|
||||||
A QMK-powered replacement PCB for custom TKL keyboards. This PCB has the same size of the b.87 PCB, while using the USB port placement and spacebar stabilizer orientation as the a.87 PCB.
|
A QMK-powered replacement PCB for custom TKL keyboards. This PCB has the same size of the b.87 PCB, while using the USB port placement and spacebar stabilizer orientation as the a.87 PCB.
|
||||||
|
|
||||||
Keyboard Maintainer: hineybush (Josh Hinnebusch)
|
Keyboard Maintainer: [hineybush](https://github.com/hineybush)
|
||||||
|
Hardware Supported: h87a ver. 1.5, ver. 1.6 (normal and thin), h87alps
|
||||||
Hardware Supported: h87a Rev 1
|
Hardware Availability: hineybush.com
|
||||||
|
|
||||||
Hardware Availability: Currently prototyped, group buy TBD
|
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
make h87a:default
|
make hineybush/h87a:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
|
|
||||||
## h87a hardware information
|
## h87a hardware information
|
||||||
|
|
||||||
Controller: Atmega32u4
|
Controller: Atmega32u4
|
||||||
@@ -35,8 +35,11 @@ The H87a PCB utilizes duplex matrix organization.
|
|||||||
Backlight Pin: B7
|
Backlight Pin: B7
|
||||||
RGB Data Pin: D3
|
RGB Data Pin: D3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
For ver 1.5 in-switch indicators:
|
||||||
To connect the Caps Lock LED to the main backlight matrix, jump the middle pad and the left pad on J1. To use the Caps Lock LED as an indicator, jump the middle pad and the right pad on J1.
|
To connect the Caps Lock LED to the main backlight matrix, jump the middle pad and the left pad on J1. To use the Caps Lock LED as an indicator, jump the middle pad and the right pad on J1.
|
||||||
|
|
||||||
To connect the Scroll Lock LED to the main backlight matrix, jump the middle pad and the right pad on J2. To use the Scroll Lock LED as an indicator, jump the middle pad and the left pad on J2.
|
To connect the Scroll Lock LED to the main backlight matrix, jump the middle pad and the right pad on J2. To use the Scroll Lock LED as an indicator, jump the middle pad and the left pad on J2.
|
||||||
|
|
||||||
Note: The different orientations of J1 and J2 will be fixed with Rev 2.
|
Note: The different orientations of J1 and J2 was fixed with ver. 1.6.
|
||||||
File renamed without changes.
@@ -0,0 +1,47 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x6060
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER hineybush
|
||||||
|
#define PRODUCT hineyG80
|
||||||
|
#define DESCRIPTION QMK-powered PCB for Cherry G80/81-1800 Boards
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 12
|
||||||
|
#define MATRIX_COLS 9
|
||||||
|
|
||||||
|
/* key matrix pins */
|
||||||
|
#define MATRIX_ROW_PINS { B2, B3, D0, B1, D2, D1, D5, D3, D6, D4, B4, D7 }
|
||||||
|
#define MATRIX_COL_PINS { C7, F7, F6, F5, F4, F1, F0, B7, B0 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
|
||||||
|
#ifdef BACKLIGHT_PIN
|
||||||
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Set 0 if debouncing isn't needed */
|
||||||
|
#define DEBOUNCING_DELAY 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
|
||||||
|
|
||||||
|
#ifdef RGB_DI_PIN
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 0
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
#endif
|
||||||
|
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
/* Copyright 2019 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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 "hineyg80.h"
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
|
matrix_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_kb(void) {
|
||||||
|
// put your looping keyboard code here
|
||||||
|
// runs every cycle (a lot)
|
||||||
|
|
||||||
|
matrix_scan_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
// put your per-action keyboard code here
|
||||||
|
// runs for every action, just before processing by the firmware
|
||||||
|
|
||||||
|
return process_record_user(keycode, record);
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||||
|
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
||||||
|
// Turn numlock on
|
||||||
|
writePinHigh(C6);
|
||||||
|
} else {
|
||||||
|
// Turn numlock off
|
||||||
|
writePinLow(C6);
|
||||||
|
}
|
||||||
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||||
|
// Turn capslock on
|
||||||
|
writePinHigh(B6);
|
||||||
|
} else {
|
||||||
|
// Turn capslock off
|
||||||
|
writePinLow(B6);
|
||||||
|
}
|
||||||
|
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
||||||
|
// Turn scrolllock on
|
||||||
|
writePinHigh(B5);
|
||||||
|
} else {
|
||||||
|
// Turn scrolllock off
|
||||||
|
writePinLow(B5);
|
||||||
|
}
|
||||||
|
led_set_user(usb_led);
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
/* Copyright 2019 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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_all( \
|
||||||
|
K000,K010,K001,K011,K002,K012,K003,K013,K004,K014,K005,K015,K006, K007,K017,K008,K018, \
|
||||||
|
K027,K016,K028,K038, \
|
||||||
|
K020,K030,K021,K031,K022,K032,K023,K033,K024,K034,K025,K035,K026,K036,K037,K047,K057,K048,K058, \
|
||||||
|
K040,K050,K041,K051,K042,K052,K043,K053,K044,K054,K045,K055,K046,K056, K067,K077,K068,K078, \
|
||||||
|
K060,K070,K061,K071,K062,K072,K063,K073,K064,K074,K065,K075,K066,K076, K087,K097,K088,K098, \
|
||||||
|
K080,K090,K081,K091,K082,K092,K083,K093,K084,K094,K085,K095,K086,K096, K106,K116,K108,K118, \
|
||||||
|
K100,K110,K101, K102, K112,K103,K113,K104,K114, K105,K115,K117,K107 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008 }, \
|
||||||
|
{ K010, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
||||||
|
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
||||||
|
{ K030, K031, K032, K033, K034, K035, K036, K037, K038 }, \
|
||||||
|
{ K040, K041, K042, K043, K044, K045, K046, K047, K048 }, \
|
||||||
|
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
||||||
|
{ K060, K061, K062, K063, K064, K065, K066, K067, K068 }, \
|
||||||
|
{ K070, K071, K072, K073, K074, K075, K076, K077, K078 }, \
|
||||||
|
{ K080, K081, K082, K083, K084, K085, K086, K087, K088 }, \
|
||||||
|
{ K090, K091, K092, K093, K094, K095, K096, K097, K098 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108 }, \
|
||||||
|
{ K110, KC_NO, K112, K113, K114, K115, K116, K117, K118 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 6U spacebar, 1U mods */
|
||||||
|
#define LAYOUT_ansi_100u_mods( \
|
||||||
|
K000,K010,K001,K011,K002,K012,K003,K013,K004,K014,K005,K015,K006, K007,K017,K008,K018, \
|
||||||
|
K027,K016,K028,K038, \
|
||||||
|
K020,K030,K021,K031,K022,K032,K023,K033,K024,K034,K025,K035,K026,K036,K047,K057,K048,K058, \
|
||||||
|
K040,K050,K041,K051,K042,K052,K043,K053,K044,K054,K045,K055,K046,K056,K067,K077,K068,K078, \
|
||||||
|
K060,K070,K061,K071,K062,K072,K063,K073,K064,K074,K065,K075, K076,K087,K097,K088,K098, \
|
||||||
|
K080 ,K081,K091,K082,K092,K083,K093,K084,K094,K085,K095,K086,K096,K106,K116,K108,K118, \
|
||||||
|
K100,K110,K101, K102, K112,K103,K113,K104,K114,K105,K115,K117,K107 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008 }, \
|
||||||
|
{ K010, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
||||||
|
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
||||||
|
{ K030, K031, K032, K033, K034, K035, K036, KC_NO, K038 }, \
|
||||||
|
{ K040, K041, K042, K043, K044, K045, K046, K047, K048 }, \
|
||||||
|
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
||||||
|
{ K060, K061, K062, K063, K064, K065, KC_NO, K067, K068 }, \
|
||||||
|
{ K070, K071, K072, K073, K074, K075, K076, K077, K078 }, \
|
||||||
|
{ K080, K081, K082, K083, K084, K085, K086, K087, K088 }, \
|
||||||
|
{KC_NO, K091, K092, K093, K094, K095, K096, K097, K098 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108 }, \
|
||||||
|
{ K110, KC_NO, K112, K113, K114, K115, K116, K117, K118 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 7U spacebar, 1.5U mods */
|
||||||
|
#define LAYOUT_ansi_150u_mods( \
|
||||||
|
K000,K010,K001,K011,K002,K012,K003,K013,K004,K014,K005,K015,K006, K007,K017,K008,K018, \
|
||||||
|
K027,K016,K028,K038, \
|
||||||
|
K020,K030,K021,K031,K022,K032,K023,K033,K024,K034,K025,K035,K026,K036,K047,K057,K048,K058, \
|
||||||
|
K040,K050,K041,K051,K042,K052,K043,K053,K044,K054,K045,K055,K046,K056,K067,K077,K068,K078, \
|
||||||
|
K060,K070,K061,K071,K062,K072,K063,K073,K064,K074,K065,K075 ,K076,K087,K097,K088,K098, \
|
||||||
|
K080 ,K081,K091,K082,K092,K083,K093,K084,K094,K085,K095,K086,K096,K106,K116,K108,K118, \
|
||||||
|
K100, K101, K102, K103, K104,K114,K105,K115,K117,K107 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008 }, \
|
||||||
|
{ K010, K011, K012, K013, K014, K015, K016, K017, K018 }, \
|
||||||
|
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
||||||
|
{ K030, K031, K032, K033, K034, K035, K036, KC_NO, K038 }, \
|
||||||
|
{ K040, K041, K042, K043, K044, K045, K046, K047, K048 }, \
|
||||||
|
{ K050, K051, K052, K053, K054, K055, K056, K057, K058 }, \
|
||||||
|
{ K060, K061, K062, K063, K064, K065, KC_NO, K067, K068 }, \
|
||||||
|
{ K070, K071, K072, K073, K074, K075, K076, K077, K078 }, \
|
||||||
|
{ K080, K081, K082, K083, K084, K085, K086, K087, K088 }, \
|
||||||
|
{KC_NO, K091, K092, K093, K094, K095, K096, K097, K098 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108 }, \
|
||||||
|
{ KC_NO, KC_NO, KC_NO, KC_NO, K114, K115, K116, K117, K118 } \
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "hineyg80",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "hineybush",
|
||||||
|
"width": 19.5,
|
||||||
|
"height": 7.25,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1.25, "y":0}, {"label":"F2", "x":2.25, "y":0}, {"label":"F3", "x":3.25, "y":0}, {"label":"F4", "x":4.25, "y":0}, {"label":"F5", "x":5.5, "y":0}, {"label":"F6", "x":6.5, "y":0}, {"label":"F7", "x":7.5, "y":0}, {"label":"F8", "x":8.5, "y":0}, {"label":"F9", "x":9.75, "y":0}, {"label":"F10", "x":10.75, "y":0}, {"label":"F11", "x":11.75, "y":0}, {"label":"F12", "x":12.75, "y":0}, {"label":"Pause", "x":15.5, "y":0}, {"label":"Insert", "x":16.5, "y":0}, {"label":"Home", "x":17.5, "y":0}, {"label":"PgUp", "x":18.5, "y":0}, {"label":"Scroll Lock", "x":15.5, "y":1}, {"label":"Delete", "x":16.5, "y":1}, {"label":"End", "x":17.5, "y":1}, {"label":"PgDn", "x":18.5, "y":1}, {"label":"~", "x":0, "y":2}, {"label":"!", "x":1, "y":2}, {"label":"@", "x":2, "y":2}, {"label":"#", "x":3, "y":2}, {"label":"$", "x":4, "y":2}, {"label":"%", "x":5, "y":2}, {"label":"^", "x":6, "y":2}, {"label":"&", "x":7, "y":2}, {"label":"*", "x":8, "y":2}, {"label":"(", "x":9, "y":2}, {"label":")", "x":10, "y":2}, {"label":"_", "x":11, "y":2}, {"label":"+", "x":12, "y":2}, {"label":"Bksp", "x":13, "y":2}, {"x":14, "y":2}, {"label":"Num Lock", "x":15.5, "y":2}, {"label":"/", "x":16.5, "y":2}, {"label":"*", "x":17.5, "y":2}, {"label":"-", "x":18.5, "y":2}, {"label":"Tab", "x":0, "y":3, "w":1.5}, {"label":"Q", "x":1.5, "y":3}, {"label":"W", "x":2.5, "y":3}, {"label":"E", "x":3.5, "y":3}, {"label":"R", "x":4.5, "y":3}, {"label":"T", "x":5.5, "y":3}, {"label":"Y", "x":6.5, "y":3}, {"label":"U", "x":7.5, "y":3}, {"label":"I", "x":8.5, "y":3}, {"label":"O", "x":9.5, "y":3}, {"label":"P", "x":10.5, "y":3}, {"label":"{", "x":11.5, "y":3}, {"label":"}", "x":12.5, "y":3}, {"label":"|", "x":13.5, "y":3, "w":1.5}, {"label":"7", "x":15.5, "y":3}, {"label":"8", "x":16.5, "y":3}, {"label":"9", "x":17.5, "y":3}, {"label":"+", "x":18.5, "y":3}, {"label":"Caps Lock", "x":0, "y":4, "w":1.75}, {"label":"A", "x":1.75, "y":4}, {"label":"S", "x":2.75, "y":4}, {"label":"D", "x":3.75, "y":4}, {"label":"F", "x":4.75, "y":4}, {"label":"G", "x":5.75, "y":4}, {"label":"H", "x":6.75, "y":4}, {"label":"J", "x":7.75, "y":4}, {"label":"K", "x":8.75, "y":4}, {"label":"L", "x":9.75, "y":4}, {"label":":", "x":10.75, "y":4}, {"label":"\"", "x":11.75, "y":4}, {"x":12.75, "y":4}, {"label":"Enter", "x":13.75, "y":4, "w":1.25}, {"label":"4", "x":15.5, "y":4}, {"label":"5", "x":16.5, "y":4}, {"label":"6", "x":17.5, "y":4}, {"x":18.5, "y":4}, {"label":"Shift", "x":0, "y":5, "w":1.25}, {"x":1.25, "y":5}, {"label":"Z", "x":2.25, "y":5}, {"label":"X", "x":3.25, "y":5}, {"label":"C", "x":4.25, "y":5}, {"label":"V", "x":5.25, "y":5}, {"label":"B", "x":6.25, "y":5}, {"label":"N", "x":7.25, "y":5}, {"label":"M", "x":8.25, "y":5}, {"label":"<", "x":9.25, "y":5}, {"label":">", "x":10.25, "y":5}, {"label":"?", "x":11.25, "y":5}, {"label":"Shift", "x":12.25, "y":5, "w":1.75}, {"label":"\u2191", "x":14.25, "y":5.25}, {"label":"1", "x":15.5, "y":5}, {"label":"2", "x":16.5, "y":5}, {"label":"3", "x":17.5, "y":5}, {"label":"Enter", "x":18.5, "y":5, "h":2}, {"label":"Ctrl", "x":0, "y":6}, {"label":"Win", "x":1, "y":6}, {"label":"Alt", "x":2, "y":6}, {"x":3, "y":6, "w":6}, {"label":"Alt", "x":9, "y":6}, {"label":"Win", "x":10, "y":6}, {"label":"Menu", "x":11, "y":6}, {"label":"Ctrl", "x":12, "y":6}, {"label":"\u2190", "x":13.25, "y":6.25}, {"label":"\u2193", "x":14.25, "y":6.25}, {"label":"\u2192", "x":15.25, "y":6.25}, {"label":"0", "x":16.5, "y":6}, {"label":".", "x":17.5, "y":6}]
|
||||||
|
},
|
||||||
|
"LAYOUT_ansi_100u_mods": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1.25, "y":0}, {"label":"F2", "x":2.25, "y":0}, {"label":"F3", "x":3.25, "y":0}, {"label":"F4", "x":4.25, "y":0}, {"label":"F5", "x":5.5, "y":0}, {"label":"F6", "x":6.5, "y":0}, {"label":"F7", "x":7.5, "y":0}, {"label":"F8", "x":8.5, "y":0}, {"label":"F9", "x":9.75, "y":0}, {"label":"F10", "x":10.75, "y":0}, {"label":"F11", "x":11.75, "y":0}, {"label":"F12", "x":12.75, "y":0}, {"label":"Insert", "x":15.5, "y":0}, {"label":"Home", "x":16.5, "y":0}, {"label":"PgUp", "x":17.5, "y":0}, {"label":"Prt Sc", "x":18.5, "y":0}, {"label":"Delete", "x":15.5, "y":1}, {"label":"End", "x":16.5, "y":1}, {"label":"PgDn", "x":17.5, "y":1}, {"label":"Scroll", "x":18.5, "y":1}, {"label":"~", "x":0, "y":2}, {"label":"!", "x":1, "y":2}, {"label":"@", "x":2, "y":2}, {"label":"#", "x":3, "y":2}, {"label":"$", "x":4, "y":2}, {"label":"%", "x":5, "y":2}, {"label":"^", "x":6, "y":2}, {"label":"&", "x":7, "y":2}, {"label":"*", "x":8, "y":2}, {"label":"(", "x":9, "y":2}, {"label":")", "x":10, "y":2}, {"label":"_", "x":11, "y":2}, {"label":"+", "x":12, "y":2}, {"label":"Backspace", "x":13, "y":2, "w":2}, {"label":"Num Lock", "x":15.5, "y":2}, {"label":"/", "x":16.5, "y":2}, {"label":"*", "x":17.5, "y":2}, {"label":"Pause", "x":18.5, "y":2}, {"label":"Tab", "x":0, "y":3, "w":1.5}, {"label":"Q", "x":1.5, "y":3}, {"label":"W", "x":2.5, "y":3}, {"label":"E", "x":3.5, "y":3}, {"label":"R", "x":4.5, "y":3}, {"label":"T", "x":5.5, "y":3}, {"label":"Y", "x":6.5, "y":3}, {"label":"U", "x":7.5, "y":3}, {"label":"I", "x":8.5, "y":3}, {"label":"O", "x":9.5, "y":3}, {"label":"P", "x":10.5, "y":3}, {"label":"{", "x":11.5, "y":3}, {"label":"}", "x":12.5, "y":3}, {"label":"|", "x":13.5, "y":3, "w":1.5}, {"label":"7", "x":15.5, "y":3}, {"label":"8", "x":16.5, "y":3}, {"label":"9", "x":17.5, "y":3}, {"label":"-", "x":18.5, "y":3}, {"label":"Caps Lock", "x":0, "y":4, "w":1.75}, {"label":"A", "x":1.75, "y":4}, {"label":"S", "x":2.75, "y":4}, {"label":"D", "x":3.75, "y":4}, {"label":"F", "x":4.75, "y":4}, {"label":"G", "x":5.75, "y":4}, {"label":"H", "x":6.75, "y":4}, {"label":"J", "x":7.75, "y":4}, {"label":"K", "x":8.75, "y":4}, {"label":"L", "x":9.75, "y":4}, {"label":":", "x":10.75, "y":4}, {"label":"\"", "x":11.75, "y":4}, {"label":"Enter", "x":12.75, "y":4, "w":2.25}, {"label":"4", "x":15.5, "y":4}, {"label":"5", "x":16.5, "y":4}, {"label":"6", "x":17.5, "y":4}, {"label":"+", "x":18.5, "y":4}, {"label":"Shift", "x":0, "y":5, "w":2.25}, {"label":"Z", "x":2.25, "y":5}, {"label":"X", "x":3.25, "y":5}, {"label":"C", "x":4.25, "y":5}, {"label":"V", "x":5.25, "y":5}, {"label":"B", "x":6.25, "y":5}, {"label":"N", "x":7.25, "y":5}, {"label":"M", "x":8.25, "y":5}, {"label":"<", "x":9.25, "y":5}, {"label":">", "x":10.25, "y":5}, {"label":"?", "x":11.25, "y":5}, {"label":"Shift", "x":12.25, "y":5, "w":1.75}, {"label":"\u2191", "x":14.25, "y":5.25}, {"label":"1", "x":15.5, "y":5}, {"label":"2", "x":16.5, "y":5}, {"label":"3", "x":17.5, "y":5}, {"label":"Enter", "x":18.5, "y":5, "h":2}, {"label":"Ctrl", "x":0, "y":6}, {"label":"Win", "x":1, "y":6}, {"label":"Alt", "x":2, "y":6}, {"x":3, "y":6, "w":6}, {"label":"Alt", "x":9, "y":6}, {"label":"Win", "x":10, "y":6}, {"label":"Menu", "x":11, "y":6}, {"label":"Ctrl", "x":12, "y":6}, {"label":"\u2190", "x":13.25, "y":6.25}, {"label":"\u2193", "x":14.25, "y":6.25}, {"label":"\u2192", "x":15.25, "y":6.25}, {"label":"0", "x":16.5, "y":6}, {"label":".", "x":17.5, "y":6}]
|
||||||
|
},
|
||||||
|
"LAYOUT_ansi_150u_mods": {
|
||||||
|
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1.25, "y":0}, {"label":"F2", "x":2.25, "y":0}, {"label":"F3", "x":3.25, "y":0}, {"label":"F4", "x":4.25, "y":0}, {"label":"F5", "x":5.5, "y":0}, {"label":"F6", "x":6.5, "y":0}, {"label":"F7", "x":7.5, "y":0}, {"label":"F8", "x":8.5, "y":0}, {"label":"F9", "x":9.75, "y":0}, {"label":"F10", "x":10.75, "y":0}, {"label":"F11", "x":11.75, "y":0}, {"label":"F12", "x":12.75, "y":0}, {"label":"Insert", "x":15.5, "y":0}, {"label":"Home", "x":16.5, "y":0}, {"label":"PgUp", "x":17.5, "y":0}, {"label":"Prt Sc", "x":18.5, "y":0}, {"label":"Delete", "x":15.5, "y":1}, {"label":"End", "x":16.5, "y":1}, {"label":"PgDn", "x":17.5, "y":1}, {"label":"Scroll", "x":18.5, "y":1}, {"label":"~", "x":0, "y":2}, {"label":"!", "x":1, "y":2}, {"label":"@", "x":2, "y":2}, {"label":"#", "x":3, "y":2}, {"label":"$", "x":4, "y":2}, {"label":"%", "x":5, "y":2}, {"label":"^", "x":6, "y":2}, {"label":"&", "x":7, "y":2}, {"label":"*", "x":8, "y":2}, {"label":"(", "x":9, "y":2}, {"label":")", "x":10, "y":2}, {"label":"_", "x":11, "y":2}, {"label":"+", "x":12, "y":2}, {"label":"Backspace", "x":13, "y":2, "w":2}, {"label":"Num Lock", "x":15.5, "y":2}, {"label":"/", "x":16.5, "y":2}, {"label":"*", "x":17.5, "y":2}, {"label":"Pause", "x":18.5, "y":2}, {"label":"Tab", "x":0, "y":3, "w":1.5}, {"label":"Q", "x":1.5, "y":3}, {"label":"W", "x":2.5, "y":3}, {"label":"E", "x":3.5, "y":3}, {"label":"R", "x":4.5, "y":3}, {"label":"T", "x":5.5, "y":3}, {"label":"Y", "x":6.5, "y":3}, {"label":"U", "x":7.5, "y":3}, {"label":"I", "x":8.5, "y":3}, {"label":"O", "x":9.5, "y":3}, {"label":"P", "x":10.5, "y":3}, {"label":"{", "x":11.5, "y":3}, {"label":"}", "x":12.5, "y":3}, {"label":"|", "x":13.5, "y":3, "w":1.5}, {"label":"7", "x":15.5, "y":3}, {"label":"8", "x":16.5, "y":3}, {"label":"9", "x":17.5, "y":3}, {"label":"-", "x":18.5, "y":3}, {"label":"Caps Lock", "x":0, "y":4, "w":1.75}, {"label":"A", "x":1.75, "y":4}, {"label":"S", "x":2.75, "y":4}, {"label":"D", "x":3.75, "y":4}, {"label":"F", "x":4.75, "y":4}, {"label":"G", "x":5.75, "y":4}, {"label":"H", "x":6.75, "y":4}, {"label":"J", "x":7.75, "y":4}, {"label":"K", "x":8.75, "y":4}, {"label":"L", "x":9.75, "y":4}, {"label":":", "x":10.75, "y":4}, {"label":"\"", "x":11.75, "y":4}, {"label":"Enter", "x":12.75, "y":4, "w":2.25}, {"label":"4", "x":15.5, "y":4}, {"label":"5", "x":16.5, "y":4}, {"label":"6", "x":17.5, "y":4}, {"label":"+", "x":18.5, "y":4}, {"label":"Shift", "x":0, "y":5, "w":2.25}, {"label":"Z", "x":2.25, "y":5}, {"label":"X", "x":3.25, "y":5}, {"label":"C", "x":4.25, "y":5}, {"label":"V", "x":5.25, "y":5}, {"label":"B", "x":6.25, "y":5}, {"label":"N", "x":7.25, "y":5}, {"label":"M", "x":8.25, "y":5}, {"label":"<", "x":9.25, "y":5}, {"label":">", "x":10.25, "y":5}, {"label":"?", "x":11.25, "y":5}, {"label":"Shift", "x":12.25, "y":5, "w":1.75}, {"label":"\u2191", "x":14.25, "y":5.25}, {"label":"1", "x":15.5, "y":5}, {"label":"2", "x":16.5, "y":5}, {"label":"3", "x":17.5, "y":5}, {"label":"Enter", "x":18.5, "y":5, "h":2}, {"label":"Ctrl", "x":0, "y":6, "w":1.5}, {"label":"Alt", "x":1.5, "y":6, "w":1.5}, {"x":3, "y":6, "w":7}, {"label":"Menu", "x":10, "y":6, "w":1.5}, {"label":"Ctrl", "x":11.5, "y":6, "w":1.5}, {"label":"\u2190", "x":13.25, "y":6.25}, {"label":"\u2193", "x":14.25, "y":6.25}, {"label":"\u2192", "x":15.25, "y":6.25}, {"label":"0", "x":16.5, "y":6}, {"label":".", "x":17.5, "y":6}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/* Copyright 2019 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
/* Copyright 2019 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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 the keycodes used by our macros in process_record_user
|
||||||
|
enum custom_keycodes {
|
||||||
|
QMKBEST = SAFE_RANGE,
|
||||||
|
QMKURL,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ansi_100u_mods( /* Base */
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_HOME, KC_PGUP, KC_PSCR,
|
||||||
|
KC_DEL, KC_END, KC_PGDN, KC_SLCK,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PAUS,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_ansi_100u_mods( /* Fn */KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET , KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for hineyg80
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/* Copyright 2019 Josh Hinnebusch
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/* Copyright 2019 %YOUR_NAME%
|
||||||
|
*
|
||||||
|
* 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 the keycodes used by our macros in process_record_user
|
||||||
|
enum custom_keycodes {
|
||||||
|
QMKBEST = SAFE_RANGE,
|
||||||
|
QMKURL,
|
||||||
|
______ = KC_TRNS,
|
||||||
|
XXXXXX = KC_NO
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ansi_150u_mods( /* Base */
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_HOME, KC_PGUP, KC_PSCR,
|
||||||
|
KC_DEL, KC_END, KC_PGDN, KC_SLCK,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PAUS,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_ansi_150u_mods( /* Fn */______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU,
|
||||||
|
______, ______, ______, KC_VOLD,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_DEL, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, RESET , ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
KC_CAPS, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
|
||||||
|
______, ______, ______, ______, ______, ______, ______, ______, ______, ______
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for hineyg80
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# hineyg80
|
||||||
|
|
||||||
|
|
||||||
|
A small-batch PCB design to be a drop-in replacement for G80-1800 and G81-1800 boards.
|
||||||
|
|
||||||
|
Keyboard Maintainer: [hineybush](https://github.com/hineybush)
|
||||||
|
|
||||||
|
Hardware Supported: hiney g80 rev 2
|
||||||
|
|
||||||
|
Hardware Availability: https://geekhack.org/index.php?topic=92389.0
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make hineybush/hineyg80:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
# MCU name
|
||||||
|
#MCU = at90usb1286
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Processor frequency.
|
||||||
|
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||||
|
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||||
|
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||||
|
# automatically to create a 32-bit value in your source code.
|
||||||
|
#
|
||||||
|
# This will be an integer division of F_USB below, as it is sourced by
|
||||||
|
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||||
|
# does not *change* the processor frequency - it should merely be updated to
|
||||||
|
# reflect the processor speed set externally so that the code can use accurate
|
||||||
|
# software delays.
|
||||||
|
F_CPU = 16000000
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# LUFA specific
|
||||||
|
#
|
||||||
|
# Target architecture (see library "Board Types" documentation).
|
||||||
|
ARCH = AVR8
|
||||||
|
|
||||||
|
# Input clock frequency.
|
||||||
|
# This will define a symbol, F_USB, in all source code files equal to the
|
||||||
|
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||||
|
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||||
|
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||||
|
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||||
|
# at the end, this will be done automatically to create a 32-bit value in your
|
||||||
|
# source code.
|
||||||
|
#
|
||||||
|
# If no clock division is performed on the input clock inside the AVR (via the
|
||||||
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
|
# Interrupt driven control endpoint task(+60)
|
||||||
|
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
|
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# atmega32a bootloadHID
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
|
||||||
|
# If you don't know the bootloader type, then you can specify the
|
||||||
|
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
|
||||||
|
# Teensy halfKay 512
|
||||||
|
# Teensy++ halfKay 1024
|
||||||
|
# Atmel DFU loader 4096
|
||||||
|
# LUFA bootloader 4096
|
||||||
|
# USBaspLoader 2048
|
||||||
|
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
|
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||||
|
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 on B7 by default
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
|
||||||
@@ -15,7 +15,7 @@ const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {100, 50, 20};
|
|||||||
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
||||||
|
|
||||||
// These control which colors are selected for the gradient mode
|
// These control which colors are selected for the gradient mode
|
||||||
const uint16_t RGBLED_GRADIENT_RANGES[] PROGMEM = {360, 240, 180, 120, 90};
|
const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = LAYOUT(
|
[0] = LAYOUT(
|
||||||
|
|||||||
@@ -0,0 +1,222 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 yynmt
|
||||||
|
|
||||||
|
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 0x0000
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER yynmt
|
||||||
|
#define PRODUCT KagaMidget
|
||||||
|
#define DESCRIPTION 48 keys tiny keyboard
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 4
|
||||||
|
#define MATRIX_COLS 12
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 { D1, D0, F4, F5 }
|
||||||
|
#define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5, B6, B2, B3, B1, F7, F6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
|
||||||
|
#define RGB_DI_PIN D3
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 4
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCING_DELAY 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||||
|
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||||
|
*/
|
||||||
|
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Force NKRO
|
||||||
|
*
|
||||||
|
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||||
|
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||||
|
* makefile for this to work.)
|
||||||
|
*
|
||||||
|
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||||
|
* until the next keyboard reset.
|
||||||
|
*
|
||||||
|
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||||
|
* fully operational during normal computer usage.
|
||||||
|
*
|
||||||
|
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||||
|
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||||
|
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||||
|
* power-up.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//#define FORCE_NKRO
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Magic Key Options
|
||||||
|
*
|
||||||
|
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||||
|
* the keyboard. They are best used in combination with the HID Listen program,
|
||||||
|
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||||
|
*
|
||||||
|
* The options below allow the magic key functionality to be changed. This is
|
||||||
|
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* key combination for magic key command */
|
||||||
|
/*#define IS_COMMAND() ( \
|
||||||
|
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||||
|
)*/
|
||||||
|
|
||||||
|
/* control how magic key switches layers */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||||
|
|
||||||
|
/* override magic key keymap */
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||||
|
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||||
|
//#define MAGIC_KEY_HELP1 H
|
||||||
|
//#define MAGIC_KEY_HELP2 SLASH
|
||||||
|
//#define MAGIC_KEY_DEBUG D
|
||||||
|
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||||
|
//#define MAGIC_KEY_DEBUG_KBD K
|
||||||
|
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||||
|
//#define MAGIC_KEY_VERSION V
|
||||||
|
//#define MAGIC_KEY_STATUS S
|
||||||
|
//#define MAGIC_KEY_CONSOLE C
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT1 ESC
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
|
||||||
|
//#define MAGIC_KEY_LAYER0 0
|
||||||
|
//#define MAGIC_KEY_LAYER1 1
|
||||||
|
//#define MAGIC_KEY_LAYER2 2
|
||||||
|
//#define MAGIC_KEY_LAYER3 3
|
||||||
|
//#define MAGIC_KEY_LAYER4 4
|
||||||
|
//#define MAGIC_KEY_LAYER5 5
|
||||||
|
//#define MAGIC_KEY_LAYER6 6
|
||||||
|
//#define MAGIC_KEY_LAYER7 7
|
||||||
|
//#define MAGIC_KEY_LAYER8 8
|
||||||
|
//#define MAGIC_KEY_LAYER9 9
|
||||||
|
//#define MAGIC_KEY_BOOTLOADER PAUSE
|
||||||
|
//#define MAGIC_KEY_LOCK CAPS
|
||||||
|
//#define MAGIC_KEY_EEPROM E
|
||||||
|
//#define MAGIC_KEY_NKRO N
|
||||||
|
//#define MAGIC_KEY_SLEEP_LED Z
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
//#define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
//#define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
//#define NO_ACTION_MACRO
|
||||||
|
//#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
/*
|
||||||
|
* MIDI options
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Prevent use of disabled MIDI features in the keymap */
|
||||||
|
//#define MIDI_ENABLE_STRICT 1
|
||||||
|
|
||||||
|
/* enable basic MIDI features:
|
||||||
|
- MIDI notes can be sent when in Music mode is on
|
||||||
|
*/
|
||||||
|
//#define MIDI_BASIC
|
||||||
|
|
||||||
|
/* enable advanced MIDI features:
|
||||||
|
- MIDI notes can be added to the keymap
|
||||||
|
- Octave shift and transpose
|
||||||
|
- Virtual sustain, portamento, and modulation wheel
|
||||||
|
- etc.
|
||||||
|
*/
|
||||||
|
//#define MIDI_ADVANCED
|
||||||
|
|
||||||
|
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||||
|
//#define MIDI_TONE_KEYCODE_OCTAVES 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* HD44780 LCD Display Configuration
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
#define LCD_LINES 2 //< number of visible lines of the display
|
||||||
|
#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
|
||||||
|
|
||||||
|
#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
|
||||||
|
|
||||||
|
#if LCD_IO_MODE
|
||||||
|
#define LCD_PORT PORTB //< port for the LCD lines
|
||||||
|
#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
|
||||||
|
#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
|
||||||
|
#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
|
||||||
|
#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
|
||||||
|
#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
|
||||||
|
#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
|
||||||
|
#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
|
||||||
|
#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
|
||||||
|
#define LCD_RS_PORT LCD_PORT //< port for RS line
|
||||||
|
#define LCD_RS_PIN 3 //< pin for RS line
|
||||||
|
#define LCD_RW_PORT LCD_PORT //< port for RW line
|
||||||
|
#define LCD_RW_PIN 2 //< pin for RW line
|
||||||
|
#define LCD_E_PORT LCD_PORT //< port for Enable line
|
||||||
|
#define LCD_E_PIN 1 //< pin for Enable line
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Bootmagic Lite key configuration */
|
||||||
|
// #define BOOTMAGIC_LITE_ROW 0
|
||||||
|
// #define BOOTMAGIC_LITE_COLUMN 0
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "KagaMidget",
|
||||||
|
"url": "http://yynmt.com",
|
||||||
|
"maintainer": "yynmt",
|
||||||
|
"width": 12,
|
||||||
|
"height": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"key_count": 48,
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0},
|
||||||
|
{"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1},
|
||||||
|
{"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2},
|
||||||
|
{"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/* Copyright 2019 yynmt
|
||||||
|
*
|
||||||
|
* 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 "kagamidget.h"
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
|
matrix_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_kb(void) {
|
||||||
|
// put your looping keyboard code here
|
||||||
|
// runs every cycle (a lot)
|
||||||
|
|
||||||
|
matrix_scan_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
// put your per-action keyboard code here
|
||||||
|
// runs for every action, just before processing by the firmware
|
||||||
|
|
||||||
|
return process_record_user(keycode, record);
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||||
|
|
||||||
|
led_set_user(usb_led);
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/* Copyright 2019 yynmt
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
/* This a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
#define LAYOUT( \
|
||||||
|
K01, K05, K09, K13, K17, K21, K25, K29, K33, K37, K41, K45, \
|
||||||
|
K02, K06, K10, K14, K18, K22, K26, K30, K34, K38, K42, K46, \
|
||||||
|
K03, K07, K11, K15, K19, K23, K27, K31, K35, K39, K43, K47, \
|
||||||
|
K04, K08, K12, K16, K20, K24, K28, K32, K36, K40, K44, K48 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ K01, K05, K09, K13, K17, K21, K25, K29, K33, K37, K41, K45 }, \
|
||||||
|
{ K02, K06, K10, K14, K18, K22, K26, K30, K34, K38, K42, K46 }, \
|
||||||
|
{ K03, K07, K11, K15, K19, K23, K27, K31, K35, K39, K43, K47 }, \
|
||||||
|
{ K04, K08, K12, K16, K20, K24, K28, K32, K36, K40, K44, K48 }, \
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/* Copyright 2019 yynmt
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
/* Copyright 2019 yynmt
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
//Following line allows macro to read current RGB settings
|
||||||
|
extern rgblight_config_t rgblight_config;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
_QWERTY,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_ADJUST
|
||||||
|
};
|
||||||
|
|
||||||
|
#define LOWER MO(_LOWER)
|
||||||
|
#define RAISE MO(_RAISE)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Qwerty
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Esc | A | S | D | F | G | H | J | K | L | ; | " |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Shift| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_QWERTY] = LAYOUT(
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||||
|
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
|
||||||
|
KC_RSFT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||||
|
),
|
||||||
|
/* Lower
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_LOWER] = LAYOUT(
|
||||||
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
||||||
|
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
|
||||||
|
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||||
|
),
|
||||||
|
/* Raise
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_RAISE] = LAYOUT(
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||||
|
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
|
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||||
|
),
|
||||||
|
/* Adjust (Lower + Raise)
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | | Reset| Debug|RGBTog|RGBMod|RGBHuI|RGBHuD|RGBSaI|RGBSaD|RGBVaI|RGBVaD| Del |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_ADJUST] = LAYOUT(
|
||||||
|
_______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
# The default keymap for KagaMidget
|
||||||
|
## Qwerty
|
||||||
|
```
|
||||||
|
,-----------------------------------------------------------------------------------.
|
||||||
|
| Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| Esc | A | S | D | F | G | H | J | K | L | ; | " |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| Shift| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
||||||
|
`-----------------------------------------------------------------------------------'
|
||||||
|
```
|
||||||
|
## Lower
|
||||||
|
```
|
||||||
|
,-----------------------------------------------------------------------------------.
|
||||||
|
| ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | | | | | | | Next | Vol- | Vol+ | Play |
|
||||||
|
`-----------------------------------------------------------------------------------'
|
||||||
|
```
|
||||||
|
## Raise
|
||||||
|
```
|
||||||
|
,-----------------------------------------------------------------------------------.
|
||||||
|
| ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | | | | | | | Next | Vol- | Vol+ | Play |
|
||||||
|
`-----------------------------------------------------------------------------------'
|
||||||
|
```
|
||||||
|
## Adjust (Lower + Raise)
|
||||||
|
```
|
||||||
|
,-----------------------------------------------------------------------------------.
|
||||||
|
| | Reset| Debug|RGBTog|RGBMod|RGBHuI|RGBHuD|RGBSaI|RGBSaD|RGBVaI|RGBVaD| Del |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | | | | | | | | | | | |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | | | | | | | | | | | |
|
||||||
|
|------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
| | | | | | | | | | | |
|
||||||
|
`-----------------------------------------------------------------------------------'
|
||||||
|
```
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# KagaMidget
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
KagaMidget is 40% tiny keyboard.
|
||||||
|
|
||||||
|
Keyboard Maintainer: [yynmt](https://github.com/yynmt)
|
||||||
|
Hardware Supported: KagaMidget PCBs, ProMicro supported
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make kagamidget:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
# MCU name
|
||||||
|
#MCU = at90usb1286
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Processor frequency.
|
||||||
|
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||||
|
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||||
|
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||||
|
# automatically to create a 32-bit value in your source code.
|
||||||
|
#
|
||||||
|
# This will be an integer division of F_USB below, as it is sourced by
|
||||||
|
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||||
|
# does not *change* the processor frequency - it should merely be updated to
|
||||||
|
# reflect the processor speed set externally so that the code can use accurate
|
||||||
|
# software delays.
|
||||||
|
F_CPU = 16000000
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# LUFA specific
|
||||||
|
#
|
||||||
|
# Target architecture (see library "Board Types" documentation).
|
||||||
|
ARCH = AVR8
|
||||||
|
|
||||||
|
# Input clock frequency.
|
||||||
|
# This will define a symbol, F_USB, in all source code files equal to the
|
||||||
|
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||||
|
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||||
|
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||||
|
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||||
|
# at the end, this will be done automatically to create a 32-bit value in your
|
||||||
|
# source code.
|
||||||
|
#
|
||||||
|
# If no clock division is performed on the input clock inside the AVR (via the
|
||||||
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
|
# Interrupt driven control endpoint task(+60)
|
||||||
|
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
|
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# atmega32a bootloadHID
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
|
||||||
|
# If you don't know the bootloader type, then you can specify the
|
||||||
|
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
|
||||||
|
# Teensy halfKay 512
|
||||||
|
# Teensy++ halfKay 1024
|
||||||
|
# Atmel DFU loader 4096
|
||||||
|
# LUFA bootloader 4096
|
||||||
|
# USBaspLoader 2048
|
||||||
|
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
|
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||||
|
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 on B7 by default
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
|
||||||
|
|
||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
/* Copyright 2018 wanleg
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
#include "wanleg.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define LAYOUT_kbd6x_base( \
|
||||||
|
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, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, \
|
||||||
|
KC_TAB, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||||
|
KC_CAPS, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_QUOT, KC_ENT, \
|
||||||
|
KC_LSFT, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, KC_LSFT, FUNCTION, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, LT(gDIR,KC_SPC), KC_RALT, KC_RGUI, KC_RCTL \
|
||||||
|
)
|
||||||
|
#define LAYOUT_kbd6x_base_wrapper(...) LAYOUT_kbd6x_base(__VA_ARGS__)
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[gGK] = LAYOUT_kbd6x_base_wrapper(
|
||||||
|
_______________Gherkin_Row_0_______________,
|
||||||
|
_______________Gherkin_Row_1_______________,
|
||||||
|
_______________Gherkin_Row_2_______________
|
||||||
|
),
|
||||||
|
|
||||||
|
[gNUM] = LAYOUT_kbd6x_base_wrapper(
|
||||||
|
_______________Gherkin_NUM_0_______________,
|
||||||
|
_______________Gherkin_NUM_1_______________,
|
||||||
|
_______________Gherkin_NUM_2_______________
|
||||||
|
),
|
||||||
|
|
||||||
|
[gDIR] = LAYOUT_kbd6x_base_wrapper(
|
||||||
|
_______________Gherkin_DIR_0_______________,
|
||||||
|
_______________Gherkin_DIR_1_______________,
|
||||||
|
_______________Gherkin_DIR_2_______________
|
||||||
|
),
|
||||||
|
|
||||||
|
[gETC] = LAYOUT_kbd6x_base_wrapper(
|
||||||
|
_______________Gherkin_ETC_0_______________,
|
||||||
|
_______________Gherkin_ETC_1_______________,
|
||||||
|
_______________Gherkin_ETC_2_______________
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN] = LAYOUT_kbd6x_base_wrapper(
|
||||||
|
_______________Gherkin_FN_0________________,
|
||||||
|
_______________Gherkin_FN_1________________,
|
||||||
|
_______________Gherkin_FN_2________________
|
||||||
|
),
|
||||||
|
|
||||||
|
//mac layout
|
||||||
|
[_QW] = LAYOUT_wrapper(
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(ONE),
|
||||||
|
KC_LCTL, MO(ONE), KC_LGUI, KC_SPACE, KC_RGUI, KC_RALT, KC_RCTL
|
||||||
|
),
|
||||||
|
|
||||||
|
[ONE] = LAYOUT_wrapper(
|
||||||
|
KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
|
||||||
|
_______, BL_BRTG, BL_DEC, BL_INC, BL_TOGG, BL_STEP, BL_ON, KC_PGUP, KC_HOME, _______, _______, _______, _______, _______,
|
||||||
|
_______, RGB_M_B, RGB_VAD, RGB_VAI, RGB_TOG, RGB_MOD, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______,
|
||||||
|
_______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, KC_PGDN, KC_END, _______, gGHERKIN,_______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
|
EXTRAKEY_ENABLE = no # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
// #define MASTER_LEFT
|
||||||
|
// #define MASTER_RIGHT
|
||||||
|
#define EE_HANDS
|
||||||
|
|
||||||
|
//#define QMK_ESC_OUTPUT F1 // usually COL
|
||||||
|
//#define QMK_ESC_INPUT D6 // usually ROW // connected to nothing on the miniaxe
|
||||||
|
//#define QMK_LED D7 //connected to nothing on the miniaxe
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "wanleg.h"
|
||||||
|
|
||||||
|
#define LAYOUT_miniaxe_base( \
|
||||||
|
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( \
|
||||||
|
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, \
|
||||||
|
_______, NUMBER, ETCETERA, KC_SPC, DIRECTION, KC_RGUI \
|
||||||
|
)
|
||||||
|
#define LAYOUT_miniaxe_base_wrapper(...) LAYOUT_miniaxe_base(__VA_ARGS__)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_GK] = LAYOUT_miniaxe_base_wrapper(
|
||||||
|
_______________Gherkin_Row_0_______________,
|
||||||
|
_______________Gherkin_Row_1_______________,
|
||||||
|
SFT_T(KC_Z), KC_X, KC_C, LT(NUM,KC_V), LT(ETC,KC_B), LT(_FN,KC_N), LT(DIR,KC_M), GUI_T(KC_COMM), ALT_T(KC_DOT), CTL_T(KC_BSPC)
|
||||||
|
),
|
||||||
|
|
||||||
|
[NUM] = LAYOUT_wrapper(
|
||||||
|
_______________Gherkin_NUM_0_______________,
|
||||||
|
_______________Gherkin_NUM_1_______________,
|
||||||
|
_______________Gherkin_NUM_2_______________,
|
||||||
|
_______, _______, _______, KC_ENT, KC_RSFT, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
[DIR] = LAYOUT_miniaxe_base_wrapper(
|
||||||
|
_______________Gherkin_DIR_0_______________,
|
||||||
|
_______________Gherkin_DIR_1_______________,
|
||||||
|
_______________Gherkin_DIR_2_______________
|
||||||
|
),
|
||||||
|
|
||||||
|
[ETC] = LAYOUT_wrapper(
|
||||||
|
_______________Gherkin_ETC_0_______________,
|
||||||
|
_______________Gherkin_ETC_1_______________,
|
||||||
|
_______________Gherkin_ETC_2_______________,
|
||||||
|
_______, NUMBER, ETCETERA, LALT(LCTL(KC_DEL)), DIRECTION, KC_RGUI
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN] = LAYOUT_miniaxe_base_wrapper(
|
||||||
|
_______________Gherkin_FN_0________________,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# atmega32a bootloadHID
|
||||||
|
#BOOTLOADER = qmk-dfu
|
||||||
|
|
||||||
|
|
||||||
|
# If you don't know the bootloader type, then you can specify the
|
||||||
|
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
|
||||||
|
# Teensy halfKay 512
|
||||||
|
# Teensy++ halfKay 1024
|
||||||
|
# Atmel DFU loader 4096
|
||||||
|
# LUFA bootloader 4096
|
||||||
|
# USBaspLoader 2048
|
||||||
|
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
@@ -31,6 +31,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define TAPPING_FORCE_HOLD
|
#define TAPPING_FORCE_HOLD
|
||||||
#define TAPPING_TERM 100
|
#define TAPPING_TERM 100
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
#define MATRIX_ROWS 10
|
#define MATRIX_ROWS 10
|
||||||
#define MATRIX_COLS 8
|
#define MATRIX_COLS 8
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/* Use I2C or Serial, not both */
|
/* Use I2C or Serial, not both */
|
||||||
#define USE_SERIAL
|
// #define USE_SERIAL
|
||||||
// #define USE_I2C
|
// #define USE_I2C
|
||||||
|
|
||||||
// #define MASTER_RIGHT
|
// #define MASTER_RIGHT
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/* Use I2C or Serial, not both */
|
/* Use I2C or Serial, not both */
|
||||||
#define USE_SERIAL
|
// #define USE_SERIAL
|
||||||
// #define USE_I2C
|
// #define USE_I2C
|
||||||
|
|
||||||
// #define MASTER_RIGHT
|
// #define MASTER_RIGHT
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 Naoto Takai
|
||||||
|
|
||||||
|
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 0xC0C0
|
||||||
|
#define PRODUCT_ID 0x3000
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Naoto Takai
|
||||||
|
#define PRODUCT nomu30
|
||||||
|
#define DESCRIPTION A 30% keyboard with ISO enter.
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 3
|
||||||
|
#define MATRIX_COLS 12
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 { D1, D0, D4 }
|
||||||
|
#define MATRIX_COL_PINS { C6, D7, E6, B4, F4, F5, F6, F7, B1, B3, B2, B6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
@@ -0,0 +1,172 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Nomu30",
|
||||||
|
"url": "https://keys.recompile.net/projects/nomu30/",
|
||||||
|
"maintainer": "takai",
|
||||||
|
"width": 11.5,
|
||||||
|
"height": 3,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{
|
||||||
|
"label": "Q",
|
||||||
|
"x": 0.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "W",
|
||||||
|
"x": 1.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "E",
|
||||||
|
"x": 2.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "R",
|
||||||
|
"x": 3.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "T",
|
||||||
|
"x": 4.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Y",
|
||||||
|
"x": 5.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "U",
|
||||||
|
"x": 6.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "I",
|
||||||
|
"x": 7.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "O",
|
||||||
|
"x": 8.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "P",
|
||||||
|
"x": 9.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Del",
|
||||||
|
"x": 10.5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "|",
|
||||||
|
"x": 0,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "A",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "S",
|
||||||
|
"x": 2,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "D",
|
||||||
|
"x": 3,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "F",
|
||||||
|
"x": 4,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "G",
|
||||||
|
"x": 5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "H",
|
||||||
|
"x": 6,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "J",
|
||||||
|
"x": 7,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "K",
|
||||||
|
"x": 8,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "L",
|
||||||
|
"x": 9,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Enter",
|
||||||
|
"x": 10.25,
|
||||||
|
"y": 1,
|
||||||
|
"w": 1.25,
|
||||||
|
"h": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Control",
|
||||||
|
"x": 0,
|
||||||
|
"y": 2,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Z",
|
||||||
|
"x": 1.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "X",
|
||||||
|
"x": 2.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "C",
|
||||||
|
"x": 3.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "V",
|
||||||
|
"x": 4.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "B",
|
||||||
|
"x": 5.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "N",
|
||||||
|
"x": 6.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "M",
|
||||||
|
"x": 7.5,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Shift",
|
||||||
|
"x": 8.5,
|
||||||
|
"y": 2,
|
||||||
|
"w": 1.75
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/* Copyright 2019 Naoto Takai
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
|
|
||||||
|
#define TAPPING_TERM 200
|
||||||
|
#define PERMISSIVE_HOLD
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/* Copyright 2019 Naoto Takai
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
#define _BASE 0
|
||||||
|
#define _NUMS 1
|
||||||
|
#define _SYMS 2
|
||||||
|
#define _FUNC 3
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_BASE] = LAYOUT(
|
||||||
|
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
|
||||||
|
KC_LSFT, LALT_T(KC_Z), LGUI_T(KC_X), KC_C, LT(_SYMS, KC_V), LT(_FUNC, KC_B), LT(_NUMS, KC_N), KC_M, KC_SPC
|
||||||
|
),
|
||||||
|
[_NUMS] = LAYOUT(
|
||||||
|
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV,
|
||||||
|
KC_TRNS, KC_LBRC, KC_RBRC, KC_SLSH, KC_BSLS, KC_TRNS, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_COMM, KC_DOT
|
||||||
|
),
|
||||||
|
[_SYMS] = LAYOUT(
|
||||||
|
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TILD,
|
||||||
|
KC_TRNS, KC_LCBR, KC_RCBR, KC_QUES, KC_PIPE, KC_TRNS, KC_UNDS, KC_PLUS, KC_COLN, KC_DQUO, KC_TRNS,
|
||||||
|
KC_TRNS, KC_LABK, KC_RABK, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[_FUNC] = LAYOUT(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||||
|
KC_TAB, KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, RESET,
|
||||||
|
KC_TRNS, KC_LALT, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
)
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for nomu30
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/* Copyright 2019 Naoto Takai
|
||||||
|
*
|
||||||
|
* 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 "nomu30.h"
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
/* Copyright 2019 Naoto Takai
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
/* This a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
#define LAYOUT( \
|
||||||
|
K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ KC_NO, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, KC_NO }, \
|
||||||
|
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_kc( \
|
||||||
|
K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208 \
|
||||||
|
) \
|
||||||
|
LAYOUT( \
|
||||||
|
KC_##K001, KC_##K002, KC_##K003, KC_##K004, KC_##K005, KC_##K006, KC_##K007, KC_##K008, KC_##K009, KC_##K010, KC_##K011, \
|
||||||
|
KC_##K100, KC_##K101, KC_##K102, KC_##K103, KC_##K104, KC_##K105, KC_##K106, KC_##K107, KC_##K108, KC_##K109, KC_##K110, \
|
||||||
|
KC_##K200, KC_##K201, KC_##K202, KC_##K203, KC_##K204, KC_##K205, KC_##K206, KC_##K207, KC_##K208 \
|
||||||
|
)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# nomu30
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A 30% keyboard with ISO enter.
|
||||||
|
|
||||||
|
Keyboard Maintainer: [Naoto Takai](https://github.com/takai)
|
||||||
|
Hardware Supported: The Nomu30 PCBs, ProMicro supported
|
||||||
|
Hardware Availability: https://keys.recompile.net/projects/nomu30/
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make nomu30:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
# MCU name
|
||||||
|
#MCU = at90usb1286
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Processor frequency.
|
||||||
|
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||||
|
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||||
|
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||||
|
# automatically to create a 32-bit value in your source code.
|
||||||
|
#
|
||||||
|
# This will be an integer division of F_USB below, as it is sourced by
|
||||||
|
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||||
|
# does not *change* the processor frequency - it should merely be updated to
|
||||||
|
# reflect the processor speed set externally so that the code can use accurate
|
||||||
|
# software delays.
|
||||||
|
F_CPU = 16000000
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# LUFA specific
|
||||||
|
#
|
||||||
|
# Target architecture (see library "Board Types" documentation).
|
||||||
|
ARCH = AVR8
|
||||||
|
|
||||||
|
# Input clock frequency.
|
||||||
|
# This will define a symbol, F_USB, in all source code files equal to the
|
||||||
|
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||||
|
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||||
|
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||||
|
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||||
|
# at the end, this will be done automatically to create a 32-bit value in your
|
||||||
|
# source code.
|
||||||
|
#
|
||||||
|
# If no clock division is performed on the input clock inside the AVR (via the
|
||||||
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
|
# Interrupt driven control endpoint task(+60)
|
||||||
|
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
|
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# atmega32a bootloadHID
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
|
||||||
|
# If you don't know the bootloader type, then you can specify the
|
||||||
|
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
|
||||||
|
# Teensy halfKay 512
|
||||||
|
# Teensy++ halfKay 1024
|
||||||
|
# Atmel DFU loader 4096
|
||||||
|
# LUFA bootloader 4096
|
||||||
|
# USBaspLoader 2048
|
||||||
|
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
|
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
|
||||||
@@ -60,4 +60,6 @@
|
|||||||
|
|
||||||
#define KEYMAP LAYOUT_plaid_grid
|
#define KEYMAP LAYOUT_plaid_grid
|
||||||
#define LAYOUT_ortho_4x12 LAYOUT_plaid_grid
|
#define LAYOUT_ortho_4x12 LAYOUT_plaid_grid
|
||||||
|
#define LAYOUT_planck_mit LAYOUT_plaid_mit
|
||||||
|
#define LAYOUT_kc_ortho_4x12 KC_KEYMAP
|
||||||
#define KC_LAYOUT_ortho_4x12 KC_KEYMAP
|
#define KC_LAYOUT_ortho_4x12 KC_KEYMAP
|
||||||
@@ -97,5 +97,5 @@ NO_UART = yes
|
|||||||
NO_SUSPEND_POWER_DOWN = yes
|
NO_SUSPEND_POWER_DOWN = yes
|
||||||
|
|
||||||
|
|
||||||
LAYOUTS = ortho_4x12 planck_mit planck_grid
|
LAYOUTS = ortho_4x12 planck_mit
|
||||||
LAYOUTS_HAS_RGB = no
|
LAYOUTS_HAS_RGB = no
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
float mushroom[][2] = SONG(MARIO_MUSHROOM);
|
float mushroom[][2] = SONG(MARIO_MUSHROOM);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
extern keymap_config_t keymap_config;
|
||||||
|
|
||||||
// Complex Tapdance hoopla
|
// Complex Tapdance hoopla
|
||||||
@@ -26,7 +27,8 @@ enum {
|
|||||||
X_AT_FUN = 0,
|
X_AT_FUN = 0,
|
||||||
RSHIFT,
|
RSHIFT,
|
||||||
LSHIFT,
|
LSHIFT,
|
||||||
TD_S
|
TD_S,
|
||||||
|
SLASH
|
||||||
};
|
};
|
||||||
|
|
||||||
int cur_dance (qk_tap_dance_state_t *state);
|
int cur_dance (qk_tap_dance_state_t *state);
|
||||||
@@ -110,7 +112,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
/* Programmer Dvorak */
|
/* Programmer Dvorak */
|
||||||
[_PDVORAK] = LAYOUT_planck_grid(
|
[_PDVORAK] = LAYOUT_planck_grid(
|
||||||
KC_GESC, KC_SCOLON, KC_COMMA, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
|
KC_GESC, KC_SCOLON, KC_COMMA, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
|
||||||
KC_LAST, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, TD(TD_S), KC_SLASH,
|
KC_LAST, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, TD(TD_S), TD(SLASH),
|
||||||
TD(LSHIFT), KC_QUOT, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, TD(RSHIFT),
|
TD(LSHIFT), KC_QUOT, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, TD(RSHIFT),
|
||||||
TD(X_AT_FUN), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, ALT_TAB, KC_SPACE, KC_ENTER, MT(MOD_LCTL | MOD_LSFT, KC_LGUI), KC_PGUP, KC_PGDN, LT(_LOWER, KC_PLUS)
|
TD(X_AT_FUN), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, ALT_TAB, KC_SPACE, KC_ENTER, MT(MOD_LCTL | MOD_LSFT, KC_LGUI), KC_PGUP, KC_PGDN, LT(_LOWER, KC_PLUS)
|
||||||
),
|
),
|
||||||
@@ -245,6 +247,8 @@ qk_tap_dance_action_t tap_dance_actions[] = {
|
|||||||
[LSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lshift_finished, lshift_reset),
|
[LSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lshift_finished, lshift_reset),
|
||||||
[RSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, rshift_finished, rshift_reset),
|
[RSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, rshift_finished, rshift_reset),
|
||||||
[TD_S] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, s_finished, s_reset),
|
[TD_S] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, s_finished, s_reset),
|
||||||
|
[SLASH] = ACTION_TAP_DANCE_DOUBLE(KC_SLASH, KC_BSLASH),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void shutdown_user(void) { clear_keyboard(); }
|
void shutdown_user(void) { clear_keyboard(); }
|
||||||
@@ -1,12 +1,17 @@
|
|||||||
# Programmer Dvorak for the Planck (Light)
|
# Programmer Dvorak for the Planck (Light)
|
||||||
|
|
||||||
|
|
||||||
| Magic | | UPPER |
|
| | | | | | | | | | | | |
|
||||||
|----------|---------|-------|
|
|----------|---------|-------|-----|------|-------|-------|------|------|------|------|------|
|
||||||
| | DEFAULT | |
|
| GRAVE_ESC | ; [u]; [l]7 | , [u]% [l]5 | . [l]3 | p [l]1 | y [u]= [l]9 | f [u]* [l]0 | g [l]2 | c [l]4 | r [u]! [l]6 | l [u]# [l]8 | BKSP |
|
||||||
| FUNCTION | | LOWER |
|
| LCTRL [TD]!$ | a | o | e | u | i | d | h | t | n | s [TD]- _ | / [TD]\ |
|
||||||
|
| LSHFT [TD]( [ { | ' | q | j | k | x | b | m | w | v | z | LSHFT [TD]) ] } |
|
||||||
|
| @ [TD]UPPER FUN RESET | LEFT | DOWN | UP | RIGHT | ALT_TAB | SPACE | ENTER | LGUI | PGUP | PGDOWN | = [TD]LOWER |
|
||||||
|
|
||||||
# Layout notes
|
# Layout notes
|
||||||
|
- [u] = UPPER symbol
|
||||||
|
- [l] = LOWER symbol
|
||||||
|
- [TD] = Tap Dances
|
||||||
- ALT_TAB = cycle through windows as long as you keep tapping it keeps alt tabbing
|
- ALT_TAB = cycle through windows as long as you keep tapping it keeps alt tabbing
|
||||||
- LAST = "!$" = is useful for using the last parm in bash/zsh
|
- LAST = "!$" = is useful for using the last parm in bash/zsh
|
||||||
- More to come
|
- More to come
|
||||||
|
|||||||
@@ -2,8 +2,25 @@
|
|||||||
|
|
||||||
//QMK DFU settings (ProMicro boards)
|
//QMK DFU settings (ProMicro boards)
|
||||||
// set top left key as bootloader mode escape key on Gherkin
|
// set top left key as bootloader mode escape key on Gherkin
|
||||||
#if defined(KEYBOARD_gherkin)
|
#if defined(KEYBOARD_40percentclub_gherkin) && !defined(FLIP)
|
||||||
#define QMK_LED B0
|
#define QMK_LED B0
|
||||||
#define QMK_ESC_OUTPUT B4 // usually COL
|
#define QMK_ESC_OUTPUT B4 // usually COL
|
||||||
#define QMK_ESC_INPUT F7 // usually ROW
|
#define QMK_ESC_INPUT F7 // usually ROW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//change gherkin orientation (i.e. move USB port from right side to left side)
|
||||||
|
#if defined(KEYBOARD_40percentclub_gherkin) && defined(FLIP)
|
||||||
|
//need to fix QMKdfu setting:
|
||||||
|
#define QMK_ESC_OUTPUT B6 // usually COL
|
||||||
|
#define QMK_ESC_INPUT D0 // usually ROW
|
||||||
|
#define QMK_LED B0
|
||||||
|
|
||||||
|
//need to undefine standard 4x4 array before defining alternate ProMicro array
|
||||||
|
#undef MATRIX_ROW_PINS
|
||||||
|
#undef MATRIX_COL_PINS
|
||||||
|
//standard config:
|
||||||
|
//#define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 }
|
||||||
|
//#define MATRIX_COL_PINS { B4, E6, D7, C6, D4, D0 }
|
||||||
|
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
|
||||||
|
#define MATRIX_COL_PINS { D0, D4, C6, D7, E6, B4 }
|
||||||
|
#endif
|
||||||
@@ -26,4 +26,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______________Gherkin_ETC_2_______________
|
_______________Gherkin_ETC_2_______________
|
||||||
),
|
),
|
||||||
|
|
||||||
|
[_FN] = LAYOUT_ortho_3x10_wrapper(
|
||||||
|
_______________Gherkin_FN_0________________,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||

|

|
||||||
# Gherkin Wanleg Layout
|
# Gherkin Wanleg Layout
|
||||||
This is the layout I came up with to preserve a standard QWERTY 104 key ANSI layout as much as possible, in as few layers as possible for a 30 key board.
|
This is the layout I came up with to preserve a standard QWERTY 104 key ANSI layout as much as possible, in as few layers as possible for a 30 key board.
|
||||||
Here are the two Tap Dance keys I've set up for this board:
|
Here are the two Tap Dance keys I've set up for this board:
|
||||||
@@ -47,9 +47,9 @@ The instructions below have been adapted from https://www.reddit.com/r/olkb/comm
|
|||||||
| Arduino | ProMicro |
|
| Arduino | ProMicro |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| 10 | RST |
|
| 10 | RST |
|
||||||
| 11 | 16 |
|
| 11 (MOSI) | 16 |
|
||||||
| 12 | 14 |
|
| 12 (MISO) | 14 |
|
||||||
| 13 | 15 |
|
| 13 (SCK) | 15 |
|
||||||
| GND | GND |
|
| GND | GND |
|
||||||
| 5V | VCC |
|
| 5V | VCC |
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
SWAP_HANDS_ENABLE = no
|
|
||||||
|
|
||||||
BOOTLOADER = qmk-dfu
|
BOOTLOADER = qmk-dfu
|
||||||
@@ -20,6 +20,13 @@
|
|||||||
#define EE_HANDS
|
#define EE_HANDS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// set top left key as bootloader mode escape key on Nori
|
||||||
|
#if defined(KEYBOARD_40percentclub_nori)
|
||||||
|
#define QMK_LED B0
|
||||||
|
#define QMK_ESC_OUTPUT F4 // usually COL
|
||||||
|
#define QMK_ESC_INPUT D3 // usually ROW
|
||||||
|
#endif
|
||||||
|
|
||||||
// set top left key as bootloader mode escape key on 4x4 48key layout
|
// set top left key as bootloader mode escape key on 4x4 48key layout
|
||||||
#if defined(KEYBOARD_40percentclub_4x4) && !defined(PRO_MICRO)
|
#if defined(KEYBOARD_40percentclub_4x4) && !defined(PRO_MICRO)
|
||||||
#define QMK_LED B0
|
#define QMK_LED B0
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_____________DIRECTIONS_Row__2_____________,
|
_____________DIRECTIONS_Row__2_____________,
|
||||||
_______, _______, ONEHAND, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
_______, _______, ONEHAND, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
#elif defined(KEYBOARD_40percentclub_4x4)
|
#elif defined(KEYBOARD_40percentclub_4x4) || defined(KEYBOARD_40percentclub_nori)
|
||||||
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
||||||
_______________GherkinLike_0_______________,
|
_______________GherkinLike_0_______________,
|
||||||
_______________GherkinLike_1_______________,
|
_______________GherkinLike_1_______________,
|
||||||
@@ -36,14 +36,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______________NUMPAD_Row__3_______________
|
_______________NUMPAD_Row__3_______________
|
||||||
),
|
),
|
||||||
|
|
||||||
#elif defined(KEYBOARD_jj40)
|
|
||||||
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
|
||||||
_______________GherkinLike_0_______________,
|
|
||||||
_______________GherkinLike_1_______________,
|
|
||||||
_______________GherkinLike_2_______________,
|
|
||||||
TD(RST_TAP_DANCE), BL_TOGG, BL_STEP, BL_BRTG, NUMBER, ETCETERA, KC_SPC,DIRECTION, KC_RGUI, KC_RALT, KC_DEL, KC_RCTL
|
|
||||||
),
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
||||||
_______________GherkinLike_0_______________,
|
_______________GherkinLike_0_______________,
|
||||||
@@ -94,4 +86,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
______________ETCETERA_Row__3______________
|
______________ETCETERA_Row__3______________
|
||||||
),
|
),
|
||||||
|
|
||||||
|
[_FN] = LAYOUT_ortho_4x12_wrapper(
|
||||||
|
_______, _______________Gherkin_FN_0________________, _______,
|
||||||
|
_______, _______________Gherkin_FN_0________________, _______,
|
||||||
|
_______, _______________Gherkin_FN_0________________, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -7,4 +7,9 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(KEYBOARD)), planck/rev6)
|
ifeq ($(strip $(KEYBOARD)), planck/rev6)
|
||||||
AUDIO_ENABLE = yes
|
AUDIO_ENABLE = yes
|
||||||
|
endif
|
||||||
|
|
||||||
|
#disable RGB on version 1 of jj40 keyboard (does not exist)
|
||||||
|
ifeq ($(strip $(KEYBOARD)), jj40)
|
||||||
|
RGBLIGHT_ENABLE = no
|
||||||
endif
|
endif
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d, K3e \
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d, K3e \
|
||||||
) \
|
) \
|
||||||
LAYOUT_ortho_5x15_wrapper( \
|
LAYOUT_ortho_5x15_wrapper( \
|
||||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NLCK, QWERTY, GHERKIN, FUNCTION, \
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, QWERTY, GHERKIN, FUNCTION, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NLCK, \
|
||||||
K00, K01, K02, K03, K04, K05, K0c, K0d, K0e, K06, K07, K08, K09, K0a, K0b, \
|
K00, K01, K02, K03, K04, K05, K0c, K0d, K0e, K06, K07, K08, K09, K0a, K0b, \
|
||||||
K10, K11, K12, K13, K14, K15, K1c, K1d, K1e, K16, K17, K18, K19, K1a, K1b, \
|
K10, K11, K12, K13, K14, K15, K1c, K1d, K1e, K16, K17, K18, K19, K1a, K1b, \
|
||||||
K20, K21, K22, K23, K24, K25, K2c, K2d, K2e, K26, K27, K28, K29, K2a, K2b, \
|
K20, K21, K22, K23, K24, K25, K2c, K2d, K2e, K26, K27, K28, K29, K2a, K2b, \
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d, K3e \
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d, K3e \
|
||||||
) \
|
) \
|
||||||
LAYOUT_ortho_5x15_wrapper( \
|
LAYOUT_ortho_5x15_wrapper( \
|
||||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NLCK, QWERTY, GHERKIN, FUNCTION, \
|
QWERTY, GHERKIN, FUNCTION, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NLCK, \
|
||||||
K0c, K0d, K0e, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, \
|
K0c, K0d, K0e, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, \
|
||||||
K1c, K1d, K1e, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, \
|
K1c, K1d, K1e, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, \
|
||||||
K2c, K2d, K2e, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, \
|
K2c, K2d, K2e, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, \
|
||||||
@@ -110,7 +110,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
),
|
),
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
/* Gherkin
|
/* Gherkin-Like
|
||||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | NUMLOCK| qwerty | gherkin| FN |
|
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | NUMLOCK| qwerty | gherkin| FN |
|
||||||
* |-----------------------------------------------------------------------------------------------------------+--------+--------+--------|
|
* |-----------------------------------------------------------------------------------------------------------+--------+--------+--------|
|
||||||
@@ -190,7 +190,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
________________SUPRA_Row_3________________, _______, _______, _______
|
________________SUPRA_Row_3________________, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Gherkin Numbers
|
/* Gherkin-Like Numbers
|
||||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
* | | | | | | | | | | | | | | | |
|
* | | | | | | | | | | | | | | | |
|
||||||
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
||||||
@@ -210,7 +210,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______________NUMBERS_Row_3_______________, _______, _______, _______
|
_______________NUMBERS_Row_3_______________, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Gherkin Et Cetera
|
/* Gherkin-Like Et Cetera
|
||||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
* | | | | | | | | | | | | | | | |
|
* | | | | | | | | | | | | | | | |
|
||||||
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
||||||
@@ -230,7 +230,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
______________ETCETERA_Row__3______________, _______, _______, _______
|
______________ETCETERA_Row__3______________, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Gherkin Directional Keys
|
/* Gherkin-Like Directional Keys
|
||||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
* | | | | | | | | | | | | | | | |
|
* | | | | | | | | | | | | | | | |
|
||||||
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
||||||
@@ -250,25 +250,25 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_____________DIRECTIONS_Row__3_____________, _______, _______, _______
|
_____________DIRECTIONS_Row__3_____________, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
|
/* Gherkin FN/Lighting
|
||||||
/* FUNCTION
|
|
||||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||||
* | | | | | | | | | | | | | | | |
|
* | | | | | | | | | | | | | | | |
|
||||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
* |-----------------------------------------------------------------------------------------------------------|--------+-----------------|
|
||||||
* | | | | | | | | | | | | | | | |
|
* | | | | |
|
||||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
* | |--------+--------+--------|
|
||||||
* | CAP LK | MS BT5 | MS BT4 | MS BT3 | MS BT2 | SLOW M | FAST M | NEXT | VOL+ | VOL- | PLAY | | | | WHEEL+ |
|
* | 4x12 FN/Lighting LAYOUT | | | |
|
||||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
* | |--------+--------+--------|
|
||||||
* | RGB TG | RGB MD | RGB HI | RGB HD | RGB SI | RGB SD | RGB VI | RGB VD | BL TOG | BL INC | BL DEC | | | MOUS U | WHEEL- |
|
* | | | | |
|
||||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
* | |--------+--------+--------|
|
||||||
* | | | | | | | MS BT1 | | | | | | MOUS L | MOUS D | MOUS R |
|
* | | | | |
|
||||||
* '--------------------------------------------------------------------------------------------------------------------------------------'
|
* '--------------------------------------------------------------------------------------------------------------------------------------'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[_FN] = LAYOUT_75_base_wrapper(
|
[_FN] = LAYOUT_75_base_wrapper(
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, _______________Gherkin_FN_0________________, _______, _______, _______, _______,
|
||||||
KC_CAPS, KC_BTN5, KC_BTN4, KC_BTN3, KC_BTN2, KC_ACL0, KC_ACL2, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, _______, _______, KC_WH_U,
|
_______, _______________Gherkin_FN_1________________, _______, _______, _______, _______,
|
||||||
RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_INC, BL_DEC, _______, _______, KC_MS_U, KC_WH_D,
|
_______, _______________Gherkin_FN_2________________, _______, _______, _______, _______,
|
||||||
_______, _______, _______, _______, _______, _______, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R
|
_______, _________________BLANK_50__________________, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
};
|
};
|
||||||
+5
-4
@@ -22,8 +22,8 @@
|
|||||||
RGB hsv_to_rgb( HSV hsv )
|
RGB hsv_to_rgb( HSV hsv )
|
||||||
{
|
{
|
||||||
RGB rgb;
|
RGB rgb;
|
||||||
uint8_t region, p, q, t;
|
uint8_t region, remainder, p, q, t;
|
||||||
uint16_t h, s, v, remainder;
|
uint16_t h, s, v;
|
||||||
|
|
||||||
if ( hsv.s == 0 )
|
if ( hsv.s == 0 )
|
||||||
{
|
{
|
||||||
@@ -37,8 +37,8 @@ RGB hsv_to_rgb( HSV hsv )
|
|||||||
s = hsv.s;
|
s = hsv.s;
|
||||||
v = hsv.v;
|
v = hsv.v;
|
||||||
|
|
||||||
region = h / 43;
|
region = h * 6 / 255;
|
||||||
remainder = (h - (region * 43)) * 6;
|
remainder = (h * 2 - region * 85) * 3;
|
||||||
|
|
||||||
p = (v * (255 - s)) >> 8;
|
p = (v * (255 - s)) >> 8;
|
||||||
q = (v * (255 - ((s * remainder) >> 8))) >> 8;
|
q = (v * (255 - ((s * remainder) >> 8))) >> 8;
|
||||||
@@ -46,6 +46,7 @@ RGB hsv_to_rgb( HSV hsv )
|
|||||||
|
|
||||||
switch ( region )
|
switch ( region )
|
||||||
{
|
{
|
||||||
|
case 6:
|
||||||
case 0:
|
case 0:
|
||||||
rgb.r = v;
|
rgb.r = v;
|
||||||
rgb.g = t;
|
rgb.g = t;
|
||||||
|
|||||||
+19
-29
@@ -19,38 +19,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#ifdef USE_CIE1931_CURVE
|
#ifdef USE_CIE1931_CURVE
|
||||||
// Lightness curve using the CIE 1931 lightness formula
|
// Lightness curve using the CIE 1931 lightness formula
|
||||||
//Generated by the python script provided in http://jared.geek.nz/2013/feb/linear-led-pwm
|
//Generated by the python script provided in http://jared.geek.nz/2013/feb/linear-led-pwm
|
||||||
const uint8_t CIE1931_CURVE[] PROGMEM = {
|
const uint8_t CIE1931_CURVE[256] PROGMEM = {
|
||||||
0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,
|
||||||
1, 1, 1, 1, 2, 2, 2, 2, 2, 2,
|
1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3,
|
||||||
2, 2, 2, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6,
|
||||||
3, 4, 4, 4, 4, 4, 4, 5, 5, 5,
|
6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11,
|
||||||
5, 5, 6, 6, 6, 6, 6, 7, 7, 7,
|
11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 16, 16, 16,
|
||||||
7, 8, 8, 8, 8, 9, 9, 9, 10, 10,
|
17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24,
|
||||||
10, 10, 11, 11, 11, 12, 12, 12, 13, 13,
|
25, 25, 26, 26, 27, 28, 28, 29, 29, 30, 31, 31, 32, 33, 33, 34,
|
||||||
13, 14, 14, 15, 15, 15, 16, 16, 17, 17,
|
35, 35, 36, 37, 37, 38, 39, 40, 40, 41, 42, 43, 44, 44, 45, 46,
|
||||||
17, 18, 18, 19, 19, 20, 20, 21, 21, 22,
|
47, 48, 49, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
|
||||||
22, 23, 23, 24, 24, 25, 25, 26, 26, 27,
|
62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 78,
|
||||||
28, 28, 29, 29, 30, 31, 31, 32, 32, 33,
|
79, 80, 82, 83, 84, 85, 87, 88, 89, 90, 92, 93, 94, 96, 97, 99,
|
||||||
34, 34, 35, 36, 37, 37, 38, 39, 39, 40,
|
100, 101, 103, 104, 106, 107, 108, 110, 111, 113, 114, 116, 118, 119, 121, 122,
|
||||||
41, 42, 43, 43, 44, 45, 46, 47, 47, 48,
|
124, 125, 127, 129, 130, 132, 134, 135, 137, 139, 141, 142, 144, 146, 148, 149,
|
||||||
49, 50, 51, 52, 53, 54, 54, 55, 56, 57,
|
151, 153, 155, 157, 159, 161, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180,
|
||||||
58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
|
182, 185, 187, 189, 191, 193, 195, 197, 200, 202, 204, 206, 208, 211, 213, 215,
|
||||||
68, 70, 71, 72, 73, 74, 75, 76, 77, 79,
|
218, 220, 222, 225, 227, 230, 232, 234, 237, 239, 242, 244, 247, 249, 252, 255
|
||||||
80, 81, 82, 83, 85, 86, 87, 88, 90, 91,
|
};
|
||||||
92, 94, 95, 96, 98, 99, 100, 102, 103, 105,
|
|
||||||
106, 108, 109, 110, 112, 113, 115, 116, 118, 120,
|
|
||||||
121, 123, 124, 126, 128, 129, 131, 132, 134, 136,
|
|
||||||
138, 139, 141, 143, 145, 146, 148, 150, 152, 154,
|
|
||||||
155, 157, 159, 161, 163, 165, 167, 169, 171, 173,
|
|
||||||
175, 177, 179, 181, 183, 185, 187, 189, 191, 193,
|
|
||||||
196, 198, 200, 202, 204, 207, 209, 211, 214, 216,
|
|
||||||
218, 220, 223, 225, 228, 230, 232, 235, 237, 240,
|
|
||||||
242, 245, 247, 250, 252, 255,
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_LED_BREATHING_TABLE
|
#ifdef USE_LED_BREATHING_TABLE
|
||||||
const uint8_t LED_BREATHING_TABLE[] PROGMEM = {
|
const uint8_t LED_BREATHING_TABLE[256] PROGMEM = {
|
||||||
0, 0, 0, 0, 1, 1, 1, 2, 2, 3, 4, 5, 5, 6, 7, 9,
|
0, 0, 0, 0, 1, 1, 1, 2, 2, 3, 4, 5, 5, 6, 7, 9,
|
||||||
10, 11, 12, 14, 15, 17, 18, 20, 21, 23, 25, 27, 29, 31, 33, 35,
|
10, 11, 12, 14, 15, 17, 18, 20, 21, 23, 25, 27, 29, 31, 33, 35,
|
||||||
37, 40, 42, 44, 47, 49, 52, 54, 57, 59, 62, 65, 67, 70, 73, 76,
|
37, 40, 42, 44, 47, 49, 52, 54, 57, 59, 62, 65, 67, 70, 73, 76,
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ bool rgb_matrix_solid_reactive(effect_params_t* params) {
|
|||||||
for (uint8_t i = led_min; i < led_max; i++) {
|
for (uint8_t i = led_min; i < led_max; i++) {
|
||||||
RGB_MATRIX_TEST_LED_FLAGS();
|
RGB_MATRIX_TEST_LED_FLAGS();
|
||||||
uint16_t tick = max_tick;
|
uint16_t tick = max_tick;
|
||||||
for(uint8_t j = 0; j < g_last_hit_tracker.count; j++) {
|
// Reverse search to find most recent key hit
|
||||||
|
for (int8_t j = g_last_hit_tracker.count - 1; j >= 0; j--) {
|
||||||
if (g_last_hit_tracker.index[j] == i && g_last_hit_tracker.tick[j] < tick) {
|
if (g_last_hit_tracker.index[j] == i && g_last_hit_tracker.tick[j] < tick) {
|
||||||
tick = g_last_hit_tracker.tick[j];
|
tick = g_last_hit_tracker.tick[j];
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ bool rgb_matrix_solid_reactive_simple(effect_params_t* params) {
|
|||||||
for (uint8_t i = led_min; i < led_max; i++) {
|
for (uint8_t i = led_min; i < led_max; i++) {
|
||||||
RGB_MATRIX_TEST_LED_FLAGS();
|
RGB_MATRIX_TEST_LED_FLAGS();
|
||||||
uint16_t tick = max_tick;
|
uint16_t tick = max_tick;
|
||||||
for(uint8_t j = 0; j < g_last_hit_tracker.count; j++) {
|
// Reverse search to find most recent key hit
|
||||||
|
for (int8_t j = g_last_hit_tracker.count - 1; j >= 0; j--) {
|
||||||
if (g_last_hit_tracker.index[j] == i && g_last_hit_tracker.tick[j] < tick) {
|
if (g_last_hit_tracker.index[j] == i && g_last_hit_tracker.tick[j] < tick) {
|
||||||
tick = g_last_hit_tracker.tick[j];
|
tick = g_last_hit_tracker.tick[j];
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -99,12 +99,12 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
|
|||||||
|
|
||||||
#elif defined(WS2812)
|
#elif defined(WS2812)
|
||||||
|
|
||||||
extern LED_TYPE led[RGBLED_NUM];
|
extern LED_TYPE led[DRIVER_LED_TOTAL];
|
||||||
|
|
||||||
static void flush( void )
|
static void flush( void )
|
||||||
{
|
{
|
||||||
// Assumes use of RGB_DI_PIN
|
// Assumes use of RGB_DI_PIN
|
||||||
ws2812_setleds(led, RGBLED_NUM);
|
ws2812_setleds(led, DRIVER_LED_TOTAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init( void )
|
static void init( void )
|
||||||
|
|||||||
+63
-149
@@ -28,8 +28,10 @@
|
|||||||
#include "progmem.h"
|
#include "progmem.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "rgblight.h"
|
#include "rgblight.h"
|
||||||
|
#include "color.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "led_tables.h"
|
#include "led_tables.h"
|
||||||
|
#include "lib/lib8tion/lib8tion.h"
|
||||||
#ifdef VELOCIKEY_ENABLE
|
#ifdef VELOCIKEY_ENABLE
|
||||||
#include "velocikey.h"
|
#include "velocikey.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -74,16 +76,13 @@ static inline int is_static_effect(uint8_t mode) {
|
|||||||
return memchr(static_effect_table, mode, sizeof(static_effect_table)) != NULL;
|
return memchr(static_effect_table, mode, sizeof(static_effect_table)) != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
|
||||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
|
||||||
|
|
||||||
#ifdef RGBLIGHT_LED_MAP
|
#ifdef RGBLIGHT_LED_MAP
|
||||||
const uint8_t led_map[] PROGMEM = RGBLIGHT_LED_MAP;
|
const uint8_t led_map[] PROGMEM = RGBLIGHT_LED_MAP;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT
|
#ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
const uint16_t RGBLED_GRADIENT_RANGES[] PROGMEM = {360, 240, 180, 120, 90};
|
const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rgblight_config_t rgblight_config;
|
rgblight_config_t rgblight_config;
|
||||||
@@ -109,59 +108,10 @@ void rgblight_set_clipping_range(uint8_t start_pos, uint8_t num_leds) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1) {
|
void sethsv(uint8_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1) {
|
||||||
uint8_t r = 0, g = 0, b = 0, base, color;
|
HSV hsv = { hue, sat, val > RGBLIGHT_LIMIT_VAL ? RGBLIGHT_LIMIT_VAL : val };
|
||||||
|
RGB rgb = hsv_to_rgb(hsv);
|
||||||
if (val > RGBLIGHT_LIMIT_VAL) {
|
setrgb(rgb.r, rgb.g, rgb.b, led1);
|
||||||
val=RGBLIGHT_LIMIT_VAL; // limit the val
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sat == 0) { // Acromatic color (gray). Hue doesn't mind.
|
|
||||||
r = val;
|
|
||||||
g = val;
|
|
||||||
b = val;
|
|
||||||
} else {
|
|
||||||
base = ((255 - sat) * val) >> 8;
|
|
||||||
color = (val - base) * (hue % 60) / 60;
|
|
||||||
|
|
||||||
switch (hue / 60) {
|
|
||||||
case 0:
|
|
||||||
r = val;
|
|
||||||
g = base + color;
|
|
||||||
b = base;
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
r = val - color;
|
|
||||||
g = val;
|
|
||||||
b = base;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
r = base;
|
|
||||||
g = val;
|
|
||||||
b = base + color;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
r = base;
|
|
||||||
g = val - color;
|
|
||||||
b = val;
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
r = base + color;
|
|
||||||
g = base;
|
|
||||||
b = val;
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
r = val;
|
|
||||||
g = base;
|
|
||||||
b = val - color;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
r = pgm_read_byte(&CIE1931_CURVE[r]);
|
|
||||||
g = pgm_read_byte(&CIE1931_CURVE[g]);
|
|
||||||
b = pgm_read_byte(&CIE1931_CURVE[b]);
|
|
||||||
|
|
||||||
setrgb(r, g, b, led1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1) {
|
void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1) {
|
||||||
@@ -180,24 +130,9 @@ void rgblight_check_config(void) {
|
|||||||
rgblight_config.mode = RGBLIGHT_MODES;
|
rgblight_config.mode = RGBLIGHT_MODES;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rgblight_config.hue < 0) {
|
if (rgblight_config.val > RGBLIGHT_LIMIT_VAL) {
|
||||||
rgblight_config.hue = 0;
|
|
||||||
} else if (rgblight_config.hue > 360) {
|
|
||||||
rgblight_config.hue %= 360;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rgblight_config.sat < 0) {
|
|
||||||
rgblight_config.sat = 0;
|
|
||||||
} else if (rgblight_config.sat > 255) {
|
|
||||||
rgblight_config.sat = 255;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rgblight_config.val < 0) {
|
|
||||||
rgblight_config.val = 0;
|
|
||||||
} else if (rgblight_config.val > RGBLIGHT_LIMIT_VAL) {
|
|
||||||
rgblight_config.val = RGBLIGHT_LIMIT_VAL;
|
rgblight_config.val = RGBLIGHT_LIMIT_VAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t eeconfig_read_rgblight(void) {
|
uint32_t eeconfig_read_rgblight(void) {
|
||||||
@@ -220,7 +155,7 @@ void eeconfig_update_rgblight_default(void) {
|
|||||||
rgblight_config.enable = 1;
|
rgblight_config.enable = 1;
|
||||||
rgblight_config.mode = RGBLIGHT_MODE_STATIC_LIGHT;
|
rgblight_config.mode = RGBLIGHT_MODE_STATIC_LIGHT;
|
||||||
rgblight_config.hue = 0;
|
rgblight_config.hue = 0;
|
||||||
rgblight_config.sat = 255;
|
rgblight_config.sat = UINT8_MAX;
|
||||||
rgblight_config.val = RGBLIGHT_LIMIT_VAL;
|
rgblight_config.val = RGBLIGHT_LIMIT_VAL;
|
||||||
rgblight_config.speed = 0;
|
rgblight_config.speed = 0;
|
||||||
RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS;
|
RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS;
|
||||||
@@ -442,23 +377,8 @@ void rgblight_disable_noeeprom(void) {
|
|||||||
rgblight_set();
|
rgblight_set();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Deals with the messy details of incrementing an integer
|
|
||||||
static uint8_t increment( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) {
|
|
||||||
int16_t new_value = value;
|
|
||||||
new_value += step;
|
|
||||||
return MIN( MAX( new_value, min ), max );
|
|
||||||
}
|
|
||||||
|
|
||||||
static uint8_t decrement( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) {
|
|
||||||
int16_t new_value = value;
|
|
||||||
new_value -= step;
|
|
||||||
return MIN( MAX( new_value, min ), max );
|
|
||||||
}
|
|
||||||
|
|
||||||
void rgblight_increase_hue_helper(bool write_to_eeprom) {
|
void rgblight_increase_hue_helper(bool write_to_eeprom) {
|
||||||
uint16_t hue;
|
uint8_t hue = rgblight_config.hue + RGBLIGHT_HUE_STEP;
|
||||||
hue = (rgblight_config.hue+RGBLIGHT_HUE_STEP) % 360;
|
|
||||||
rgblight_sethsv_eeprom_helper(hue, rgblight_config.sat, rgblight_config.val, write_to_eeprom);
|
rgblight_sethsv_eeprom_helper(hue, rgblight_config.sat, rgblight_config.val, write_to_eeprom);
|
||||||
}
|
}
|
||||||
void rgblight_increase_hue_noeeprom(void) {
|
void rgblight_increase_hue_noeeprom(void) {
|
||||||
@@ -468,12 +388,7 @@ void rgblight_increase_hue(void) {
|
|||||||
rgblight_increase_hue_helper(true);
|
rgblight_increase_hue_helper(true);
|
||||||
}
|
}
|
||||||
void rgblight_decrease_hue_helper(bool write_to_eeprom) {
|
void rgblight_decrease_hue_helper(bool write_to_eeprom) {
|
||||||
uint16_t hue;
|
uint8_t hue = rgblight_config.hue - RGBLIGHT_HUE_STEP;
|
||||||
if (rgblight_config.hue-RGBLIGHT_HUE_STEP < 0) {
|
|
||||||
hue = (rgblight_config.hue + 360 - RGBLIGHT_HUE_STEP) % 360;
|
|
||||||
} else {
|
|
||||||
hue = (rgblight_config.hue - RGBLIGHT_HUE_STEP) % 360;
|
|
||||||
}
|
|
||||||
rgblight_sethsv_eeprom_helper(hue, rgblight_config.sat, rgblight_config.val, write_to_eeprom);
|
rgblight_sethsv_eeprom_helper(hue, rgblight_config.sat, rgblight_config.val, write_to_eeprom);
|
||||||
}
|
}
|
||||||
void rgblight_decrease_hue_noeeprom(void) {
|
void rgblight_decrease_hue_noeeprom(void) {
|
||||||
@@ -483,12 +398,7 @@ void rgblight_decrease_hue(void) {
|
|||||||
rgblight_decrease_hue_helper(true);
|
rgblight_decrease_hue_helper(true);
|
||||||
}
|
}
|
||||||
void rgblight_increase_sat_helper(bool write_to_eeprom) {
|
void rgblight_increase_sat_helper(bool write_to_eeprom) {
|
||||||
uint8_t sat;
|
uint8_t sat = qadd8(rgblight_config.sat, RGBLIGHT_SAT_STEP);
|
||||||
if (rgblight_config.sat + RGBLIGHT_SAT_STEP > 255) {
|
|
||||||
sat = 255;
|
|
||||||
} else {
|
|
||||||
sat = rgblight_config.sat + RGBLIGHT_SAT_STEP;
|
|
||||||
}
|
|
||||||
rgblight_sethsv_eeprom_helper(rgblight_config.hue, sat, rgblight_config.val, write_to_eeprom);
|
rgblight_sethsv_eeprom_helper(rgblight_config.hue, sat, rgblight_config.val, write_to_eeprom);
|
||||||
}
|
}
|
||||||
void rgblight_increase_sat_noeeprom(void) {
|
void rgblight_increase_sat_noeeprom(void) {
|
||||||
@@ -498,12 +408,7 @@ void rgblight_increase_sat(void) {
|
|||||||
rgblight_increase_sat_helper(true);
|
rgblight_increase_sat_helper(true);
|
||||||
}
|
}
|
||||||
void rgblight_decrease_sat_helper(bool write_to_eeprom) {
|
void rgblight_decrease_sat_helper(bool write_to_eeprom) {
|
||||||
uint8_t sat;
|
uint8_t sat = qsub8(rgblight_config.sat, RGBLIGHT_SAT_STEP);
|
||||||
if (rgblight_config.sat - RGBLIGHT_SAT_STEP < 0) {
|
|
||||||
sat = 0;
|
|
||||||
} else {
|
|
||||||
sat = rgblight_config.sat - RGBLIGHT_SAT_STEP;
|
|
||||||
}
|
|
||||||
rgblight_sethsv_eeprom_helper(rgblight_config.hue, sat, rgblight_config.val, write_to_eeprom);
|
rgblight_sethsv_eeprom_helper(rgblight_config.hue, sat, rgblight_config.val, write_to_eeprom);
|
||||||
}
|
}
|
||||||
void rgblight_decrease_sat_noeeprom(void) {
|
void rgblight_decrease_sat_noeeprom(void) {
|
||||||
@@ -513,12 +418,7 @@ void rgblight_decrease_sat(void) {
|
|||||||
rgblight_decrease_sat_helper(true);
|
rgblight_decrease_sat_helper(true);
|
||||||
}
|
}
|
||||||
void rgblight_increase_val_helper(bool write_to_eeprom) {
|
void rgblight_increase_val_helper(bool write_to_eeprom) {
|
||||||
uint8_t val;
|
uint8_t val = qadd8(rgblight_config.val, RGBLIGHT_VAL_STEP);
|
||||||
if (rgblight_config.val + RGBLIGHT_VAL_STEP > RGBLIGHT_LIMIT_VAL) {
|
|
||||||
val = RGBLIGHT_LIMIT_VAL;
|
|
||||||
} else {
|
|
||||||
val = rgblight_config.val + RGBLIGHT_VAL_STEP;
|
|
||||||
}
|
|
||||||
rgblight_sethsv_eeprom_helper(rgblight_config.hue, rgblight_config.sat, val, write_to_eeprom);
|
rgblight_sethsv_eeprom_helper(rgblight_config.hue, rgblight_config.sat, val, write_to_eeprom);
|
||||||
}
|
}
|
||||||
void rgblight_increase_val_noeeprom(void) {
|
void rgblight_increase_val_noeeprom(void) {
|
||||||
@@ -528,12 +428,7 @@ void rgblight_increase_val(void) {
|
|||||||
rgblight_increase_val_helper(true);
|
rgblight_increase_val_helper(true);
|
||||||
}
|
}
|
||||||
void rgblight_decrease_val_helper(bool write_to_eeprom) {
|
void rgblight_decrease_val_helper(bool write_to_eeprom) {
|
||||||
uint8_t val;
|
uint8_t val = qsub8(rgblight_config.val, RGBLIGHT_VAL_STEP);
|
||||||
if (rgblight_config.val - RGBLIGHT_VAL_STEP < 0) {
|
|
||||||
val = 0;
|
|
||||||
} else {
|
|
||||||
val = rgblight_config.val - RGBLIGHT_VAL_STEP;
|
|
||||||
}
|
|
||||||
rgblight_sethsv_eeprom_helper(rgblight_config.hue, rgblight_config.sat, val, write_to_eeprom);
|
rgblight_sethsv_eeprom_helper(rgblight_config.hue, rgblight_config.sat, val, write_to_eeprom);
|
||||||
}
|
}
|
||||||
void rgblight_decrease_val_noeeprom(void) {
|
void rgblight_decrease_val_noeeprom(void) {
|
||||||
@@ -543,18 +438,20 @@ void rgblight_decrease_val(void) {
|
|||||||
rgblight_decrease_val_helper(true);
|
rgblight_decrease_val_helper(true);
|
||||||
}
|
}
|
||||||
void rgblight_increase_speed(void) {
|
void rgblight_increase_speed(void) {
|
||||||
rgblight_config.speed = increment( rgblight_config.speed, 1, 0, 3 );
|
if (rgblight_config.speed < 3)
|
||||||
|
rgblight_config.speed++;
|
||||||
//RGBLIGHT_SPLIT_SET_CHANGE_HSVS; // NEED?
|
//RGBLIGHT_SPLIT_SET_CHANGE_HSVS; // NEED?
|
||||||
eeconfig_update_rgblight(rgblight_config.raw);//EECONFIG needs to be increased to support this
|
eeconfig_update_rgblight(rgblight_config.raw);//EECONFIG needs to be increased to support this
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_decrease_speed(void) {
|
void rgblight_decrease_speed(void) {
|
||||||
rgblight_config.speed = decrement( rgblight_config.speed, 1, 0, 3 );
|
if (rgblight_config.speed > 0)
|
||||||
|
rgblight_config.speed--;
|
||||||
//RGBLIGHT_SPLIT_SET_CHANGE_HSVS; // NEED??
|
//RGBLIGHT_SPLIT_SET_CHANGE_HSVS; // NEED??
|
||||||
eeconfig_update_rgblight(rgblight_config.raw);//EECONFIG needs to be increased to support this
|
eeconfig_update_rgblight(rgblight_config.raw);//EECONFIG needs to be increased to support this
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_noeeprom_old(uint16_t hue, uint8_t sat, uint8_t val) {
|
void rgblight_sethsv_noeeprom_old(uint8_t hue, uint8_t sat, uint8_t val) {
|
||||||
if (rgblight_config.enable) {
|
if (rgblight_config.enable) {
|
||||||
LED_TYPE tmp_led;
|
LED_TYPE tmp_led;
|
||||||
sethsv(hue, sat, val, &tmp_led);
|
sethsv(hue, sat, val, &tmp_led);
|
||||||
@@ -563,7 +460,7 @@ void rgblight_sethsv_noeeprom_old(uint16_t hue, uint8_t sat, uint8_t val) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_eeprom_helper(uint16_t hue, uint8_t sat, uint8_t val, bool write_to_eeprom) {
|
void rgblight_sethsv_eeprom_helper(uint8_t hue, uint8_t sat, uint8_t val, bool write_to_eeprom) {
|
||||||
if (rgblight_config.enable) {
|
if (rgblight_config.enable) {
|
||||||
rgblight_status.base_mode = mode_base_table[rgblight_config.mode];
|
rgblight_status.base_mode = mode_base_table[rgblight_config.mode];
|
||||||
if (rgblight_config.mode == RGBLIGHT_MODE_STATIC_LIGHT) {
|
if (rgblight_config.mode == RGBLIGHT_MODE_STATIC_LIGHT) {
|
||||||
@@ -596,13 +493,22 @@ void rgblight_sethsv_eeprom_helper(uint16_t hue, uint8_t sat, uint8_t val, bool
|
|||||||
#ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT
|
#ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||||
else if (rgblight_status.base_mode == RGBLIGHT_MODE_STATIC_GRADIENT) {
|
else if (rgblight_status.base_mode == RGBLIGHT_MODE_STATIC_GRADIENT) {
|
||||||
// static gradient
|
// static gradient
|
||||||
uint16_t _hue;
|
|
||||||
uint8_t delta = rgblight_config.mode - rgblight_status.base_mode;
|
uint8_t delta = rgblight_config.mode - rgblight_status.base_mode;
|
||||||
int8_t direction = (delta % 2) ? -1 : 1;
|
bool direction = (delta % 2) == 0;
|
||||||
uint16_t range = pgm_read_word(&RGBLED_GRADIENT_RANGES[delta / 2]);
|
#ifdef __AVR__
|
||||||
|
// probably due to how pgm_read_word is defined for ARM, but the ARM compiler really hates this line
|
||||||
|
uint8_t range = pgm_read_word(&RGBLED_GRADIENT_RANGES[delta / 2]);
|
||||||
|
#else
|
||||||
|
uint8_t range = RGBLED_GRADIENT_RANGES[delta / 2];
|
||||||
|
#endif
|
||||||
for (uint8_t i = 0; i < RGBLED_NUM; i++) {
|
for (uint8_t i = 0; i < RGBLED_NUM; i++) {
|
||||||
_hue = (range / RGBLED_NUM * i * direction + hue + 360) % 360;
|
uint8_t _hue = ((uint16_t)i * (uint16_t)range) / RGBLED_NUM;
|
||||||
dprintf("rgblight rainbow set hsv: %u,%u,%d,%u\n", i, _hue, direction, range);
|
if (direction) {
|
||||||
|
_hue = hue + _hue;
|
||||||
|
} else {
|
||||||
|
_hue = hue - _hue;
|
||||||
|
}
|
||||||
|
dprintf("rgblight rainbow set hsv: %d,%d,%d,%u\n", i, _hue, direction, range);
|
||||||
sethsv(_hue, sat, val, (LED_TYPE *)&led[i]);
|
sethsv(_hue, sat, val, (LED_TYPE *)&led[i]);
|
||||||
}
|
}
|
||||||
rgblight_set();
|
rgblight_set();
|
||||||
@@ -628,15 +534,15 @@ void rgblight_sethsv_eeprom_helper(uint16_t hue, uint8_t sat, uint8_t val, bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val) {
|
void rgblight_sethsv(uint8_t hue, uint8_t sat, uint8_t val) {
|
||||||
rgblight_sethsv_eeprom_helper(hue, sat, val, true);
|
rgblight_sethsv_eeprom_helper(hue, sat, val, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val) {
|
void rgblight_sethsv_noeeprom(uint8_t hue, uint8_t sat, uint8_t val) {
|
||||||
rgblight_sethsv_eeprom_helper(hue, sat, val, false);
|
rgblight_sethsv_eeprom_helper(hue, sat, val, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t rgblight_get_hue(void) {
|
uint8_t rgblight_get_hue(void) {
|
||||||
return rgblight_config.hue;
|
return rgblight_config.hue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -668,7 +574,7 @@ void rgblight_setrgb_at(uint8_t r, uint8_t g, uint8_t b, uint8_t index) {
|
|||||||
rgblight_set();
|
rgblight_set();
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_at(uint16_t hue, uint8_t sat, uint8_t val, uint8_t index) {
|
void rgblight_sethsv_at(uint8_t hue, uint8_t sat, uint8_t val, uint8_t index) {
|
||||||
if (!rgblight_config.enable) { return; }
|
if (!rgblight_config.enable) { return; }
|
||||||
|
|
||||||
LED_TYPE tmp_led;
|
LED_TYPE tmp_led;
|
||||||
@@ -701,7 +607,7 @@ void rgblight_setrgb_range(uint8_t r, uint8_t g, uint8_t b, uint8_t start, uint8
|
|||||||
wait_ms(1);
|
wait_ms(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_range(uint16_t hue, uint8_t sat, uint8_t val, uint8_t start, uint8_t end) {
|
void rgblight_sethsv_range(uint8_t hue, uint8_t sat, uint8_t val, uint8_t start, uint8_t end) {
|
||||||
if (!rgblight_config.enable) { return; }
|
if (!rgblight_config.enable) { return; }
|
||||||
|
|
||||||
LED_TYPE tmp_led;
|
LED_TYPE tmp_led;
|
||||||
@@ -717,11 +623,11 @@ void rgblight_setrgb_slave(uint8_t r, uint8_t g, uint8_t b) {
|
|||||||
rgblight_setrgb_range(r, g, b, (uint8_t) RGBLED_NUM/2, (uint8_t) RGBLED_NUM);
|
rgblight_setrgb_range(r, g, b, (uint8_t) RGBLED_NUM/2, (uint8_t) RGBLED_NUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_master(uint16_t hue, uint8_t sat, uint8_t val) {
|
void rgblight_sethsv_master(uint8_t hue, uint8_t sat, uint8_t val) {
|
||||||
rgblight_sethsv_range(hue, sat, val, 0, (uint8_t) RGBLED_NUM/2);
|
rgblight_sethsv_range(hue, sat, val, 0, (uint8_t) RGBLED_NUM/2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rgblight_sethsv_slave(uint16_t hue, uint8_t sat, uint8_t val) {
|
void rgblight_sethsv_slave(uint8_t hue, uint8_t sat, uint8_t val) {
|
||||||
rgblight_sethsv_range(hue, sat, val, (uint8_t) RGBLED_NUM/2, (uint8_t) RGBLED_NUM);
|
rgblight_sethsv_range(hue, sat, val, (uint8_t) RGBLED_NUM/2, (uint8_t) RGBLED_NUM);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -973,6 +879,14 @@ void rgblight_task(void) {
|
|||||||
|
|
||||||
// Effects
|
// Effects
|
||||||
#ifdef RGBLIGHT_EFFECT_BREATHING
|
#ifdef RGBLIGHT_EFFECT_BREATHING
|
||||||
|
|
||||||
|
#ifndef RGBLIGHT_EFFECT_BREATHE_CENTER
|
||||||
|
#ifndef RGBLIGHT_BREATHE_TABLE_SIZE
|
||||||
|
#define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256 or 128 or 64
|
||||||
|
#endif
|
||||||
|
#include <rgblight_breathe_table.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
const uint8_t RGBLED_BREATHING_INTERVALS[] PROGMEM = {30, 20, 10, 5};
|
const uint8_t RGBLED_BREATHING_INTERVALS[] PROGMEM = {30, 20, 10, 5};
|
||||||
|
|
||||||
@@ -980,9 +894,13 @@ void rgblight_effect_breathing(animation_status_t *anim) {
|
|||||||
float val;
|
float val;
|
||||||
|
|
||||||
// http://sean.voisen.org/blog/2011/10/breathing-led-with-arduino/
|
// http://sean.voisen.org/blog/2011/10/breathing-led-with-arduino/
|
||||||
|
#ifdef RGBLIGHT_EFFECT_BREATHE_TABLE
|
||||||
|
val = pgm_read_byte(&rgblight_effect_breathe_table[anim->pos / table_scale]);
|
||||||
|
#else
|
||||||
val = (exp(sin((anim->pos/255.0)*M_PI)) - RGBLIGHT_EFFECT_BREATHE_CENTER/M_E)*(RGBLIGHT_EFFECT_BREATHE_MAX/(M_E-1/M_E));
|
val = (exp(sin((anim->pos/255.0)*M_PI)) - RGBLIGHT_EFFECT_BREATHE_CENTER/M_E)*(RGBLIGHT_EFFECT_BREATHE_MAX/(M_E-1/M_E));
|
||||||
|
#endif
|
||||||
rgblight_sethsv_noeeprom_old(rgblight_config.hue, rgblight_config.sat, val);
|
rgblight_sethsv_noeeprom_old(rgblight_config.hue, rgblight_config.sat, val);
|
||||||
anim->pos = (anim->pos + 1) % 256;
|
anim->pos = (anim->pos + 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -992,36 +910,32 @@ const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {120, 60, 30};
|
|||||||
|
|
||||||
void rgblight_effect_rainbow_mood(animation_status_t *anim) {
|
void rgblight_effect_rainbow_mood(animation_status_t *anim) {
|
||||||
rgblight_sethsv_noeeprom_old(anim->current_hue, rgblight_config.sat, rgblight_config.val);
|
rgblight_sethsv_noeeprom_old(anim->current_hue, rgblight_config.sat, rgblight_config.val);
|
||||||
anim->current_hue = (anim->current_hue + 1) % 360;
|
anim->current_hue++;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
#ifdef RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||||
#ifndef RGBLIGHT_RAINBOW_SWIRL_RANGE
|
#ifndef RGBLIGHT_RAINBOW_SWIRL_RANGE
|
||||||
#define RGBLIGHT_RAINBOW_SWIRL_RANGE 360
|
#define RGBLIGHT_RAINBOW_SWIRL_RANGE 255
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {100, 50, 20};
|
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {100, 50, 20};
|
||||||
|
|
||||||
void rgblight_effect_rainbow_swirl(animation_status_t *anim) {
|
void rgblight_effect_rainbow_swirl(animation_status_t *anim) {
|
||||||
uint16_t hue;
|
uint8_t hue;
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
for (i = 0; i < RGBLED_NUM; i++) {
|
for (i = 0; i < RGBLED_NUM; i++) {
|
||||||
hue = (RGBLIGHT_RAINBOW_SWIRL_RANGE / RGBLED_NUM * i + anim->current_hue) % 360;
|
hue = (RGBLIGHT_RAINBOW_SWIRL_RANGE / RGBLED_NUM * i + anim->current_hue);
|
||||||
sethsv(hue, rgblight_config.sat, rgblight_config.val, (LED_TYPE *)&led[i]);
|
sethsv(hue, rgblight_config.sat, rgblight_config.val, (LED_TYPE *)&led[i]);
|
||||||
}
|
}
|
||||||
rgblight_set();
|
rgblight_set();
|
||||||
|
|
||||||
if (anim->delta % 2) {
|
if (anim->delta % 2) {
|
||||||
anim->current_hue = (anim->current_hue + 1) % 360;
|
anim->current_hue++;
|
||||||
} else {
|
} else {
|
||||||
if (anim->current_hue - 1 < 0) {
|
anim->current_hue--;
|
||||||
anim->current_hue = 359;
|
|
||||||
} else {
|
|
||||||
anim->current_hue = anim->current_hue - 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -1146,12 +1060,12 @@ void rgblight_effect_knight(animation_status_t *anim) {
|
|||||||
|
|
||||||
#ifdef RGBLIGHT_EFFECT_CHRISTMAS
|
#ifdef RGBLIGHT_EFFECT_CHRISTMAS
|
||||||
void rgblight_effect_christmas(animation_status_t *anim) {
|
void rgblight_effect_christmas(animation_status_t *anim) {
|
||||||
uint16_t hue;
|
uint8_t hue;
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
anim->current_offset = (anim->current_offset + 1) % 2;
|
anim->current_offset = (anim->current_offset + 1) % 2;
|
||||||
for (i = 0; i < RGBLED_NUM; i++) {
|
for (i = 0; i < RGBLED_NUM; i++) {
|
||||||
hue = 0 + ((i/RGBLIGHT_EFFECT_CHRISTMAS_STEP + anim->current_offset) % 2) * 120;
|
hue = 0 + ((i/RGBLIGHT_EFFECT_CHRISTMAS_STEP + anim->current_offset) % 2) * 85;
|
||||||
sethsv(hue, rgblight_config.sat, rgblight_config.val, (LED_TYPE *)&led[i]);
|
sethsv(hue, rgblight_config.sat, rgblight_config.val, (LED_TYPE *)&led[i]);
|
||||||
}
|
}
|
||||||
rgblight_set();
|
rgblight_set();
|
||||||
|
|||||||
+15
-16
@@ -80,9 +80,7 @@ enum RGBLIGHT_EFFECT_MODE {
|
|||||||
|
|
||||||
#define RGBLIGHT_MODES (RGBLIGHT_MODE_last-1)
|
#define RGBLIGHT_MODES (RGBLIGHT_MODE_last-1)
|
||||||
|
|
||||||
#ifndef RGBLIGHT_EFFECT_BREATHE_CENTER
|
// sample: #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85
|
||||||
#define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1-2.7
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef RGBLIGHT_EFFECT_BREATHE_MAX
|
#ifndef RGBLIGHT_EFFECT_BREATHE_MAX
|
||||||
#define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0-255
|
#define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0-255
|
||||||
@@ -113,7 +111,7 @@ enum RGBLIGHT_EFFECT_MODE {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RGBLIGHT_HUE_STEP
|
#ifndef RGBLIGHT_HUE_STEP
|
||||||
#define RGBLIGHT_HUE_STEP 10
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
#endif
|
#endif
|
||||||
#ifndef RGBLIGHT_SAT_STEP
|
#ifndef RGBLIGHT_SAT_STEP
|
||||||
#define RGBLIGHT_SAT_STEP 17
|
#define RGBLIGHT_SAT_STEP 17
|
||||||
@@ -151,12 +149,13 @@ extern const uint8_t RGBLED_KNIGHT_INTERVALS[3] PROGMEM;
|
|||||||
extern const uint16_t RGBLED_RGBTEST_INTERVALS[1] PROGMEM;
|
extern const uint16_t RGBLED_RGBTEST_INTERVALS[1] PROGMEM;
|
||||||
extern bool is_rgblight_initialized;
|
extern bool is_rgblight_initialized;
|
||||||
|
|
||||||
|
// Should stay in sycn with rgb matrix config as we reuse eeprom storage for both (for now)
|
||||||
typedef union {
|
typedef union {
|
||||||
uint32_t raw;
|
uint32_t raw;
|
||||||
struct {
|
struct {
|
||||||
bool enable :1;
|
bool enable :1;
|
||||||
uint8_t mode :6;
|
uint8_t mode :7;
|
||||||
uint16_t hue :9;
|
uint8_t hue :8;
|
||||||
uint8_t sat :8;
|
uint8_t sat :8;
|
||||||
uint8_t val :8;
|
uint8_t val :8;
|
||||||
uint8_t speed :8;//EECONFIG needs to be increased to support this
|
uint8_t speed :8;//EECONFIG needs to be increased to support this
|
||||||
@@ -211,19 +210,19 @@ void rgblight_increase_val(void);
|
|||||||
void rgblight_decrease_val(void);
|
void rgblight_decrease_val(void);
|
||||||
void rgblight_increase_speed(void);
|
void rgblight_increase_speed(void);
|
||||||
void rgblight_decrease_speed(void);
|
void rgblight_decrease_speed(void);
|
||||||
void rgblight_sethsv(uint16_t hue, uint8_t sat, uint8_t val);
|
void rgblight_sethsv(uint8_t hue, uint8_t sat, uint8_t val);
|
||||||
uint16_t rgblight_get_hue(void);
|
uint8_t rgblight_get_hue(void);
|
||||||
uint8_t rgblight_get_sat(void);
|
uint8_t rgblight_get_sat(void);
|
||||||
uint8_t rgblight_get_val(void);
|
uint8_t rgblight_get_val(void);
|
||||||
void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b);
|
void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b);
|
||||||
void rgblight_setrgb_at(uint8_t r, uint8_t g, uint8_t b, uint8_t index);
|
void rgblight_setrgb_at(uint8_t r, uint8_t g, uint8_t b, uint8_t index);
|
||||||
void rgblight_sethsv_at(uint16_t hue, uint8_t sat, uint8_t val, uint8_t index);
|
void rgblight_sethsv_at(uint8_t hue, uint8_t sat, uint8_t val, uint8_t index);
|
||||||
void rgblight_setrgb_range(uint8_t r, uint8_t g, uint8_t b, uint8_t start, uint8_t end);
|
void rgblight_setrgb_range(uint8_t r, uint8_t g, uint8_t b, uint8_t start, uint8_t end);
|
||||||
void rgblight_sethsv_range(uint16_t hue, uint8_t sat, uint8_t val, uint8_t start, uint8_t end);
|
void rgblight_sethsv_range(uint8_t hue, uint8_t sat, uint8_t val, uint8_t start, uint8_t end);
|
||||||
void rgblight_setrgb_master(uint8_t r, uint8_t g, uint8_t b);
|
void rgblight_setrgb_master(uint8_t r, uint8_t g, uint8_t b);
|
||||||
void rgblight_setrgb_slave(uint8_t r, uint8_t g, uint8_t b);
|
void rgblight_setrgb_slave(uint8_t r, uint8_t g, uint8_t b);
|
||||||
void rgblight_sethsv_master(uint16_t hue, uint8_t sat, uint8_t val);
|
void rgblight_sethsv_master(uint8_t hue, uint8_t sat, uint8_t val);
|
||||||
void rgblight_sethsv_slave(uint16_t hue, uint8_t sat, uint8_t val);
|
void rgblight_sethsv_slave(uint8_t hue, uint8_t sat, uint8_t val);
|
||||||
void rgblight_set_clipping_range(uint8_t start_pos, uint8_t num_leds);
|
void rgblight_set_clipping_range(uint8_t start_pos, uint8_t num_leds);
|
||||||
|
|
||||||
uint32_t eeconfig_read_rgblight(void);
|
uint32_t eeconfig_read_rgblight(void);
|
||||||
@@ -234,10 +233,10 @@ void eeconfig_debug_rgblight(void);
|
|||||||
void rgb_matrix_increase(void);
|
void rgb_matrix_increase(void);
|
||||||
void rgb_matrix_decrease(void);
|
void rgb_matrix_decrease(void);
|
||||||
|
|
||||||
void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1);
|
void sethsv(uint8_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1);
|
||||||
void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1);
|
void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1);
|
||||||
|
|
||||||
void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val);
|
void rgblight_sethsv_noeeprom(uint8_t hue, uint8_t sat, uint8_t val);
|
||||||
void rgblight_mode_noeeprom(uint8_t mode);
|
void rgblight_mode_noeeprom(uint8_t mode);
|
||||||
void rgblight_toggle_noeeprom(void);
|
void rgblight_toggle_noeeprom(void);
|
||||||
void rgblight_enable_noeeprom(void);
|
void rgblight_enable_noeeprom(void);
|
||||||
@@ -251,7 +250,7 @@ void rgblight_decrease_sat_noeeprom(void);
|
|||||||
void rgblight_increase_val_noeeprom(void);
|
void rgblight_increase_val_noeeprom(void);
|
||||||
void rgblight_decrease_val_noeeprom(void);
|
void rgblight_decrease_val_noeeprom(void);
|
||||||
|
|
||||||
void rgblight_sethsv_eeprom_helper(uint16_t hue, uint8_t sat, uint8_t val, bool write_to_eeprom);
|
void rgblight_sethsv_eeprom_helper(uint8_t hue, uint8_t sat, uint8_t val, bool write_to_eeprom);
|
||||||
void rgblight_mode_eeprom_helper(uint8_t mode, bool write_to_eeprom);
|
void rgblight_mode_eeprom_helper(uint8_t mode, bool write_to_eeprom);
|
||||||
|
|
||||||
|
|
||||||
@@ -274,7 +273,7 @@ typedef struct _animation_status_t {
|
|||||||
union {
|
union {
|
||||||
uint16_t pos16;
|
uint16_t pos16;
|
||||||
uint8_t pos;
|
uint8_t pos;
|
||||||
int16_t current_hue;
|
int8_t current_hue;
|
||||||
uint16_t current_offset;
|
uint16_t current_offset;
|
||||||
};
|
};
|
||||||
} animation_status_t;
|
} animation_status_t;
|
||||||
|
|||||||
@@ -0,0 +1,116 @@
|
|||||||
|
#ifndef RGBLIGHT_EFFECT_BREATHE_TABLE
|
||||||
|
#define RGBLIGHT_EFFECT_BREATHE_TABLE
|
||||||
|
|
||||||
|
const uint8_t rgblight_effect_breathe_table[] PROGMEM = {
|
||||||
|
/* #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 */
|
||||||
|
/* #define RGBLIGHT_EFFECT_BREATHE_MAX 255 */
|
||||||
|
|
||||||
|
#if RGBLIGHT_BREATHE_TABLE_SIZE == 256
|
||||||
|
0x22, 0x23, 0x25, 0x26, 0x28, 0x29, 0x2a, 0x2c,
|
||||||
|
0x2d, 0x2f, 0x30, 0x32, 0x33, 0x35, 0x36, 0x38,
|
||||||
|
0x3a, 0x3b, 0x3d, 0x3e, 0x40, 0x42, 0x43, 0x45,
|
||||||
|
0x47, 0x49, 0x4a, 0x4c, 0x4e, 0x50, 0x51, 0x53,
|
||||||
|
0x55, 0x57, 0x59, 0x5a, 0x5c, 0x5e, 0x60, 0x62,
|
||||||
|
0x64, 0x66, 0x68, 0x69, 0x6b, 0x6d, 0x6f, 0x71,
|
||||||
|
0x73, 0x75, 0x77, 0x79, 0x7b, 0x7d, 0x7f, 0x81,
|
||||||
|
0x83, 0x85, 0x87, 0x89, 0x8a, 0x8c, 0x8e, 0x90,
|
||||||
|
0x92, 0x94, 0x96, 0x98, 0x9a, 0x9c, 0x9e, 0x9f,
|
||||||
|
0xa1, 0xa3, 0xa5, 0xa7, 0xa8, 0xaa, 0xac, 0xae,
|
||||||
|
0xaf, 0xb1, 0xb3, 0xb4, 0xb6, 0xb8, 0xb9, 0xbb,
|
||||||
|
0xbc, 0xbe, 0xbf, 0xc1, 0xc2, 0xc3, 0xc5, 0xc6,
|
||||||
|
0xc7, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xd0,
|
||||||
|
0xd1, 0xd2, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
|
||||||
|
0xd7, 0xd8, 0xd9, 0xd9, 0xda, 0xda, 0xdb, 0xdb,
|
||||||
|
0xdb, 0xdc, 0xdc, 0xdc, 0xdc, 0xdc, 0xdd, 0xdd,
|
||||||
|
0xdd, 0xdd, 0xdc, 0xdc, 0xdc, 0xdc, 0xdc, 0xdb,
|
||||||
|
0xdb, 0xdb, 0xda, 0xda, 0xd9, 0xd9, 0xd8, 0xd7,
|
||||||
|
0xd7, 0xd6, 0xd5, 0xd4, 0xd3, 0xd2, 0xd2, 0xd1,
|
||||||
|
0xd0, 0xce, 0xcd, 0xcc, 0xcb, 0xca, 0xc9, 0xc7,
|
||||||
|
0xc6, 0xc5, 0xc3, 0xc2, 0xc1, 0xbf, 0xbe, 0xbc,
|
||||||
|
0xbb, 0xb9, 0xb8, 0xb6, 0xb4, 0xb3, 0xb1, 0xaf,
|
||||||
|
0xae, 0xac, 0xaa, 0xa8, 0xa7, 0xa5, 0xa3, 0xa1,
|
||||||
|
0x9f, 0x9e, 0x9c, 0x9a, 0x98, 0x96, 0x94, 0x92,
|
||||||
|
0x90, 0x8e, 0x8c, 0x8a, 0x89, 0x87, 0x85, 0x83,
|
||||||
|
0x81, 0x7f, 0x7d, 0x7b, 0x79, 0x77, 0x75, 0x73,
|
||||||
|
0x71, 0x6f, 0x6d, 0x6b, 0x69, 0x68, 0x66, 0x64,
|
||||||
|
0x62, 0x60, 0x5e, 0x5c, 0x5a, 0x59, 0x57, 0x55,
|
||||||
|
0x53, 0x51, 0x50, 0x4e, 0x4c, 0x4a, 0x49, 0x47,
|
||||||
|
0x45, 0x43, 0x42, 0x40, 0x3e, 0x3d, 0x3b, 0x3a,
|
||||||
|
0x38, 0x36, 0x35, 0x33, 0x32, 0x30, 0x2f, 0x2d,
|
||||||
|
0x2c, 0x2a, 0x29, 0x28, 0x26, 0x25, 0x23, 0x22
|
||||||
|
#endif /* 256 bytes table */
|
||||||
|
|
||||||
|
#if RGBLIGHT_BREATHE_TABLE_SIZE == 128
|
||||||
|
0x22, 0x25, 0x28, 0x2a,
|
||||||
|
0x2d, 0x30, 0x33, 0x36,
|
||||||
|
0x3a, 0x3d, 0x40, 0x43,
|
||||||
|
0x47, 0x4a, 0x4e, 0x51,
|
||||||
|
0x55, 0x59, 0x5c, 0x60,
|
||||||
|
0x64, 0x68, 0x6b, 0x6f,
|
||||||
|
0x73, 0x77, 0x7b, 0x7f,
|
||||||
|
0x83, 0x87, 0x8a, 0x8e,
|
||||||
|
0x92, 0x96, 0x9a, 0x9e,
|
||||||
|
0xa1, 0xa5, 0xa8, 0xac,
|
||||||
|
0xaf, 0xb3, 0xb6, 0xb9,
|
||||||
|
0xbc, 0xbf, 0xc2, 0xc5,
|
||||||
|
0xc7, 0xca, 0xcc, 0xce,
|
||||||
|
0xd1, 0xd2, 0xd4, 0xd6,
|
||||||
|
0xd7, 0xd9, 0xda, 0xdb,
|
||||||
|
0xdb, 0xdc, 0xdc, 0xdd,
|
||||||
|
0xdd, 0xdc, 0xdc, 0xdc,
|
||||||
|
0xdb, 0xda, 0xd9, 0xd8,
|
||||||
|
0xd7, 0xd5, 0xd3, 0xd2,
|
||||||
|
0xd0, 0xcd, 0xcb, 0xc9,
|
||||||
|
0xc6, 0xc3, 0xc1, 0xbe,
|
||||||
|
0xbb, 0xb8, 0xb4, 0xb1,
|
||||||
|
0xae, 0xaa, 0xa7, 0xa3,
|
||||||
|
0x9f, 0x9c, 0x98, 0x94,
|
||||||
|
0x90, 0x8c, 0x89, 0x85,
|
||||||
|
0x81, 0x7d, 0x79, 0x75,
|
||||||
|
0x71, 0x6d, 0x69, 0x66,
|
||||||
|
0x62, 0x5e, 0x5a, 0x57,
|
||||||
|
0x53, 0x50, 0x4c, 0x49,
|
||||||
|
0x45, 0x42, 0x3e, 0x3b,
|
||||||
|
0x38, 0x35, 0x32, 0x2f,
|
||||||
|
0x2c, 0x29, 0x26, 0x23
|
||||||
|
#endif /* 128 bytes table */
|
||||||
|
|
||||||
|
#if RGBLIGHT_BREATHE_TABLE_SIZE == 64
|
||||||
|
0x22, 0x28,
|
||||||
|
0x2d, 0x33,
|
||||||
|
0x3a, 0x40,
|
||||||
|
0x47, 0x4e,
|
||||||
|
0x55, 0x5c,
|
||||||
|
0x64, 0x6b,
|
||||||
|
0x73, 0x7b,
|
||||||
|
0x83, 0x8a,
|
||||||
|
0x92, 0x9a,
|
||||||
|
0xa1, 0xa8,
|
||||||
|
0xaf, 0xb6,
|
||||||
|
0xbc, 0xc2,
|
||||||
|
0xc7, 0xcc,
|
||||||
|
0xd1, 0xd4,
|
||||||
|
0xd7, 0xda,
|
||||||
|
0xdb, 0xdc,
|
||||||
|
0xdd, 0xdc,
|
||||||
|
0xdb, 0xd9,
|
||||||
|
0xd7, 0xd3,
|
||||||
|
0xd0, 0xcb,
|
||||||
|
0xc6, 0xc1,
|
||||||
|
0xbb, 0xb4,
|
||||||
|
0xae, 0xa7,
|
||||||
|
0x9f, 0x98,
|
||||||
|
0x90, 0x89,
|
||||||
|
0x81, 0x79,
|
||||||
|
0x71, 0x69,
|
||||||
|
0x62, 0x5a,
|
||||||
|
0x53, 0x4c,
|
||||||
|
0x45, 0x3e,
|
||||||
|
0x38, 0x32,
|
||||||
|
0x2c, 0x26
|
||||||
|
#endif /* 64 bytes table */
|
||||||
|
};
|
||||||
|
|
||||||
|
static const int table_scale = 256/sizeof(rgblight_effect_breathe_table);
|
||||||
|
|
||||||
|
#endif /* RGBLIGHT_EFFECT_BREATHE_TABLE */
|
||||||
Loaded 100 of 110 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user