-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
executable file
·68 lines (64 loc) · 1.58 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>MPU9250 (3軸ジャイロ・3軸加速度・3軸磁気センサー) | CHIRIMEN with micro:bit</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/microbit"></script>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/mpu6500"></script>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/ak8963"></script>
<script src="main.js"></script>
<body>
<h1>MPU9250 (3軸ジャイロ・3軸加速度・3軸磁気センサー) | 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>temp</td>
<td id="temp"></td>
</tr>
<tr>
<td>Gx</td>
<td id="gx"></td>
</tr>
<tr>
<td>Gy</td>
<td id="gy"></td>
</tr>
<tr>
<td>Gz</td>
<td id="gz"></td>
</tr>
<tr>
<td>Rx</td>
<td id="rx"></td>
</tr>
<tr>
<td>Ry</td>
<td id="ry"></td>
</tr>
<tr>
<td>Rz</td>
<td id="rz"></td>
</tr>
<tr>
<td>Hx</td>
<td id="hx"></td>
</tr>
<tr>
<td>Hy</td>
<td id="hy"></td>
</tr>
<tr>
<td>Hz</td>
<td id="hz"></td>
</tr>
</table>
<img src="imgs/pinbit_MPU9250.png" width="400" />
</body>
</html>