Skip to content

Commit 6bbdaba

Browse files
authored
Merge pull request #126 from D19ital/main
update fw
2 parents 192f323 + a7250c6 commit 6bbdaba

3 files changed

Lines changed: 133 additions & 23 deletions

File tree

data/firmware.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,23 @@ groups:
177177
files:
178178
- label: { ru: Прошивка, en: Firmware }
179179
url: https://github.com/ergohaven/vial-qmk/releases/download/4.0.5/4.0.5_hpd_v1.uf2
180-
- id: qmk-k03-v1-v2
181-
name: "K:03 v1/v2"
180+
- id: qmk-k03-v1
181+
name: "K:03 v1"
182182
files:
183183
- label: { ru: Прошивка, en: Firmware }
184184
url: https://github.com/ergohaven/vial-qmk/releases/download/4.0.5/4.0.5_k03_v1_v2.uf2
185-
- id: qmk-imperial44-v1-v2
186-
name: Imperial44 v1/v2
185+
- id: qmk-k03-v2
186+
name: "K:03 v2"
187+
files:
188+
- label: { ru: Прошивка, en: Firmware }
189+
url: https://github.com/ergohaven/vial-qmk/releases/download/4.0.5/4.0.5_k03_v1_v2.uf2
190+
- id: qmk-imperial44-v1
191+
name: Imperial44 v1
192+
files:
193+
- label: { ru: Прошивка, en: Firmware }
194+
url: https://github.com/ergohaven/vial-qmk/releases/download/4.0.5/4.0.5_imperial44_v1_v2.uf2
195+
- id: qmk-imperial44-v2
196+
name: Imperial44 v2
187197
files:
188198
- label: { ru: Прошивка, en: Firmware }
189199
url: https://github.com/ergohaven/vial-qmk/releases/download/4.0.5/4.0.5_imperial44_v1_v2.uf2

data/firmware_instructions.yaml

Lines changed: 98 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ rmk_single:
3838
- "Import the saved layout after the update"
3939
note: "If a copy or disk ejection error appears while copying the firmware, simply ignore the message"
4040

41-
qmk:
41+
qmk_split_new:
4242
ru:
4343
title: Как обновить прошивку
4444
steps:
4545
- 'При необходимости сохраните текущую раскладку в <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a>'
4646
- "Скачайте файл прошивки"
4747
- "Подключите устройство по USB-C и дважды быстро нажмите <code>Reset</code> на нижней части корпуса"
4848
- "Скопируйте скачанный UF2-файл на появившийся диск — после копирования устройство перезагрузится"
49-
- "Если клавиатура состоит из двух половинок, повторите эти действия для второй половинки"
49+
- "Повторите эти же действия для второй половинки"
5050
- "После обновления импортируйте сохранённую раскладку"
5151
en:
5252
title: How to update the firmware
@@ -55,10 +55,54 @@ qmk:
5555
- "Download the firmware file"
5656
- "Connect the device via USB-C and quickly double-press <code>Reset</code> on the bottom of the case"
5757
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
58-
- "If the keyboard has two halves, repeat these steps for the other half"
58+
- "Repeat the same steps for the other half"
5959
- "Import the saved layout after the update"
6060

61-
qmk_single:
61+
qmk_split_old:
62+
ru:
63+
title: Как обновить прошивку
64+
steps:
65+
- 'При необходимости сохраните текущую раскладку в <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a>'
66+
- "Скачайте файл прошивки"
67+
- "Для левой половинки зажмите верхнюю левую клавишу и подключите устройство по USB-C"
68+
- "Скопируйте скачанный UF2-файл на появившийся диск — после копирования устройство перезагрузится"
69+
- "Для правой половинки зажмите верхнюю правую клавишу и подключите устройство по USB-C"
70+
- "Скопируйте скачанный UF2-файл на появившийся диск — после копирования устройство перезагрузится"
71+
- "После обновления импортируйте сохранённую раскладку"
72+
en:
73+
title: How to update the firmware
74+
steps:
75+
- 'Save the current layout in <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a> if needed'
76+
- "Download the firmware file"
77+
- "For the left half, hold down the top-left key and connect the device via USB-C"
78+
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
79+
- "For the right half, hold down the top-right key and connect the device via USB-C"
80+
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
81+
- "Import the saved layout after the update"
82+
83+
qmk_hpd_v1:
84+
ru:
85+
title: Как обновить прошивку
86+
steps:
87+
- 'При необходимости сохраните текущую раскладку в <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a>'
88+
- "Скачайте файл прошивки"
89+
- "Для левой половинки зажмите верхнюю левую клавишу и подключите устройство по USB-C"
90+
- "Скопируйте скачанный UF2-файл на появившийся диск — после копирования устройство перезагрузится"
91+
- "Для правой половинки зажмите верхнюю левую клавишу и подключите устройство по USB-C"
92+
- "Скопируйте скачанный UF2-файл на появившийся диск — после копирования устройство перезагрузится"
93+
- "После обновления импортируйте сохранённую раскладку"
94+
en:
95+
title: How to update the firmware
96+
steps:
97+
- 'Save the current layout in <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a> if needed'
98+
- "Download the firmware file"
99+
- "For the left half, hold down the top-left key and connect the device via USB-C"
100+
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
101+
- "For the right half, hold down the top-left key and connect the device via USB-C"
102+
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
103+
- "Import the saved layout after the update"
104+
105+
qmk_single_new:
62106
ru:
63107
title: Как обновить прошивку
64108
steps:
@@ -74,35 +118,75 @@ qmk_single:
74118
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
75119
- "Import the saved layout after the update"
76120

