-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
46 lines (39 loc) · 1.26 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
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
<div id="container">
<div id="top-bar">
<button id="connectButton">▶</button>
</div>
<div id="p5-sketch"></div>
<div id="console">
<pre id="serialMonitor"></pre>
</div>
</div>
<dialog id="dialog">
<h1>Arduino Machine Learning</h1>
<hr>
<h2>k Nearest Neighbour example</h2>
<p> This page communicates with a Arduino Nano 33 BLE Sense board over USB.<p>
<h3>Instructions</h3>
<ul>
<li> First upload sketch to your board using <a href="https://create.arduino.cc/editor/dpajak/f8815d3f-de9c-412f-8dda-f919efba70d3/preview" target="_NEW">Arduino Create</a></li>
<li> Press the white button on the board to reset it</li>
<li> Connect your browser to the board using the button below</li>
</ul>
<br>
<div>
<button id="connectButton2">Connect to Arduino</button>
<button id="cancel">Cancel</button>
</div>
</dialog>
<script src="arduino-events.js"></script>
<script src="sketch.js"></script>
</body>
</html>