-
Notifications
You must be signed in to change notification settings - Fork 118
/
others-use-it-too.html
523 lines (407 loc) · 49.7 KB
/
others-use-it-too.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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>OTHERS USE IT, TOO! | SKIDL</title>
<meta name="description" content="Python → Circuits">
<meta name="keywords" content="">
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://xesscorp.github.io/skidl/docs/_site/images/logo.png">
<meta name="twitter:title" content="Others Use It, Too!">
<meta name="twitter:description" content="Python → Circuits">
<meta name="twitter:creator" content="@xesscorp">
<!-- Open Graph -->
<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="Others Use It, Too!">
<meta property="og:description" content="Python → Circuits">
<meta property="og:url" content="https://xesscorp.github.io/skidl/docs/_site/blog/others-use-it-too">
<meta property="og:site_name" content="SKiDL">
<meta property="og:image" content="https://xesscorp.github.io/skidl/docs/_site/images/">
<meta name="google-site-verification" content="https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here">
<link rel="canonical" href="https://xesscorp.github.io/skidl/docs/_site/blog/others-use-it-too">
<link href="https://xesscorp.github.io/skidl/docs/_site/feed.xml" type="application/atom+xml" rel="alternate" title="SKiDL Feed">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700|Open+Sans:400,600,300,800,700' rel='stylesheet' type='text/css'>
<!-- <link rel="stylesheet" href="https://xesscorp.github.io/skidl/docs/_site/assets/css/vendor/font-awesome.min.css"> -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://xesscorp.github.io/skidl/docs/_site/assets/css/vendor/normalize.css">
<link rel="stylesheet" href="https://xesscorp.github.io/skidl/docs/_site/assets/css/vendor/nprogress.css">
<link rel="stylesheet" href="https://xesscorp.github.io/skidl/docs/_site/assets/css/vendor/foundation.min.css">
<link rel="stylesheet" href="https://xesscorp.github.io/skidl/docs/_site/assets/css/style.css">
<link rel="stylesheet" href="https://xesscorp.github.io/skidl/docs/_site/assets/css/post.css">
<!-- Icons -->
<!-- 16x16 -->
<link rel="shortcut icon" href="https://xesscorp.github.io/skidl/docs/_site/favicon.ico">
<!-- 32x32 -->
<link rel="shortcut icon" href="https://xesscorp.github.io/skidl/docs/_site/favicon.png">
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices -->
<link rel="apple-touch-icon-precomposed" href="https://xesscorp.github.io/skidl/docs/_site/images/apple-touch-icon-precomposed.png">
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="https://xesscorp.github.io/skidl/docs/_site/images/apple-touch-icon-72x72-precomposed.png">
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://xesscorp.github.io/skidl/docs/_site/images/apple-touch-icon-114x114-precomposed.png">
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://xesscorp.github.io/skidl/docs/_site/images/apple-touch-icon-144x144-precomposed.png">
<style type="text/css">@media only screen and (min-width:43.75em){.notepad-post-content div>p:first-child:first-letter{float:left;font-size:4.688rem;line-height:4.375rem;padding-top:.25rem;padding-right:.5rem;padding-left:.188rem;font-family:serif}}</style>
</head>
<body class="post-template" itemscope itemtype="http://schema.org/WebPage">
<main id="notepad-post-container-simple" class="notepad-post-container-simple" role="main">
<header class="notepad-post-header-simple">
<div class="notepad-post-menu-header-simple">
<a class="notepad-blog-logo" href="https://xesscorp.github.io/skidl/docs/_site">
<img src="https://xesscorp.github.io/skidl/docs/_site/images/logo.png" alt="Blog Logo" />
</a>
<div class="notepad-blog-menu">
<div class="notepad-mobile-menu show-for-small">
<a href="#"><i class="fa fa-bars"></i></a>
</div>
<ul class="notepad-menu">
<li class="notepad-mobile-close-btn show-for-small text-right">
<a href="#"><i class="fa fa-times"></i></a>
</li>
<li>
<a href="https://xesscorp.github.io/skidl/docs/_site/">Home</a>
</li>
<li>
<a href="https://xesscorp.github.io/skidl/docs/_site/blog">Blog</a>
</li>
<li>
<a href="https://xesscorp.github.io/skidl/docs/_site/api.html">API</a>
</li>
<li>
<a href="http://github.com/xesscorp/skidl">Github</a>
</li>
<li>
<a href="https://xesscorp.github.io/skidl/docs/_site/about">About</a>
</li>
<li><a href="https://xesscorp.github.io/skidl/docs/_site/feed.xml" title="Atom/RSS feed"><i class="icon-rss"></i> Feed</a></li>
</ul>
</div>
</div>
<div class="notepad-post-title-simple row">
<div class="small-12 columns">
<div class="notepad-post-meta-simple">
<h1>Others Use It, Too!</h1>
<p>
by <strong>Dave Vandenbout</strong> —
<strong><time datetime="2018-07-29T10:26:18-04:00">29 Jul 2018</time></strong>
</p>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- codein1 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-7466474470517357"
data-ad-slot="6700962438"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
</header>
<article class="notepad-post-content post tag-simple">
<div><p>It helps when other people use SKiDL; then I can coast by just showing what they’ve done.
Here are two examples.</p>
<h3 id="blinkenface">Blinkenface</h3>
<p><a href="https://github.com/mossmann/blinkenface">Blinkenface</a> is a version of “LED glasses”
made with a cascaded string of APA102 RGB LEDs controlled through an SPI interface:</p>
<p><img src="https://xesscorp.github.io/skidl/docs/_site/images/others-use-it-too/blinkenface_pcb.png" alt="Blinkenface PCB" /></p>
<p>Th majority of Blinkenface is just a repetitive connection of one APA102 to the
next one in line: perfect for a loop construct!
And that’s just what’s done in the associated SKiDL code:</p>
<div class="language-py highlighter-rouge"><pre class="highlight"><code><span class="c">#!/usr/bin/python</span>
<span class="kn">import</span> <span class="nn">skidl</span>
<span class="n">skidl</span><span class="o">.</span><span class="n">lib_search_paths</span><span class="p">[</span><span class="n">skidl</span><span class="o">.</span><span class="n">KICAD</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">'gsg-kicad-lib'</span><span class="p">)</span>
<span class="n">gnd</span> <span class="o">=</span> <span class="n">skidl</span><span class="o">.</span><span class="n">Net</span><span class="p">(</span><span class="s">'GND'</span><span class="p">)</span>
<span class="n">vcc</span> <span class="o">=</span> <span class="n">skidl</span><span class="o">.</span><span class="n">Net</span><span class="p">(</span><span class="s">'VCC'</span><span class="p">)</span>
<span class="n">num_leds</span> <span class="o">=</span> <span class="mi">242</span>
<span class="n">leds</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">sdo</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">cko</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">num_leds</span><span class="p">):</span>
<span class="n">leds</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">skidl</span><span class="o">.</span><span class="n">Part</span><span class="p">(</span><span class="s">'gsg-symbols.lib'</span><span class="p">,</span> <span class="s">'APA102'</span><span class="p">,</span> <span class="n">footprint</span><span class="o">=</span><span class="s">'gsg-modules:APA102-2020'</span><span class="p">))</span>
<span class="n">sdo</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">skidl</span><span class="o">.</span><span class="n">Net</span><span class="p">(</span><span class="s">'SDO'</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">i</span><span class="p">)))</span>
<span class="n">cko</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">skidl</span><span class="o">.</span><span class="n">Net</span><span class="p">(</span><span class="s">'CKO'</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">i</span><span class="p">)))</span>
<span class="n">leds</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="s">'SDI'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">sdo</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
<span class="n">leds</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="s">'CKI'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">cko</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
<span class="n">leds</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="s">'GND'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span>
<span class="n">leds</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="s">'VCC'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">vcc</span>
<span class="c"># connect input to previous output</span>
<span class="k">if</span> <span class="mi">0</span> <span class="o"><</span> <span class="n">i</span><span class="p">:</span>
<span class="n">leds</span><span class="p">[</span><span class="n">i</span><span class="o">-</span><span class="mi">1</span><span class="p">][</span><span class="s">'SDO'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">sdo</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
<span class="n">leds</span><span class="p">[</span><span class="n">i</span><span class="o">-</span><span class="mi">1</span><span class="p">][</span><span class="s">'CKO'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">cko</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
<span class="c"># don't connect the output of the last LED</span>
<span class="n">leds</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">][</span><span class="s">'SDO'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">NC</span>
<span class="n">leds</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">][</span><span class="s">'CKO'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">NC</span>
<span class="c"># connect the input of the first LED to a pin header</span>
<span class="n">header</span> <span class="o">=</span> <span class="n">skidl</span><span class="o">.</span><span class="n">Part</span><span class="p">(</span><span class="s">'conn'</span><span class="p">,</span> <span class="s">'CONN_01X04'</span><span class="p">,</span> <span class="n">footprint</span><span class="o">=</span><span class="s">'gsg-modules:HEADER-1x4'</span><span class="p">)</span>
<span class="n">header</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span>
<span class="n">header</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">vcc</span>
<span class="n">header</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span> <span class="o">+=</span> <span class="n">cko</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">header</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span> <span class="o">+=</span> <span class="n">sdo</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="c"># assume that power is applied to pin header</span>
<span class="n">header</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">net</span><span class="o">.</span><span class="n">drive</span> <span class="o">=</span> <span class="n">skidl</span><span class="o">.</span><span class="n">POWER</span>
<span class="n">header</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="o">.</span><span class="n">net</span><span class="o">.</span><span class="n">drive</span> <span class="o">=</span> <span class="n">skidl</span><span class="o">.</span><span class="n">POWER</span>
<span class="n">decoupling_caps</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">decoupling_caps</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">skidl</span><span class="o">.</span><span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'C'</span><span class="p">,</span> <span class="n">footprint</span><span class="o">=</span><span class="s">'gsg-modules:0805'</span><span class="p">))</span>
<span class="n">decoupling_caps</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">skidl</span><span class="o">.</span><span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'C'</span><span class="p">,</span> <span class="n">footprint</span><span class="o">=</span><span class="s">'gsg-modules:0603'</span><span class="p">))</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">2</span><span class="p">):</span>
<span class="n">decoupling_caps</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">vcc</span>
<span class="n">decoupling_caps</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span>
<span class="n">skidl</span><span class="o">.</span><span class="n">ERC</span><span class="p">()</span>
<span class="n">skidl</span><span class="o">.</span><span class="n">generate_netlist</span><span class="p">()</span>
</code></pre>
</div>
<p>The code probably isn’t as compact and “Pythonic” as it could be because
– as the designer admits – they’re not Python experts.
And that’s an important feature of SKiDL: regardless of your skill level,
you can still get the job done.
And this gets the job done by connecting 242 LEDs in just 50 lines of code.</p>
<h3 id="spidriver">SPIDriver</h3>
<p>The next example is an actual product: the <a href="https://www.crowdsupply.com/excamera/spidriver">SPIDriver</a>!</p>
<p><img src="https://github.com/jamesbowman/spidriver/raw/master/images/DSC_1313a.JPG" alt="SPIDriver picture" /></p>
<p>The SPIDriver has a more conventional topology than the previous example,
consisting of a microcontroller, display, USB interface, and headers.
The SKiDL code is partitioned into sections for each major component:</p>
<div class="language-py highlighter-rouge"><pre class="highlight"><code><span class="kn">from</span> <span class="nn">skidl</span> <span class="kn">import</span> <span class="o">*</span>
<span class="k">def</span> <span class="nf">bypass</span><span class="p">(</span><span class="n">sig</span><span class="p">,</span> <span class="n">val</span> <span class="o">=</span> <span class="s">'0.1uF'</span><span class="p">):</span>
<span class="n">c1</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'C'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="n">val</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Capacitors_SMD:C_0402'</span><span class="p">)</span>
<span class="n">c1</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">sig</span>
<span class="n">c1</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span>
<span class="k">def</span> <span class="nf">divider</span><span class="p">(</span><span class="n">ratio</span><span class="p">,</span> <span class="n">hi</span><span class="p">,</span> <span class="n">low</span><span class="p">,</span> <span class="n">res</span><span class="p">):</span>
<span class="n">r1</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="s">'500K'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Resistors_SMD:R_0402'</span><span class="p">)</span>
<span class="n">r2</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="s">'500K'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Resistors_SMD:R_0402'</span><span class="p">)</span>
<span class="n">r1</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">hi</span>
<span class="n">r1</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">r2</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">res</span>
<span class="n">r2</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">low</span>
<span class="n">gnd</span> <span class="o">=</span> <span class="n">Net</span><span class="p">(</span><span class="s">'GND'</span><span class="p">)</span> <span class="c"># Ground reference.</span>
<span class="n">v5</span> <span class="o">=</span> <span class="n">Net</span><span class="p">(</span><span class="s">'5V'</span><span class="p">)</span>
<span class="n">v5b</span> <span class="o">=</span> <span class="n">Net</span><span class="p">(</span><span class="s">'5VB'</span><span class="p">)</span>
<span class="n">v33a</span> <span class="o">=</span> <span class="n">Net</span><span class="p">(</span><span class="s">'3.3V'</span><span class="p">)</span>
<span class="n">v33b</span> <span class="o">=</span> <span class="n">Net</span><span class="p">(</span><span class="s">'3.3VB'</span><span class="p">)</span>
<span class="n">u1</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'silabs2'</span><span class="p">,</span> <span class="s">'EFM8BB10F8G-A-QFN20'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Housings_DFN_QFN:SiliconLabs_QFN-20-1EP_3x3mm_Pitch0.5mm_ThermalVias'</span><span class="p">)</span>
<span class="n">u2</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'ftdi'</span><span class="p">,</span> <span class="s">'FT232RL'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm'</span><span class="p">)</span>
<span class="n">u3</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'regul'</span><span class="p">,</span> <span class="s">'AP1117-15'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">"TO_SOT_Packages_SMD:SOT-223-3Lead_TabPin2"</span><span class="p">)</span>
<span class="n">u4</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'linear'</span><span class="p">,</span> <span class="s">'ZXCT1110'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'TO_SOT_Packages_SMD:SOT-23-5'</span><span class="p">)</span>
<span class="n">j1</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'conn'</span><span class="p">,</span> <span class="s">'USB_OTG'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Connectors_USB:USB_Micro-B_Molex_47346-0001'</span><span class="p">)</span>
<span class="n">j2</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'conn'</span><span class="p">,</span> <span class="s">'Conn_01x04_Male'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Pin_Headers:Pin_Header_Angled_1x04_Pitch2.54mm'</span><span class="p">)</span>
<span class="n">j3</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'conn'</span><span class="p">,</span> <span class="s">'Conn_01x06_Male'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Pin_Headers:Pin_Header_Angled_1x06_Pitch2.54mm'</span><span class="p">)</span>
<span class="n">j4</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'conn'</span><span class="p">,</span> <span class="s">'Conn_01x06_Male'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Pin_Headers:Pin_Header_Angled_1x06_Pitch2.54mm'</span><span class="p">)</span>
<span class="n">d1</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">'adafruit'</span><span class="p">,</span> <span class="s">'JD-T1800'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'JD-T1800'</span><span class="p">)</span>
<span class="c">################## U1: MCU ################## </span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'VDD'</span><span class="p">)</span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">u1</span><span class="p">[</span><span class="s">'^GND$'</span><span class="p">]</span>
<span class="n">divider</span><span class="p">(</span><span class="mf">2.4</span> <span class="o">/</span> <span class="mi">6</span><span class="p">,</span> <span class="n">v5</span><span class="p">,</span> <span class="n">gnd</span><span class="p">,</span> <span class="n">u1</span><span class="p">[</span><span class="s">'P1.5'</span><span class="p">])</span>
<span class="n">resetpullup</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="s">'1K'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Resistors_SMD:R_0402'</span><span class="p">)</span>
<span class="n">resetpullup</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'RSTb/C2CK'</span><span class="p">)</span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">resetpullup</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span>
<span class="c">################## U2: FTDI ################## </span>
<span class="n">v5</span> <span class="o">+=</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'VCC'</span><span class="p">)</span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'VCCIO'</span><span class="p">)</span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'3V3OUT'</span><span class="p">)</span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">u2</span><span class="p">[</span><span class="s">'^GND$'</span><span class="p">]</span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'AGND'</span><span class="p">)</span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'TEST'</span><span class="p">)</span>
<span class="n">u2</span><span class="p">[</span><span class="s">'RXD'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.4'</span><span class="p">)</span>
<span class="n">u2</span><span class="p">[</span><span class="s">'TXD'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.5'</span><span class="p">)</span>
<span class="n">NC</span> <span class="o">+=</span> <span class="n">u2</span><span class="p">[</span><span class="s">'RTS,CTS,DTR,DCR,DCD,RI,CBUS?,OSC[IO],~RESET~'</span><span class="p">]</span>
<span class="c">################## J1: USB ################## </span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">j1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'GND'</span><span class="p">),</span> <span class="n">j1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'Shield'</span><span class="p">)</span>
<span class="n">v5</span> <span class="o">+=</span> <span class="n">j1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'VBUS'</span><span class="p">)</span>
<span class="n">NC</span> <span class="o">+=</span> <span class="n">j1</span><span class="p">[</span><span class="s">'ID'</span><span class="p">]</span>
<span class="c">################## U3: regulator ################## </span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">u3</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'GND'</span><span class="p">)</span>
<span class="n">v5b</span> <span class="o">+=</span> <span class="n">u3</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'VI'</span><span class="p">)</span>
<span class="n">v33b</span> <span class="o">+=</span> <span class="n">u3</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'VO'</span><span class="p">)</span>
<span class="c">################## U4: current sensor ############# </span>
<span class="n">rsense</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="s">'.1'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Resistors_SMD:R_0805'</span><span class="p">)</span>
<span class="n">rgain</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="s">'2K4'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Resistors_SMD:R_0402'</span><span class="p">)</span>
<span class="n">rgain</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u4</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'OUT'</span><span class="p">),</span> <span class="n">u1</span><span class="p">[</span><span class="s">'P1.6'</span><span class="p">]</span>
<span class="n">rgain</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span>
<span class="n">v5</span> <span class="o">+=</span> <span class="n">u4</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'Vs+'</span><span class="p">),</span> <span class="n">rsense</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
<span class="n">v5b</span> <span class="o">+=</span> <span class="n">rsense</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">u4</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'Vs-'</span><span class="p">),</span> <span class="n">j3</span><span class="p">[</span><span class="mi">5</span><span class="p">:</span><span class="mi">6</span><span class="p">]</span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">u4</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'GND'</span><span class="p">)</span>
<span class="n">NC</span> <span class="o">+=</span> <span class="n">u4</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'NC'</span><span class="p">)</span>
<span class="c">################## J2: debug ################## </span>
<span class="n">j2</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">v33a</span>
<span class="n">j2</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span>
<span class="n">j2</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P2.0/C2D'</span><span class="p">)</span>
<span class="n">j2</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'RSTb/C2CK'</span><span class="p">)</span>
<span class="c">################## J3: power out ################## </span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">j3</span><span class="p">[</span><span class="mi">1</span><span class="p">:</span><span class="mi">2</span><span class="p">]</span>
<span class="n">v33b</span> <span class="o">+=</span> <span class="n">j3</span><span class="p">[</span><span class="mi">3</span><span class="p">:</span><span class="mi">4</span><span class="p">]</span>
<span class="c">################## J4: signal out ##################</span>
<span class="n">j4</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.0'</span><span class="p">)</span> <span class="c"># SCK</span>
<span class="n">j4</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.1'</span><span class="p">)</span> <span class="c"># MISO</span>
<span class="n">j4</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.2'</span><span class="p">)</span> <span class="c"># MOSI</span>
<span class="n">j4</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.3'</span><span class="p">)</span> <span class="c"># CS</span>
<span class="n">j4</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.6'</span><span class="p">)</span> <span class="c"># A</span>
<span class="n">j4</span><span class="p">[</span><span class="mi">6</span><span class="p">]</span> <span class="o">+=</span> <span class="n">u1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'P0.7'</span><span class="p">)</span> <span class="c"># B</span>
<span class="c">################## D1: display ################## </span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'GND'</span><span class="p">]</span>
<span class="n">u1</span><span class="p">[</span><span class="s">'P1.0'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'CLOCK'</span><span class="p">]</span>
<span class="n">u1</span><span class="p">[</span><span class="s">'P1.[12]'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'DATA'</span><span class="p">]</span>
<span class="n">u1</span><span class="p">[</span><span class="s">'P1.3'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'CS'</span><span class="p">]</span>
<span class="n">u1</span><span class="p">[</span><span class="s">'P1.4'</span><span class="p">]</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'RS/DC'</span><span class="p">]</span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'LEDA'</span><span class="p">]</span>
<span class="n">ledres</span> <span class="o">=</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="s">'22'</span><span class="p">,</span> <span class="n">footprint</span> <span class="o">=</span> <span class="s">'Resistors_SMD:R_0402'</span><span class="p">)</span>
<span class="n">ledres</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'LEDK'</span><span class="p">]</span>
<span class="n">gnd</span> <span class="o">+=</span> <span class="n">ledres</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'RESET'</span><span class="p">]</span>
<span class="n">v33a</span> <span class="o">+=</span> <span class="n">d1</span><span class="p">[</span><span class="s">'VCC'</span><span class="p">]</span>
<span class="c"># tp1 = Part('conn', 'TEST_1P')</span>
<span class="c"># tp1.footprint = 'Measurement_Points:Measurement_Point_Round-SMD-Pad_Small'</span>
<span class="k">def</span> <span class="nf">conn</span><span class="p">(</span><span class="o">*</span><span class="n">pins</span><span class="p">):</span>
<span class="n">q</span> <span class="o">=</span> <span class="n">Net</span><span class="p">()</span>
<span class="n">q</span> <span class="o">+=</span> <span class="n">pins</span>
<span class="n">conn</span><span class="p">(</span><span class="n">j1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'D+'</span><span class="p">),</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'USBD+'</span><span class="p">))</span>
<span class="n">conn</span><span class="p">(</span><span class="n">j1</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'D-'</span><span class="p">),</span> <span class="n">u2</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'USBD-'</span><span class="p">))</span>
<span class="n">bypass</span><span class="p">(</span><span class="n">v33a</span><span class="p">)</span> <span class="c"># MCU (datasheet 5.1)</span>
<span class="n">bypass</span><span class="p">(</span><span class="n">v33a</span><span class="p">,</span> <span class="s">'1uF'</span><span class="p">)</span>
<span class="n">bypass</span><span class="p">(</span><span class="n">v33a</span><span class="p">)</span> <span class="c"># FTDI</span>
<span class="n">bypass</span><span class="p">(</span><span class="n">v5</span><span class="p">)</span>
<span class="n">bypass</span><span class="p">(</span><span class="n">v5</span><span class="p">,</span> <span class="s">'10uF'</span><span class="p">)</span>
<span class="n">bypass</span><span class="p">(</span><span class="n">v33b</span><span class="p">)</span>
<span class="k">if</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">r1</span><span class="p">,</span> <span class="n">r2</span> <span class="o">=</span> <span class="mi">2</span> <span class="o">*</span> <span class="n">Part</span><span class="p">(</span><span class="s">"Device"</span><span class="p">,</span> <span class="s">'R'</span><span class="p">,</span> <span class="n">TEMPLATE</span><span class="p">)</span> <span class="c"># Create two resistors.</span>
<span class="n">r1</span><span class="o">.</span><span class="n">value</span><span class="p">,</span> <span class="n">r1</span><span class="o">.</span><span class="n">footprint</span> <span class="o">=</span> <span class="s">'1K'</span><span class="p">,</span> <span class="s">'Resistors_SMD:R_0805'</span> <span class="c"># Set resistor values</span>
<span class="n">r2</span><span class="o">.</span><span class="n">value</span><span class="p">,</span> <span class="n">r2</span><span class="o">.</span><span class="n">footprint</span> <span class="o">=</span> <span class="s">'500'</span><span class="p">,</span> <span class="s">'Resistors_SMD:R_0805'</span> <span class="c"># and footprints.</span>
<span class="n">r1</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+=</span> <span class="n">vin</span> <span class="c"># Connect the input to the first resistor.</span>
<span class="n">r2</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">+=</span> <span class="n">gnd</span> <span class="c"># Connect the second resistor to ground.</span>
<span class="n">vout</span> <span class="o">+=</span> <span class="n">r1</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">r2</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="c"># Output comes from the connection of the two resistors.</span>
<span class="n">ERC</span><span class="p">()</span>
<span class="n">generate_netlist</span><span class="p">()</span>
</code></pre>
</div>
<p>I will confess I’m somewhat mystified by this code.
It uses a method for a <code class="highlighter-rouge">Part</code> called <code class="highlighter-rouge">pin()</code> like this:</p>
<div class="language-py highlighter-rouge"><pre class="highlight"><code><span class="n">gnd</span> <span class="o">+=</span> <span class="n">u3</span><span class="o">.</span><span class="n">pin</span><span class="p">(</span><span class="s">'GND'</span><span class="p">)</span>
</code></pre>
</div>
<p>This connects the ground pin of the power regulator to ground.
But I would have written that as:</p>
<div class="language-py highlighter-rouge"><pre class="highlight"><code><span class="n">gnd</span> <span class="o">+=</span> <span class="n">u3</span><span class="p">[</span><span class="s">'GND'</span><span class="p">]</span>
</code></pre>
</div>
<p>In fact, my version of SKiDL doesn’t even <em>have</em> a method called <code class="highlighter-rouge">pin()</code>
associated with a <code class="highlighter-rouge">Part</code> object.
Probably this was done to add some capability or remove some flaw that wasn’t
readily noticeable to anyone but the designer.
So this highlights another feature of SKiDL: since it’s open source, you can modify it to do
whatever you want.</p>
<p>Any way, these are two examples of using SKiDL that weren’t done by me.
If you have used SKiDL for something, <a href="mailto:skidl@xess.com">drop me a line</a> and let me know.</p>
</div>
<div style="text-align: center;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- codein2-footer -->
<!--
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-7466474470517357"
data-ad-slot="9952356430"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
-->
</div>
</article>
<div class="cf"></div>
<div class="row text-center">
<section class="notepad-post-share">
<a class="twitter-icon" href="https://twitter.com/intent/tweet?text="Others Use It, Too!"%20https://xesscorp.github.io/skidl/docs/_site/blog/others-use-it-too%20via%20@xesscorp"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" title="Share on Twitter">
<i class="fa fa-twitter"></i>
</a>
<a class="facebook-icon" href="https://www.facebook.com/sharer/sharer.php?u=https://xesscorp.github.io/skidl/docs/_site/blog/others-use-it-too"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" title="Share on Facebook">
<i class="fa fa-facebook"></i>
</a>
<a class="google-icon" href="https://plus.google.com/share?url=https://xesscorp.github.io/skidl/docs/_site/blog/others-use-it-too"
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;" title="Share on Google+">
<i class="fa fa-google-plus"></i>
</a>
</section>
</div>
<div class="cf"></div>
<div class="notepad-author-info">
<div class="row">
<section class="notepad-post-author small-12 columns">
<img src="https://xesscorp.github.io/skidl/docs/_site/images/devb-pic.jpg" class="notepad-post-author-avatar" alt="Dave Vandenbout's photo">
<span class="author-label">Author:</span>
<h1>Dave Vandenbout</h1>
<p><a href="mailto:devb@xess.com" class="author-website">devb@xess.com</a>
<p>Relax, I do this stuff for a living.</p>
</section>
</div>
</div>
<div class="cf"></div>
<div class="cf"></div>
<footer class="notepad-site-footer">
<div class="copyright">
<section>
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" />
</a>
<br /><br />
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">SKiDL website</span> by
<a xmlns:cc="http://creativecommons.org/ns#" href="www.xess.com" property="cc:attributionName" rel="cc:attributionURL">
XESS Corporation
</a>
is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
Creative Commons Attribution 4.0 International License
</a>.
</section>
<br />
<p>
<a href='http://www.catb.org/hacker-emblem/' target="_blank"><img src='https://xesscorp.github.io/skidl/docs/_site/assets/img/hacker.png' alt='hacker emblem' /></a>
<a href="http://endsoftpatents.org/innovating-without-patents" target="_blank"><img style="border-width:0" src="https://xesscorp.github.io/skidl/docs/_site/assets/img/patent-free.png"></a>
</p>
</div>
<div class="social-icons">
<a href="http://twitter.com/xesscorp">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x fa-inverse"></i>
<i class="fa fa-twitter fa-stack-1x"></i>
</span>
</a>
<a href="http://github.com/xesscorp">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x fa-inverse"></i>
<i class="fa fa-github fa-stack-1x"></i>
</span>
</a>
</div>
<div class="cf"></div>
</footer>
</main>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="https://xesscorp.github.io/skidl/docs/_site/assets/js/vendor/jquery-1.11.1.min.js"><\/script>')</script>
<script src="https://xesscorp.github.io/skidl/docs/_site/assets/js/vendor/modernizr.js"></script>
<script src="https://xesscorp.github.io/skidl/docs/_site/assets/js/foundation.min.js"></script>
<script src="https://xesscorp.github.io/skidl/docs/_site/assets/js/notepad.js"></script>
<script src="https://xesscorp.github.io/skidl/docs/_site/assets/js/scripts.min.js"></script>
<script src="https://xesscorp.github.io/skidl/docs/_site/assets/js/vendor/nprogress.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/sigma.js/1.0.3/sigma.min.js"></script>
<script>
$(document).foundation();
</script>
<!-- Asynchronous Google Analytics snippet -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-765812-6', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
<script>NProgress.start();var interval=setInterval(function(){NProgress.inc()},1000);jQuery(window).load(function(){clearInterval(interval);NProgress.done()});jQuery(window).unload(function(){NProgress.start()});</script>
</body>
</html>