首页 > 其他分享 >scG72自定义配列并用qmk编译固件

scG72自定义配列并用qmk编译固件

时间:2022-10-27 18:13:48浏览次数:66  
标签:kb 自定义 keyboards firmware 配列 qmk 1a8ab7

自定义72键盘配列,下面为编译固件过程:

1. 首先在 http://www.keyboard-layout-editor.com/#/ 设计自己的配列。这是我设计好的:

以下是该配列的Raw data文件,直接复制,不要用鼠标选择,直接鼠标点击,ctrl + A, ctrl + c,否则,你懂的:

[{c:"#1a8ab7",f:4},"`\n~",{c:"#cccccc"},"1\n\n!\n\n\n\n\n\n\n\nF1","2\n\n@\n\n\n\n\n\n\n\nF2","3\n\n#\n\n\n\n\n\n\n\nF3","4\n\n$\n\n\n\n\n\n\n\nF4","5\n\n%\n\n\n\n\n\n\n\nF5","6\n\n^\n\n\n\n\n\n\n\nF6","7\n\n&\n\n\n\n\n\n\n\nF7","8\n\n*\n\n\n\n\n\n\n\nF8","9\n\n(\n\n\n\n\n\n\n\nF9","0\n\n)\n\n\n\n\n\n\n\nF10","-\n\n_\n\n\n\n\n\n\n\nF11","=\n\n+\n\n\n\n\n\n\n\nF12",{c:"#ca1a0e",a:6,w:2},"Backspace",{c:"#1a8ab7",a:4},"F8\nInsert",{c:"#c4852c"},"F12\nPrtSc"],
[{c:"#1a8ab7",a:6,w:1.5},"Tab",{c:"#cccccc",a:4},"Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\",{c:"#1a8ab7"},"F4\nHome","F11\nPgDn"],
[{c:"#ca1a0e",w:1.75},"Esc\nCapLock",{c:"#cccccc"},"A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{c:"#ca1a0e",a:6,w:2.25},"Enter",{c:"#1a8ab7",a:4},"F3\nEnd",{c:"#d48600"},"F10\nPgUp"],
[{c:"#1a8ab7",a:6,w:2.25},"Shift",{c:"#cccccc",a:4},"Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{c:"#1a8ab7",a:6,w:2.75},"Shift",{c:"#d48600",a:7,f:9},"↑",{c:"#ca1a0e",a:4,f:4},"Delete\nF9"],
[{c:"#1a8ab7",a:6,w:1.25},"Ctrl",{w:1.25},"Linux",{w:1.25},"Alt",{c:"#cccccc",a:7,f:3,w:6.25},"",{c:"#1a8ab7",a:6,f:4},"Alt","Fn","]","Ctrl",{c:"#d48600",a:7,f:9},"←","↓","→"]

2. 打开 https://kbfirmware.com/ 。在Import 输入区,将步骤1制作的 Raw Data粘贴进输入区,生成和修改连线图:

  2.1 检查 WIRING 是否正确;

  2.2 设置管脚和控制器、LED管脚等,此处可以选择ATmega32U4

 

  2.2 设置 KEYMAP。

  2.3 COMPILE 编译后,下载压缩包(Download.zip)。

3. 修改文件成合适的:

  3.0 打开压缩文件,将压缩文件中的 `qmk_firmware/keyboards/kb` 解压到用户目录 `ice/qmk_firmware/keyboards/kb`。

  3.1 打开 QMK MSYS,进入目录用户目录下的 `qmk_firmware/keyboards/dz60`。

  3.2 将 `qmk_firmware/keyboards/dz6` 中的 config.h, rules.md 替换到 `qmk_firmware/keyboards/kb` 中。

  3.3.0 用文本编辑器打开 `kb/kb.h`,替换(区分大小写)“KEYMAP” 为 “LAYOUT”。

  3.3.1 另复制 `#define LAYOUT( ... )` 并添加到当前文件中;将复制后的 `#define LAYOUT( ... )` 为 `#define myhhkb( ... )`。(随便取个名)

  3.4 打开 `kb/keymaps/default/keymaps.c` ,替换(区分大小写)“KEYMAP” 为 “LAYOUT”。

  3.5 可以在 keymaps.c 添加宏(教程:https://docs.qmk.fm/#/feature_macros)。

4.0 在 `kb/config.h` 添加 “#define BACKLIGHT_CAPS_LOCK”。(指定大写锁定指示灯)。

5.0 编译

标签:kb,自定义,keyboards,firmware,配列,qmk,1a8ab7
From: https://www.cnblogs.com/guochaoxxl/p/16833217.html

相关文章