-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
249 lines (213 loc) · 9.14 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<style type="text/css">
body {
font-family:sans-serif;
}
header {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif
}
header h1 {
font-size:30px;
margin:0;
padding:0;
}
header h2 {
margin:0;
padding:0;
font-size:22px;
}
.pinout {
background:#073642;
width:150px;
position: relative;
height:694px;
border-top-right-radius:30px;
border-bottom-right-radius:30px;
float:left;
}
aside {
width:330px;
float:left;
}
article {
background:#EBE6D3;
margin-left:320px;
padding:20px;
}
.pinout ul {
margin:0;
padding:0;
list-style:none;
position:absolute;
left:150px;
top:5px;
}
.pinout li {
margin:2px 0;
padding:0;
list-style:none;
}
.pinout .type-hook {
margin:6px 0px;
}
.pinout a {
display:block;
padding-left:10px;
position:relative;
height:20px;
width:160px;
text-decoration:none;
color:#333333;
}
.pinout span, .pinout strong, .pinout small {
height:20px;
line-height:20px;
font-size:14px;
font-weight:normal;
}
.pinout small {
font-size:10px;
float:right;
margin-right:10px;
}
.pinout span {
position:absolute;
left:-70px;
}
.pinout .type-hook a {
height:38px;
}
.pinout .type-hook a span, .pinout .type-hook a strong {
line-height:38px;
}
.pinout a:before {
content:'';
display:block;
width:70px;
height:20px;
position:absolute;
left:-80px;
top:0;
background: #D4AF37;
border-right:10px solid rgba(255, 255, 255, 0.5);
}
.pinout .type-power a:before {
border-right-color: #DC322F;
}
.pinout .type-i2c a:before {
border-right-color: #6c71c4;
}
.pinout .type-spi a:before {
border-right-color: #D33682;
}
.pinout .type-button a:before {
border-right-color: #859900;
}
.pinout .type-analog a:before {
border-right-color:#B58900;
}
.pinout .type-ground a:before {
border-right-color: rgba(255, 255, 255, 0.5);
}
.pinout .type-hook a:before {
height:38px;
width:100px;
left:-110px;
top:0;
border-top-left-radius:19px;
border-bottom-left-radius:19px;
}
.pinout .type-hook small {
line-height: 38px;
}
.pinout .type-hook a:after {
content: '';
background: #FFFFFF;
display: block;
position: absolute;
left: -106px;
top: 4px;
width: 30px;
height: 30px;
border-radius: 15px;
}
.pinout a:hover,
.pinout a:hover:before {
background:#278da7;
}
.pinout a:hover strong, .pinout a:hover span, .pinout a:hover small {
color:#FFFFFF;
}
footer {
clear:both;
padding-top:10px;
}
footer p {
text-align: center;
margin:5px;
padding:0;
}
</style>
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an </span><strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<div class="main">
<aside>
<nav class="pinout">
<ul>
<li id="pin-0" class="type-ground"><a href=""><span>Ground</span></a></li>
<li id="pin-1" class="type-ground type-hook"><a href=""><span>Ground</span></a></li>
<li id="pin-2" class="type-ground"><a href=""><span>Ground</span></a></li>
<li id="pin-3" class="type-gpio type-i2c"><a href=""><span>P20</span><strong>I2C1 SDA</strong></a></li>
<li id="pin-4" class="type-gpio type-i2c"><a href=""><span>P19</span><strong>I2C1 SCL</strong></a></li>
<li id="pin-5" class="type-power"><a href=""><span>Power</span><strong>3V</strong><small>Max 90mA*</small></a></li>
<li id="pin-6" class="type-power type-hook"><a href=""><span>Power</span><strong>3V</strong><small>Max 90mA*</small></a></li>
<li id="pin-7" class="type-power"><a href=""><span>Power</span><strong>3V</strong><small>Max 90mA*</small></a></li>
<li id="pin-8" class="type-gpio"><a href=""><span>P16</span></a></li>
<li id="pin-9" class="type-gpio type-spi"><a href=""><span>P15</span><strong>SPI1 MOSI</strong></a></li>
<li id="pin-10" class="type-gpio type-spi"><a href=""><span>P14</span><strong>SPI1 MISO</strong></a></li>
<li id="pin-11" class="type-gpio type-spi"><a href=""><span>P13</span><strong>SPI1 SCK</strong></a></li>
<li id="pin-12" class="type-analog type-hook type-gpio"><a href=""><span>P2</span><strong>Analog In 2</strong></a></li>
<li id="pin-13" class="type-gpio"><a href=""><span>P12</span><small>Accessibility*</small></a></li>
<li id="pin-14" class="type-gpio type-button"><a href=""><span>P11</span><strong>Button B</strong></a></li>
<li id="pin-15" class="type-analog type-gpio"><a href=""><span>P10</span><small>LED Col 3</small></a></li>
<li id="pin-16" class="type-gpio"><a href=""><span>P9</span><small>LED Col 7</small></a></li>
<li id="pin-17" class="type-gpio"><a href=""><span>P8</span></a></li>
<li id="pin-18" class="type-analog type-hook type-gpio"><a href=""><span>P1</span><strong>Analog In 1</strong></a></li>
<li id="pin-19" class="type-gpio"><a href=""><span>P7</span><small>LED Col 8</small></a></li>
<li id="pin-20" class="type-gpio"><a href=""><span>P6</span><small>LED Col 9</small></a></li>
<li id="pin-21" class="type-gpio type-button"><a href=""><span>P5</span><strong>Button A</strong></a></li>
<li id="pin-22" class="type-analog type-gpio"><a href=""><span>P4</span><small>LED Col 2</small></a></li>
<li id="pin-23" class="type-analog type-hook type-gpio"><a href=""><span>P0</span><strong>Analog In 0</strong></a></li>
<li id="pin-24" class="type-analog type-gpio"><a href=""><span>P3</span><small>LED Col 1</small></a></li>
</ul>
</nav>
</aside>
<article class="content">
<header>
<h1>Welcome to pin:out</h1>
<h2>The comprehensive GPIO pinout website for the BBC micro:bit</h2>
</header>
<p>Select a pin in the menu on the left to learn more about it.</p>
<p>*A budget of 90mA is available to external accessories assuming a worst-case of 30mA consumed by the micro:bit</p>
<p>*P12 was originally intended for accessibility functions, but it's more likely these will be routed over USB</p>
</article>
</div>
<footer>
<p>Spotted an error, want to add your board's pinout? Head on over to our <a href="https://github.com/gadgetoid/microbit.pinout.xyz">GitHub repository</a> and submit an Issue or a Pull Request!</p>
<p> Tweet us at <a href="https://twitter.com/pipinout"> @PiPinout</a>. Maintained by <a href="https://twitter.com/gadgetoid">@Gadgetoid</a>.</p>
<p>Want to help make microbit.pinout.xyz better? <a href="https://www.patreon.com/gadgetoid">Please support us at Patreon.com</a></p>
</footer>
</body>
</html>