/
index.html
47 lines (39 loc) · 1.48 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Verdana, sans-serif;
}
</style>
</head>
<body>
<h1>Linka Firmware Flasher</h1>
<div id="main" style="display: none;">
<script type="module" src="https://unpkg.com/esp-web-tools@3.4.2/dist/web/install-button.js?module"></script>
<esp-web-install-button id="installButton" manifest="manifest.json">
<button slot="activate">Flash me!</button>
</esp-web-install-button>
<br><br>
<ol>
<li>Connect your Linka Board via USB</li>
<li>Click on the `Flash me!` button</li>
<li>A pop-up will open, select the correct serial port, on Linux, it's usually `ttyUSB0`</li>
<li>If the process fails, try running it again</li>
</ol>
<span>NOTE: On Windows, you will need to install the driver for the serial port first. The driver can be found <a href="http://www.wch-ic.com/downloads/CH341SER_EXE.html">here</a></span>
</div>
<div id="notSupported" style="display: none;">
Your browser does not support the Web Serial API.
</div>
<script>
if(navigator.serial){
document.getElementById("notSupported").style.display = 'none';
document.getElementById("main").style.display = 'block';
} else {
document.getElementById("notSupported").style.display = 'block';
document.getElementById("main").style.display = 'none';
}
</script>
</body>
</html>