-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (50 loc) · 2.33 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
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<title>Arduino control</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="{{ static_url("style.css") }}"/>
<link rel="shortcut icon" type="image/x-icon" href="{{ static_url("favicon.ico") }}"/>
<script type="text/javascript" src="{{ static_url("script.js") }}"></script>
</head>
<body>
<h1>Arduino I/O</h1>
<div class="IO_box">
<h2>Analog Inputs</h2>
<p>A1: <span class="analogIn">...</span></p>
<p>A2: <span class="analogIn">...</span></p>
<p>A2: <span class="analogIn">...</span></p>
<p>A3: <span class="analogIn">...</span></p>
<p>A4: <span class="analogIn">...</span></p>
<p>A5: <span class="analogIn">...</span></p>
</div>
<div class="IO_box">
<h2>Digital Inputs</h2>
<p class="small_text">D0: used by serial RX</p>
<p class="small_text">D1: used by serial TX</p>
<p>D2: <span class="digitalIn">...</span></p>
<p>D3: <span class="digitalIn">...</span></p>
<p>D4: <span class="digitalIn">...</span></p>
<p>D5: <span class="digitalIn">...</span></p>
<p>D6: <span class="digitalIn">...</span></p>
<p>D7: <span class="digitalIn">...</span></p>
</div>
<div class="IO_box">
<h2>Digital Outputs</h2>
<form>
<input class="digitalOut" type="checkbox" name="DOut8" value="0" onclick="ChangeOutput(this.name,this.checked)" />D8<br /><br />
<input class="digitalOut" type="checkbox" name="DOut9" value="0" onclick="ChangeOutput(this.name,this.checked)" />D9<br /><br />
<input class="digitalOut" type="checkbox" name="DOut10" value="0" onclick="ChangeOutput(this.name,this.checked)" />D10<br /><br />
<input class="digitalOut" type="checkbox" name="DOut11" value="0" onclick="ChangeOutput(this.name,this.checked)" />D11<br /><br />
<input class="digitalOut" type="checkbox" name="DOut12" value="0" onclick="ChangeOutput(this.name,this.checked)" />D12<br /><br />
<input class="digitalOut" type="checkbox" name="DOut13" value="0" onclick="ChangeOutput(this.name,this.checked)" />D13<br /><br />
</form>
</div>
<div class="IO_box">
<h2>Status Websocket</h2>
<p><span id="WebsocketStatus">Not connected</span></p>
<button id="startWebsocket" type="button" onclick="StartWebsocket()">Connect websocket</button><br /><br />
</div>
</body>
</html>