Skip to content

Commit bf539d3

Browse files
committed
added wiring diagram
1 parent 5cb344f commit bf539d3

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
lines changed

coder-apps/tests/gpio_test/static/css/index.css

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11

22
.pagecontent {
33
padding: 24px;
4+
min-width: 880px;
5+
}
6+
7+
.buttons {
8+
float: left;
9+
width: 240px;
10+
}
11+
.diagram {
12+
width: 640px;
13+
float: left;
14+
padding-bottom: 100px;
15+
}
16+
.clear {
17+
clear: both;
418
}
519

620
#buttonval {
7-
width: 100px;
8-
height: 100px;
21+
width: 200px;
22+
height: 150px;
23+
margin: 24px 0;
24+
color: #fff;
925
background-color: #000000;
26+
text-align: center;
27+
font-weight: bold;
28+
line-height: 150px;
1029
}
1130
#buttonval.on {
1231
background-color: #F03050;
@@ -31,11 +50,11 @@
3150

3251

3352
#output {
34-
position: absolute;
53+
position: fixed;
3554
left:0;
3655
right:0;
3756
bottom:0;
38-
height: 150px;
57+
height: 100px;
3958
color: #fff;
4059
background-color: #000;
4160
overflow: hidden;

coder-apps/tests/gpio_test/static/js/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ $(document).ready( function() {
3131

3232
// Each connection gets a unique ID.
3333
addOutputMessage( "Connected with ID: " + Coder.socketConnection.socketID );
34-
addOutputMessage( "Click ON or OFF to enable blinking" );
3534

3635
// Send a "connect" message to our Node page when we first connect.
3736
Coder.socketConnection.sendData( 'connect', {} );
Loading

coder-apps/tests/gpio_test/views/index.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@
2626
<body class="">
2727
<div class="pagecontent">
2828
<h1>GPIO Test</h1>
29-
<div id="blinkon" class="button">BLINK</div>
30-
<div id="blinkoff" class="button" style="display:none;">STOP BLINK</div>
31-
<div id="toggle" class="button">TOGGLE</div>
32-
<div id="push" class="button">PUSH</div>
33-
<div id="buttonval"></div>
29+
<div class="buttons">
30+
<div id="blinkon" class="button">BLINK</div>
31+
<div id="blinkoff" class="button" style="display:none;">STOP BLINK</div>
32+
<div id="toggle" class="button">TOGGLE</div>
33+
<div id="push" class="button">PUSH</div>
34+
<div id="buttonval">HARDWARE PRESS</div>
35+
</div>
36+
<div class="diagram">
37+
<img src="/static/apps/gpio_test/media/wiring_diagram.jpg" />
38+
</div>
39+
<div class="clear"></div>
3440
<div id="output">
3541

3642
</div>

0 commit comments

Comments
 (0)