-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
executable file
·48 lines (44 loc) · 1.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>INA219 (DC電流センサー) | CHIRIMEN with micro:bit</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/microbit"></script>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/ina219"></script>
<!--<script src="i2c-ADT7410.js"></script>-->
<script src="main.js"></script>
<body>
<h1>INA219 (DC電流センサー) | 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>Bus Current [mA]</td>
<td id="current"></td>
</tr>
<tr>
<td>Power [mW]</td>
<td id="power"></td>
</tr>
<tr>
<td>Shunt voltage [mV]</td>
<td id="shunt"></td>
</tr>
<tr>
<td>Voltage [V]</td>
<td id="voltage"></td>
</tr>
<tr>
<td>Supply Voltage [V]</td>
<td id="supply_voltage"></td>
</tr>
</table>
<img src="imgs/pinbit_INA219.png" width="400" />
</body>
</html>