-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall-en.html
More file actions
352 lines (312 loc) · 9.78 KB
/
Copy pathinstall-en.html
File metadata and controls
352 lines (312 loc) · 9.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>VoxStick Web Installer</title>
<meta
name="description"
content="Flash VoxStick firmware to an M5Stack StickS3 directly from Chrome or Edge."
/>
<script
type="module"
src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"
></script>
<style>
:root {
color-scheme: light dark;
--page: #f6f8fb;
--panel: #ffffff;
--text: #172033;
--muted: #5c687a;
--line: #d9e0ea;
--accent: #147e63;
--accent-dark: #0f604c;
--accent-soft: #dff5ee;
--warn: #8a5a00;
--warn-bg: #fff4d8;
}
@media (prefers-color-scheme: dark) {
:root {
--page: #11151c;
--panel: #181f2a;
--text: #edf3fb;
--muted: #a8b2c1;
--line: #2a3545;
--accent: #2fc49b;
--accent-dark: #25ad88;
--accent-soft: #17382f;
--warn: #ffd37a;
--warn-bg: #3c2c0f;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--page);
color: var(--text);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
line-height: 1.55;
}
main {
width: min(1040px, calc(100% - 32px));
margin: 0 auto;
padding: 40px 0 48px;
}
header {
display: grid;
gap: 12px;
padding-bottom: 24px;
}
.topline {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
justify-content: space-between;
}
.eyebrow {
color: var(--accent);
font-size: 0.85rem;
font-weight: 750;
letter-spacing: 0;
text-transform: uppercase;
}
.lang {
color: var(--accent);
font-weight: 700;
}
.top-links {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
h1 {
margin: 0;
font-size: clamp(2.1rem, 6vw, 4.4rem);
line-height: 1;
letter-spacing: 0;
}
.lede {
max-width: 760px;
margin: 0;
color: var(--muted);
font-size: 1.05rem;
}
.visual-grid,
.content-grid {
display: grid;
gap: 18px;
}
.visual-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-bottom: 24px;
}
.content-grid {
grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
align-items: start;
}
.panel,
.visual-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
}
.panel {
padding: 24px;
}
.visual-card {
margin: 0;
overflow: hidden;
}
.visual-media {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
object-fit: contain;
background: #ffffff;
}
figcaption {
padding: 10px 12px 12px;
color: var(--muted);
font-size: 0.94rem;
}
.flash-panel {
display: grid;
gap: 18px;
}
.meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.meta li {
border: 1px solid var(--line);
border-radius: 999px;
padding: 5px 10px;
color: var(--muted);
font-size: 0.9rem;
}
esp-web-install-button {
--esp-tools-button-color: var(--accent);
--esp-tools-button-text-color: #ffffff;
--esp-tools-button-border-radius: 8px;
}
button[slot="activate"] {
width: 100%;
min-height: 52px;
border: 0;
border-radius: 8px;
background: var(--accent);
color: #ffffff;
cursor: pointer;
font: inherit;
font-weight: 750;
}
button[slot="activate"]:hover {
background: var(--accent-dark);
}
.notice {
margin: 0;
border-radius: 8px;
background: var(--warn-bg);
color: var(--warn);
padding: 12px 14px;
font-size: 0.95rem;
}
h2 {
margin: 0 0 14px;
font-size: 1.1rem;
letter-spacing: 0;
}
ol,
ul {
margin: 0;
padding-left: 1.25rem;
}
li + li {
margin-top: 10px;
}
code {
border-radius: 5px;
background: var(--accent-soft);
color: var(--text);
padding: 0.12em 0.35em;
}
a {
color: var(--accent);
}
.fine-print {
color: var(--muted);
font-size: 0.92rem;
}
@media (max-width: 820px) {
main {
padding-top: 28px;
}
.visual-grid,
.content-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<main>
<header>
<div class="topline">
<div class="eyebrow">M5Stack StickS3 / ESP32-S3</div>
<div class="top-links">
<a class="lang" href="./config.html">Config</a>
<a class="lang" href="./install.html">中文</a>
</div>
</div>
<h1>VoxStick Web Installer</h1>
<p class="lede">
Flash VoxStick firmware to your M5Stack StickS3 directly from the
browser. No ESP-IDF, Python, or esptool setup required.
</p>
</header>
<section class="visual-grid" aria-label="VoxStick device states">
<figure class="visual-card">
<img
class="visual-media"
src="https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1207/K150-stickS3_main-products_02.webp"
alt="M5Stack StickS3 hardware"
/>
<figcaption>StickS3 hardware</figcaption>
</figure>
<figure class="visual-card">
<img
class="visual-media"
src="./assets/voxstick-upright-live.png"
alt="StickS3 upright with live microphone LCD"
/>
<figcaption>Upright: live microphone</figcaption>
</figure>
<figure class="visual-card">
<img
class="visual-media"
src="./assets/voxstick-flat-muted.png"
alt="StickS3 lying flat, screen up, with muted microphone LCD"
/>
<figcaption>Flat, screen up: automatic mute</figcaption>
</figure>
</section>
<section class="content-grid">
<div class="panel flash-panel">
<ul class="meta">
<li>Firmware v0.1.6</li>
<li>ESP32-S3</li>
<li>Offset 0x0</li>
</ul>
<esp-web-install-button manifest="./firmware/v0.1.6/manifest.json">
<button slot="activate">Connect and flash VoxStick</button>
<span slot="unsupported">Use desktop Chrome or Microsoft Edge.</span>
<span slot="not-allowed">Open this page over HTTPS or localhost.</span>
</esp-web-install-button>
<p class="notice">
The StickS3 may not reboot automatically after flashing. Unplug USB,
double-press the side button to power off, then plug USB back in.
</p>
</div>
<aside class="panel">
<h2>Flashing Steps</h2>
<ol>
<li><strong>Computer:</strong> open this page in desktop Chrome or Microsoft Edge.</li>
<li><strong>Hardware:</strong> connect the StickS3 to the computer with a data-capable USB-C cable.</li>
<li><strong>Hardware:</strong> hold the StickS3 side reset/PWR button for about 2 seconds. Release it when the internal green LED blinks.</li>
<li><strong>This page:</strong> click the “Connect and flash VoxStick” button in the flashing panel. When the browser shows the serial-port picker, choose the StickS3 port and approve the install.</li>
<li><strong>Hardware:</strong> when the page reports completion, unplug USB, double-press the StickS3 side button to power it off, then plug USB back in to boot the new firmware.</li>
<li><strong>Computer OS:</strong> after the firmware boots, select <code>StickS3-Mic</code> in the system sound input settings.</li>
<li><strong>WeType / dictation app:</strong> open voice-input shortcut settings, enable hands-free mode, then tap the StickS3 front button to bind <code>Ctrl+F12</code>. VoxStick sends <code>Left Ctrl+F12</code>; macOS may show it as <code>⌃F12</code>.</li>
<li><strong>Optional config:</strong> open the <a href="./config.html">VoxStick config page</a> to change flat auto-mute and button shortcut keys.</li>
</ol>
</aside>
</section>
<section class="panel" style="margin-top: 24px">
<h2>Troubleshooting</h2>
<ul>
<li>No port listed: use desktop Chrome/Edge and try another USB-C data cable.</li>
<li>Still missing: enter download mode again by holding the side button for about 2 seconds.</li>
<li>If VoxStick firmware is already running, <code>bash tools/trigger-download.sh</code> can reboot it into download mode.</li>
<li>Command-line fallback: <code>esptool.py --chip esp32s3 write_flash 0x0 voxstick-full.bin</code></li>
</ul>
<p class="fine-print">
Product photos and button behavior reference the official
<a href="https://docs.m5stack.com/en/core/StickS3">M5Stack StickS3 documentation</a>.
Source:
<a href="https://github.com/openbrt/voxstick">github.com/openbrt/voxstick</a>
</p>
</section>
</main>
</body>
</html>