1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>BeagleBone Black Pin Test</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <script language="javascript" type="text/javascript" src="static/excanvas.min.js"></script>
9 <script type="text/javascript" src="static/jquery-1.10.1.min.js"></script>
10 <script type="text/javascript" src="static/jquery.flot.min.js"></script>
11 <script type="text/javascript" src="static/base64.js"></script>
12 <script type="text/javascript" src="static/mctx.gui.js"></script>
13 <script type="text/javascript" src="static/mctx.pintest.js"></script>
15 <link rel="stylesheet" type="text/css" href="static/style.css">
16 <link rel="stylesheet" type="text/css" href="static/nav-menu.css">
17 <script type="text/javascript">
18 $(document).ready(function () {
19 $("#errorlog").setErrorLog();
20 $("#gpio-menu").populateDropdown(mctx.pintest.gpios, "GPIO ");
21 $("#pwm-menu").populateDropdown(mctx.pintest.pwms, "PWM ");
23 $("#gpio-go").click(function () {
24 if ($("#gpio-menu").val()) {
25 $("#gpio-container").exportGPIO($("#gpio-menu"));
28 $("#pwm-go").click(function () {
29 if ($("#pwm-menu").val()) {
30 $("#pwm-container").exportPWM($("#pwm-menu"));
39 <span id="title">BBB pin test</span>
41 <div id="menu-container" class="nav-menu">
44 <script type="text/javascript">getDate();</script>
47 <div class="clear"></div>
54 <div class="title">Info</div>
55 <p>This test page gives control over the BBB's pins.
56 Select a pin that you wish to use from the relevant drop-down
57 menu and click 'Go'.</p>
58 <p>A new widget will appear with controls relevant to that pin.</p>
59 <p>Make sure to check the error log to see if something goes wrong.</p>
62 <div class="title">Pin out diagram</div>
63 <p>To see the pin out diagram of the BBB, click <a href="">here</a>.</p>
66 <div class="title">Unexport?</div>
68 To 'unexport' a pin means to disable it. Apart from the obvious
69 use case, sometimes this can be required if you use two PWM channels
70 that share the same frequency base.
73 You won't be able to change
74 the frequency until you unexport one of them.
78 <div class="title">PWM explained</div>
80 The BBB has up to 8 PWM channels, with 6 having enhanced
84 However, those 6 are paired, meaning that each pair must share the
85 same frequency (although the duty cycle can be different).
93 <div class="title">Dashboard</div>
97 GPIO <select id="gpio-menu"></select>
98 <input type="button" id="gpio-go" value="Go">
101 PWM <select id="pwm-menu"></select>
102 <input type="button" id="pwm-go" value="Go">
107 <div class="sub-title">Error log</div>
108 <textarea id="errorlog" wrap="off" rows="4" cols="30" readonly></textarea>
112 <div class="title">Analogue input (ADC)</div>
113 <form class="controls" action="#">
114 <table class="centre">
116 <td>AIN</td><th>0</th><th>1</th><th>2</th><th>3</th>
117 <th>4</th><th>5</th><th>6</th><th>7</th>
121 <td><input name="0" type="text" readonly></td>
122 <td><input name="1" type="text" readonly></td>
123 <td><input name="2" type="text" readonly></td>
124 <td><input name="3" type="text" readonly></td>
125 <td><input name="4" type="text" readonly></td>
126 <td><input name="5" type="text" readonly></td>
127 <td><input name="6" type="text" readonly></td>
128 <td><input name="7" type="text" readonly></td>
132 <td><input name="0" type="checkbox"></td>
133 <td><input name="1" type="checkbox"></td>
134 <td><input name="2" type="checkbox"></td>
135 <td><input name="3" type="checkbox"></td>
136 <td><input name="4" type="checkbox"></td>
137 <td><input name="5" type="checkbox"></td>
138 <td><input name="6" type="checkbox"></td>
139 <td><input name="7" type="checkbox"></td>
145 <div class="widget" id="gpio-container">
146 <div class="title">GPIO controls</div>
149 <div class="widget" id="pwm-container">
150 <div class="title">PWM controls</div>
153 <!-- End main content -->