-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
158 lines (127 loc) · 6.4 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" sizes="16x16" href="public/lumen-icon.png">
<link rel="shortcut icon" type="image/x-icon" href="public/lumen-icon.png">
<script type="module" src="/main.js"></script>
<title>LumenPnP Debug</title>
</head>
<body>
<div id="header-pill"><h1>LumenPnP Debug Tool</h1></div>
<button id="connect" type="button">Connect</button>
<div id="main-app">
<div id="control-pane">
<div id="control">
<h2 style="width:100%">Control</h2>
<button id="left-air-on" class="thirdwidth" type="button">Left Air On</button>
<button id="right-air-on" class="thirdwidth" type="button">Right Air On</button>
<button id="ring-lights-on" class="thirdwidth" type="button">Ring Lights On</button>
<button id="left-air-off" class="thirdwidth" type="button">Left Air Off</button>
<button id="right-air-off" class="thirdwidth" type="button">Right Air Off</button>
<button id="ring-lights-off" class="thirdwidth" type="button">Ring Lights Off</button>
<button id="left-vac" class="thirdwidth" type="button">Left Vac</button>
<button id="right-vac" class="thirdwidth" type="button">Right Vac</button>
<button id="disable-steppers" class="thirdwidth" type="button">Disable Steppers</button>
<div id="jog-pane">
<button id="home-x" class="fifthwidth" type="button">Home X</button>
<button id="home-y" class="fifthwidth" type="button">Home Y</button>
<button id="home-z" class="fifthwidth" type="button">Home Z</button>
<button id="jog-max" class="fifthwidth" type="button">Jog Max</button>
<button id="jog-min" class="fifthwidth" type="button">Jog Min</button>
</div>
</div>
<div id="repl">
<div id="console"></div>
<button id="send" type="button">Send</button>
<input id="repl-input" type="text" placeholder="Send Gcode"/>
</div>
</div>
<div id="feeders">
<h2>Feeders</h2>
<div id="feeder-button-cluster">
<button style="width:150px;margin-top:0px;" id="more-controls">More Controls</button>
<button style="width:150px;margin-top:0px;" id="program-slots">Program Slots</button>
<button style="width:150px;margin-top:0px;" id="feeder-scan">Scan</button>
</div>
<div style="display:none;" id="found-feeders"></div>
<div style="display:none;" class="feeder-pane" id="unicast">
<h3>Unicast</h3>
<label>Command: </label>
<select style="height:1.5em;" id="uni-command" name="uni-command">
<option value="0x01">Get Feeder ID</option>
<option value="0x02">Initialize Feeder</option>
<option value="0x03">Get Version</option>
<option value="0x04">Move Feed Forward</option>
<option value="0x05">Move Feed Backward</option>
<option value="0x06">Move Feed Status</option>
<option value="0xbf">Vendor Options</option>
</select>
<label>To Address: </label>
<input id="uni-to" type="number" min="1" max="255"/>
<label style="display:none;" id="uni-payload-label">Payload (in Hex): </label>
<input style="display:none;" id="uni-payload" type="text" placeholder="Payload"/>
<button id="uni-send">Send</button>
</div>
<div style="display:none;" class="feeder-pane" id="broadcast">
<h3>Broadcast</h3>
<label>Command:</label>
<select style="height:1.5em;" id="broad-command" name="broad-command">
<option value="0xc0">Get Feeder Address</option>
<option value="0xc1">Identify Feeder</option>
<option value="0xc2">Program Feeder Floor</option>
<option value="0xc3">Uninitialized Feeders Respond</option>
</select>
<label>UUID (Hex String): </label>
<input id="broad-uuid" type="text"/>
<label>Address to Program: </label>
<input id="broad-program-address" type="number" min="1" max="254"/>
<button id="broad-send">Send</button>
</div>
<div style="display:none;" class="feeder-pane" id="custom-packet">
<h3>Custom Packet</h3>
<input id="custom-to" type="number" placeholder="To Address"/>
<input id="custom-command" type="number" placeholder="Command"/>
<input id="custom-payload" type="text" placeholder="Payload (hex string)"/>
<button id="custom-send">Send</button>
</div>
<div style="display:none;" class="feeder-pane" id="crc-tool">
<h3>CRC Tool</h3>
<input id="calc-to" type="text" placeholder="To Address"/>
<input id="calc-from" type="text" placeholder="From Address)"/>
<input id="calc-packetid" type="text" placeholder="Packet ID"/>
<input id="calc-payload-length" type="text" placeholder="Payload Length (including command byte)"/>
<input id="calc-command" type="text" placeholder="Command"/>
<input id="calc-payload" type="text" placeholder="Payload"/>
<button id="calc-calculate">Calculate</button>
</div>
<div style="display:none;" class="feeder-pane" id="flash-at-fifty">
<h3>Flash at 50</h3>
<button id="flash-fifty-button">Flash</button>
</div>
</div>
<div id="testing">
<h2 style="width:100%">Tests</h2>
<button id="tmc" type="button">Test TMC Drivers</button>
<button id="vac" type="button">Test Vacuum Sensors</button>
</div>
</div>
<div id="footer"><img src="public/opulo-gold-alpha-tiny.png"></div>
<div id="modal">
<div class="flex">
<img src="public/lumen-icon.png">
<button id="modal-close" class="btn-close">⨉</button>
</div>
<h2 id="modal-title">test</h2>
<p id="modal-content">test</p>
<input id="modal-num-input" min="1" max="254" type="number">
<div class="flex">
<button id="modal-ng">Cancel</button>
<button id="modal-ok">OK</button>
</div>
</div>
<div id="overlay"></div>
</body>
</html>