This commit is contained in:
CodyZhang
2020-06-02 18:33:15 +08:00
commit 7896c0f841
14 changed files with 533 additions and 0 deletions

BIN
files/zadig-2.5.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
img/xd60_current.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
img/zadig_01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,212 @@
[
[
{
"c": "#b81b24",
"a": 3,
"fa": [
4
]
},
"ESC\n\n\n\n`\n~",
{
"c": "#cccccc",
"a": 4,
"f": 3
},
"!\n1\n\n\nF1",
{
"f": 3
},
"@\n2\n\n\nF2",
{
"f": 3
},
"#\n3\n\n\nF3",
{
"f": 3
},
"$\n4\n\n\nF4",
{
"f": 3
},
"%\n5\n\n\nF5",
{
"f": 3
},
"^\n6\n\n\nF6",
{
"f": 3
},
"&\n7\n\n\nF7",
{
"f": 3
},
"*\n8\n\n\nF8",
{
"f": 3
},
"(\n9\n\n\nF9",
{
"f": 3
},
")\n0\n\n\nF10",
{
"f": 3
},
"_\n-\n\n\nF11",
{
"f": 3
},
"+\n=\n\n\nF12",
{
"f": 3
},
"|\n\\",
"\nSpace\n\n\n\n\nBack"
],
[
{
"w": 1.5
},
"\nTab",
"\nQ",
"\nW",
"\nE\n\n\n<i class='fa fa-caret-up'></i>",
"\nR",
"\nT",
"\nY\n\n\nCal",
"\nU",
"\nI\n\n\nIns",
"\nO",
"\nP\n\n\nPrtSc",
{
"a": 5,
"f": 3
},
"{\n[\n\n\nScrLk",
{
"f": 3
},
"}\n]\n\n\nPause",
{
"a": 4,
"w": 1.5
},
"\n\n\nDel"
],
[
{
"w": 1.75
},
"\nCaps Lock",
"\nA",
"\nS\n\n\n<i class='fa fa-caret-left'></i>",
"\nD\n\n\n<i class='fa fa-caret-down'></i>",
"\nF\n\n\n<i class='fa fa-caret-right'></i>",
"\nG",
"\nH",
"\nJ",
"\nK",
"\nL",
{
"f": 3
},
":\n;",
{
"a": 5,
"f": 3
},
"\"\n'",
{
"a": 4,
"w": 2.25
},
"\n\n\nEnter"
],
[
{
"w": 2
},
"\nShift",
"\nZ",
"\nX\n\n\n<i class='kb kb-Hamburger-Menu'></i>",
"\nC",
"\nV",
"\nB",
"\nN\n\n\n<i class='fa fa-volume-down'></i>",
"\nM\n\n\n<i class='fa fa-volume-up'></i>",
{
"f": 3
},
"<\n,\n\n\n<i class='fa fa-volume-off'></i>",
{
"f": 3
},
">\n.",
{
"f": 3
},
"?\n/",
{
"a": 5
},
"\nShift",
{
"fa": [
4,
1
]
},
"\n<i class='fa fa-caret-up'></i>\n\n\nPgUp",
{
"a": 4,
"f": 3
},
"\nFn"
],
[
{
"c": "#f00e52",
"a": 7,
"f": 3,
"w": 1.25
},
"CTRL",
{
"c": "#9b6482",
"f": 3,
"w": 1.25
},
"WIN",
{
"c": "#009bca",
"f": 3,
"w": 1.25
},
"ALT",
{
"c": "#cccccc",
"w": 6.25
},
"",
{
"a": 4,
"f": 3
},
"\nAlt",
"\n\n\nCtrl",
{
"a": 5,
"f": 3
},
"\n<i class='fa fa-caret-left'></i>\n\n\nHome",
{
"f": 3
},
"\n<i class='fa fa-caret-down'></i>\n\n\nPgDn",
{
"f": 3
},
"\n<i class='fa fa-caret-right'></i>\n\n\nEnd"
]
]

127
layout/xd60/layer0.json Normal file
View File

