-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
executable file
·52 lines (46 loc) · 1.29 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>ADS1115 (116bit 4ch ADC) | CHIRIMEN with micro:bit</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/microbit"></script>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/ads1x15"></script>
<script src="main.js"></script>
<body>
<h1>ADS1115 (116bit 4ch ADC) | CHIRIMEN with micro:bit<h1>
<form name="js">
<input type="button" value="Connect" onclick="connect();" />
<input type="button" value="Disconnect" onclick="disconnect();" />
</form>
<span id="msg"></span>
<hr />
<table>
<tr>
<td>
<span id="rawData0">init</span>
<br />
<span id="voltage0">init</span>
</td>
<td>
<span id="rawData1">init</span>
<br />
<span id="voltage1">init</span>
</td>
<td>
<span id="rawData2">init</span>
<br />
<span id="voltage2">init</span>
</td>
<td>
<span id="rawData3">init</span>
<br />
<span id="voltage3">init</span>
</td>
</tr>
<tr></tr>
</table>
<img src="imgs/pinbit_ADS1115.png" width="400" />
</body>
</html>