-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
executable file
·39 lines (37 loc) · 1.06 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1"
/>
<title>PCA9685 (PWMサーボドライバー) | CHIRIMEN with micro:bit</title>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/microbit"></script>
<script src="https://cdn.jsdelivr.net/npm/@chirimen/pca9685"></script>
<script src="./main.js" defer></script>
<style>
p {
color: blue;
text-align: center;
font-size: 24px;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<h1>PCA9685 (PWMサーボドライバー) | CHIRIMEN with micro:bit<h1>
<form name="js">
<input type="button" value="Connect" onclick="connect();" />
<input type="button" value="Disconnect" onclick="disconnect();" />
</form>
<hr />
<h3>Servo Control viw I2C PCA9685</h3>
<p id="head">TEST</p>
<img src="imgs/pinbit_pca9685.png" height="600px" />
</body>
</html>