@@ -0,0 +1,127 @@
[
[
{
"a": 7
},
"esc",
{
"a": 5
},
"!\n1",
"@\n2",
"#\n3",
"$\n4",
"%\n5",
"^\n6",
"&\n7",
"*\n8",
"(\n9",
")\n0",
"_\n-",
"+\n=",
"|\n\\",
{
"a": 7
},
"bs"
],
[
{
"w": 1.5
},
"tab",
"q",
"w",
"e",
"r",
"t",
"y",
"u",
"i",
"o",
"p",
{
"a": 5
},
"{\n[",
"}\n]",
{
"a": 7,
"w": 1.5
},
"del"
],
[
{
"w": 1.75
},
"caps",
"a",
"s",
"d",
"f",
"g",
"h",
"j",
"k",
"l",
{
"a": 5
},
":\n;",
"\"\n'",
{
"a": 7,
"w": 2.25
},
"enter"
],
[
{
"w": 2
},
"lshift",
"z",
"x",
"c",
"v",
"b",
"n",
"m",
{
"a": 5
},
"<\n,",
">\n.",
"?\n/",
{
"a": 7
},
"rshift",
"up",
"fn"
],
[
{
"w": 1.25
},
"lctrl",
{
"w": 1.25
},
"win",
{
"w": 1.25
},
"lalt",
{
"w": 6.25
},
"space",
"ralt",
"rctrl",
"left",
"down",
"right"
]
]

156
layout/xd60/layer1.json Normal file
View File

@@ -0,0 +1,156 @@
[
[
"~\n`",
"f1",
"f2",
"f3",
"f4",
"f5",
"f6",
"f7",
"f8",
"f9",
"f10",
"f11",
"f12",
{
"a": 7
},
"",
""
],
[
{
"w": 1.5
},
"",
"",
"",
{
"a": 4
},
"up",
{
"a": 7
},
"",
"",
{
"a": 4
},
"cal",
{
"a": 7
},
"",
{
"a": 4
},
"ins",
{
"a": 7
},
"",
{
"a": 4
},
"prtsc",
"scrlk",
"pause\nbreak",
{
"a": 7,
"w": 1.5
},
""
],
[
{
"w": 1.75
},
"",
"",
{
"a": 4
},
"left",
"down",
"right",
{
"a": 7
},
"",
"",
"",
"",
"",
"",
"",
{
"w": 2.25
},
""
],
[
{
"w": 2
},
"",
"",
{
"a": 4
},
"app",
{
"a": 7
},
"",
"",
"",
{
"a": 4
},
"voldn",
"volup",
"mute",
{
"a": 7
},
"",
"",
"",
{
"a": 4
},
"pgup",
{
"a": 7
},
""
],
[
{
"w": 1.25
},
"",
{
"w": 1.25
},
"",
{
"w": 1.25
},
"",
{
"w": 6.25
},
"",
"",
"",
{
"a": 4
},
"home",
"pgdn",
"end"
]
]

3
readme.md Normal file
View File

@@ -0,0 +1,3 @@
## 鍵盤相關設定
- ### [XD60](xd60.md)

35
xd60.md Normal file
View File

@@ -0,0 +1,35 @@
## XD60
### Current layout
![Current Layout](img/xd60_current.png)
### 刷鍵位步驟
- 安裝必要軟體
1. 驅動程式 [Zadig](files/zadig-2.5.zip) ([Source](https://zadig.akeo.ie/))。
- 安裝 WinUSB
- 裝置為 ATm32u4DFU
- 下圖要在刷機模式下才看得到(鍵盤背面的reset鍵按下去)
![Zadig](img/zadig_01.png)
2. 用 chrome 安裝 [TKG Chrome App](https://chrome.google.com/webstore/detail/tkg-chrome-app/kmbmjdabhpdnpeobnbdchihdcdaccidi)。
安裝完後,就可以直接刷機,不過不確定 chrome app 還可以存活多久,如果沒有的話,那就要再找刷機的軟體。
3. 以上兩個安裝完後重新啟動chrome。
- 到 [Keyboard Layour Editor](http://keyboard-layout-editor.com) 編輯需要的配置
1. 切換到 Raw data選擇 Upload JSON將本檔案目錄下 layout/xd60 的 layout json 檔上傳。
![Raw data](img/keyboard_layout_editor_01.png)
2. 因為等一下刷入會分層刷,所以分層編輯。
- 到 [TMK Keymap Generator](https://yang.tkg.io)
1. 鍵盤選 「GH60(RevXD_Mod)」
![GH60](img/TMK_keymap_Generator_01.png)
2. 層模式選標準(分層編輯)然後在第0層、第1層貼上在上一步驟產生的 Json 內容。
![Layer edit](img/TMK_keymap_Generator_02.png)
3. Fn 的動作選 「瞬時開啟 層1」
![Fn action](img/TMK_keymap_Generator_03.png)
4. LED 設定如下,主要是 「Caps Lock」 的背光選項不要勾,其它設定之後要玩燈再來研究。
![LED Setting](img/TMK_keymap_Generator_04.png)
5. 刷機 (刷機模式中) - 如果第一步驟所安裝的軟體都正確的話,應該可以看到像下圖一樣的情況,直接按下「寫入.eep檔案」就完成。
![flash firmware](img/TMK_keymap_Generator_05.png)