forked from getis/micropython-web-control-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cp_simple.html
42 lines (39 loc) · 1.42 KB
/
cp_simple.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Raspberry Pi Pico Test</title>
<link rel="stylesheet" href="/cp_simple.css" type="text/css">
</head>
<body>
<table style="width: 100%; padding: 20px;">
<tr>
<td style="text-align: center"><h1>Raspberry Pi Pico</h1></td>
</tr>
<tr>
<td style="text-align: center">
<button id="readPot" class="" onclick="getReadingFromPico()">read pot</button>
</td>
</tr>
<tr>
<td style="text-align: center"><h2 id="reading">1234567</h2></td>
</tr>
</table>
<table style="width: 100%; padding: 20px; margin-top: 30px">
<tr style="margin-top: 50px">
<td style="text-align: center">
<button id="blue_led_button" class="led" onclick="setLedColour('blue')">blue</button>
<button id="yellow_led_button" class="led" onclick="setLedColour('yellow')">yellow</button>
<button id="green_led_button" class="led" onclick="setLedColour('green')">green</button>
<button id="orange_led_button" class="led" onclick="setLedColour('orange')">orange</button>
</td>
</tr>
<tr>
<td style="text-align: center">
<button id="cled_state" class="led led-off"> </button>
</td>
</tr>
</table>
</body>
<script src="/cp_simple.js"></script>
</html>