-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (56 loc) · 2.16 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
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no
initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>Microbit Accelerometer</title>
<style>
@import 'ui/css/evothings-app.css';
</style>
<script>
// Redirect console.log to Evothings Workbench.
if (window.hyper && window.hyper.log) { console.log = hyper.log }
</script>
<script src="https://www.gstatic.com/firebasejs/5.5.5/firebase.js"></script>
<script src="cordova.js"></script>
<script src="libs/jquery/jquery.js"></script>
<script src="libs/evothings/evothings.js"></script>
<script src="libs/evothings/ui/ui.js"></script>
<script src="libs/evothings/util/util.js"></script>
<script src="libs/evothings/easyble/easyble.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/totem.js"></script>
<script src="scripts/firebase.js"></script>
</head>
<body ontouchstart="">
<!-- ontouchstart="" enables low-delay CSS transitions. -->
<h1>Totem</h1>
<p id="info">Not Connected</p>
<button onclick="app.onStartButton()" class="green">START</button>
<button onclick="app.onStopButton()" class="red">STOP</button>
<!-- <canvas id="canvas" width="300" height="150"></canvas> -->
<section id='information'>
<h2>Info</h2>
<p>
This app charts accelerometer data from the BBC micro:bit.
Note that you must run this app in the Evothings
Client app, or build a Cordova app with the plugin
com.evothings.ble. A device with support for Bluetooth 4.0 and
Android 4.3+ or iOS 7+ is required.
</p>
<h2>How to use</h2>
<p>Activate the micro:bit and tap the Start button. If everything
works the device is discovered and accelerometer data is plotted to the
canvas. Shake your micro:bit to see the plot change.</p>
<h2>Troubleshooting</h2>
<p>
On Android, there are sometimes problems with that BLE stops working
when switching between apps or doing multiple reloads. In this case
restart the Evothings Client app. Additionally, you can use the
Evothings Workbench Tools to see any error messages that may help in
your investigation.
</p>
</section>
</body>
</html>