121+
qmk_single_old:
122+
ru:
123+
title: Как обновить прошивку
124+
steps:
125+
- 'При необходимости сохраните текущую раскладку в <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a>'
126+
- "Скачайте файл прошивки"
127+
- "Зажмите верхнюю левую клавишу и подключите устройство по USB-C"
128+
- "Скопируйте скачанный UF2-файл на появившийся диск — после копирования устройство перезагрузится"
129+
- "После обновления импортируйте сохранённую раскладку"
130+
en:
131+
title: How to update the firmware
132+
steps:
133+
- 'Save the current layout in <a href="https://github.com/ergohaven/entropy" target="_blank" rel="noopener">Entropy</a> if needed'
134+
- "Download the firmware file"
135+
- "Hold down the top-left key and connect the device via USB-C"
136+
- "Copy the downloaded UF2 file to the drive that appears — the device will restart after copying"
137+
- "Import the saved layout after the update"
138+
77139
zmk_split:
78140
ru:
79141
title: Как обновить прошивку
80142
steps:
81-
- "Скачайте все показанные файлы для левой и правой половинок"
82-
- "Подключите левую половинку по USB-C, дважды быстро нажмите <code>Reset</code> и скопируйте на появившийся диск файл <code>left</code>"
143+
- "Скачайте файлы прошивки для левой и правой половинок"
144+
- "Подключите левую половинку по USB-C, дважды быстро нажмите <code>Reset</code> на нижней стороне корпуса и скопируйте на появившийся диск файл <code>left</code>"
83145
- "Повторите действия для правой половинки, используя файл <code>right</code>"
84146
- "После обновления одновременно нажмите <code>Reset</code> на обеих половинках, чтобы восстановить их соединение"
147+
step_notes:
148+
- after_step: 1
149+
text: 'Если вы хотите использовать <a href="https://docs.ergohaven.xyz/software/zmk/zmk-ruen/">RuEn</a>, скачайте соответствующую RuEn-прошивку'
150+
note: "Если при копировании прошивки появляется окно с ошибкой копирования/извлечения диска, просто игнорируйте это сообщение"
85151
en:
86152
title: How to update the firmware
87153
steps:
88-
- "Download all displayed files for the left and right halves"
89-
- "Connect the left half via USB-C, quickly double-press <code>Reset</code>, and copy the <code>left</code> file to the drive that appears"
154+
- "Download the firmware files for the left and right halves"
155+
- "Connect the left half via USB-C, quickly double-press <code>Reset</code> on the bottom of the case, and copy the <code>left</code> file to the drive that appears"
90156
- "Repeat these steps for the right half using the <code>right</code> file"
91157
- "After the update, press <code>Reset</code> on both halves simultaneously to reconnect them"
158+
step_notes:
159+
- after_step: 1
160+
text: 'If you want to use <a href="https://docs.ergohaven.xyz/en/software/zmk/zmk-ruen/">RuEn</a>, download the corresponding RuEn firmware'
161+
note: "If a copy or disk ejection error appears while copying the firmware, simply ignore the message"
92162

93163
zmk_qube:
94164
ru:
95165
title: Как обновить прошивку
96166
steps:
97-
- "Скачайте все показанные файлы"
98-
- "По очереди подключите устройства, дважды быстро нажмите <code>Reset</code> на каждом и установите прошивки в порядке: Qube, левая половинка, правая половинка"
99-
- "Используйте только соответствующие файлы <code>qube</code>, <code>left_qube</code> и <code>right</code>"
167+
- "Скачайте файлы прошивки для Qube, левой и правой половинок"
168+
- "Подключите Qube по USB-C, дважды быстро нажмите <code>Reset</code> на нижней стороне корпуса и скопируйте на появившийся диск файл <code>qube</code>"
169+
- "Повторите действия для левой и правой половинок, используя файлы <code>left</code> и <code>right</code> соответственно"
170+
- "После обновления подключите Qube по USB-C. Затем включите левую половинку — она должна отобразиться на Qube вместе с уровнем заряда. После этого включите правую половинку"
171+
step_notes:
172+
- after_step: 1
173+
text: 'Если вы хотите использовать <a href="https://docs.ergohaven.xyz/software/zmk/zmk-ruen/">RuEn</a>, скачайте соответствующую RuEn-прошивку для Qube'
174+
- after_step: 3
175+
text: "Во время обновления половинки должны быть выключены — переключатель питания снизу должен находиться в положении «выкл»"
176+
note: "Если при копировании прошивки появляется окно с ошибкой копирования/извлечения диска, просто игнорируйте это сообщение"
100177
en:
101178
title: How to update the firmware
102179
steps:
103-
- "Download all displayed files"
104-
- "Connect each device in turn, quickly double-press <code>Reset</code> on each one, and install the firmware in this order: Qube, left half, right half"
105-
- "Use only the matching <code>qube</code>, <code>left_qube</code>, and <code>right</code> files"
180+
- "Download the firmware files for Qube and the left and right halves"
181+
- "Connect Qube via USB-C, quickly double-press <code>Reset</code> on the bottom of the case, and copy the <code>qube</code> file to the drive that appears"
182+
- "Repeat these steps for the left and right halves using the <code>left</code> and <code>right</code> files respectively"
183+
- "After the update, connect Qube via USB-C. Then turn on the left half — it should appear on Qube along with its battery level. Finally, turn on the right half"
184+
step_notes:
185+
- after_step: 1
186+
text: 'If you want to use <a href="https://docs.ergohaven.xyz/en/software/zmk/zmk-ruen/">RuEn</a>, download the corresponding RuEn firmware for Qube'
187+
- after_step: 3
188+
text: "During the update, the halves must be powered off — the power switch on the bottom must be in the off position"
189+
note: "If a copy or disk ejection error appears while copying the firmware, simply ignore the message"
106190

