-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
32 lines (30 loc) · 1.21 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
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 MIC I/O</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<meta name="author" content="Colin Bookman">
<meta name="description" content="Testing page for the HTML5 Mic I/O Bus">
</head>
<body>
<p><b>Important:</b> Please refresh the page between test iterations. Also make sure that the browser is not bogged down</p>
<p>Instructions on how to set this up can be found <a href="http://www.colinbookman.com/micIO">here</a></p>
<p>Open your javascript console to see the data</p>
</body>
<script src="js/micIO/clock.js"></script>
<script src="js/micIO/index.js"></script>
<script>
var micIO = new MicIO(function onEndOfTransmission(data) {
alert("Got some data: " + JSON.stringify(data));
};
//Old test code which doesn't work anymore, due to frequency changing slightly (no idea why)..yay hardware
// var testResults;
// function runATest() {
// var speed = parseInt($('#speed').val(),10);
// var iterations = parseInt($('#testIterations').val(),10);
// var test = new MicIOTests(speed,iterations);
// testResults = test.testResults;
// test = null;
// }
</script>
</html>