107191
zmk_single:
108192
ru:

layouts/shortcodes/firmware-picker.html

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
</div>
6161

6262
<div class="firmware-picker__result" data-firmware-result aria-live="polite" hidden>
63+
{{- $qmkSplitOldIDs := slice "qmk-k03-v1" "qmk-imperial44-v1" "qmk-k02-v1" "qmk-remnant-v1" "qmk-velvet-v1" "qmk-velvet-v2" "qmk-k03-pro-v1-43" "qmk-k03-pro-v1-65" -}}
64+
{{- $qmkSingleNewIDs := slice "qmk-sm30" "qmk-planeta-v1" "qmk-planeta-v2" "qmk-macropad-v2" "qmk-macropad-v3" "qmk-trackball-v1" "qmk-trackball-v2" -}}
6365
{{- range site.Data.firmware.groups }}
6466
{{- $groupName := index .name $lang -}}
6567
{{- range .devices }}
@@ -68,7 +70,7 @@
6870
{{- $deviceName = .name_en -}}
6971
{{- end }}
7072
{{- $deviceID := .id -}}
71-
{{- $instructionKey := "qmk" -}}
73+
{{- $instructionKey := "qmk_split_new" -}}
7274
{{- if strings.HasPrefix $deviceID "rmk-trackball" -}}
7375
{{- $instructionKey = "rmk_single" -}}
7476
{{- else if strings.HasPrefix $deviceID "rmk-" -}}
@@ -83,8 +85,14 @@
8385
{{- $instructionKey = "service_rmk" -}}
8486
{{- else if eq $deviceID "service-zmk-reset" -}}
8587
{{- $instructionKey = "service_zmk" -}}
86-
{{- else if or (eq $deviceID "qmk-sm30") (strings.HasPrefix $deviceID "qmk-planeta") (strings.HasPrefix $deviceID "qmk-macropad") -}}
87-
{{- $instructionKey = "qmk_single" -}}
88+
{{- else if eq $deviceID "qmk-macropad-v1" -}}
89+
{{- $instructionKey = "qmk_single_old" -}}
90+
{{- else if eq $deviceID "qmk-hpd-v1" -}}
91+
{{- $instructionKey = "qmk_hpd_v1" -}}
92+
{{- else if in $qmkSingleNewIDs $deviceID -}}
93+
{{- $instructionKey = "qmk_single_new" -}}
94+
{{- else if in $qmkSplitOldIDs $deviceID -}}
95+
{{- $instructionKey = "qmk_split_old" -}}
8896
{{- end -}}
8997
{{- $instruction := index site.Data.firmware_instructions $instructionKey -}}
9098
<section class="firmware-picker__device" data-firmware-device="{{ .id }}" hidden>
@@ -105,9 +113,17 @@
105113
{{- with index $instruction $lang }}
106114
<div class="firmware-picker__instruction">
107115
<p class="firmware-picker__instruction-title">{{ .title }} — {{ $deviceName }}</p>
116+
{{- $instructionContent := . -}}
108117
<ol class="firmware-picker__instruction-steps">
109-
{{- range .steps }}
110-
<li>{{ . | safeHTML }}</li>
118+
{{- range $stepIndex, $step := .steps }}
119+
<li>
120+
{{- $step | safeHTML -}}
121+
{{- range $instructionContent.step_notes }}
122+
{{- if eq .after_step (add $stepIndex 1) }}
123+
<p class="firmware-picker__instruction-note">{{ .text | safeHTML }}</p>
124+
{{- end }}
125+
{{- end }}
126+
</li>
111127
{{- end }}
112128
</ol>
113129
{{- with .note }}

0 commit comments

Comments
 (0)