-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.html
More file actions
46 lines (45 loc) · 1.9 KB
/
README.html
File metadata and controls
46 lines (45 loc) · 1.9 KB
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
<h1 id="beam_rpi">beam_rpi</h1>
<p>Beam library for raspberry pi, porthed from original code by<br />
<a href="http://www.hoverlabs.co">Hover Labs</a> by Ryan Shuttleworth, @rshuttle<script type="text/javascript">
</script><noscript>rshuttle at gmail dot com</noscript></p>
<h2 id="requirements">Requirements</h2>
<ul>
<li><a href="https://github.com/WiringPi/WiringPi">WiringPi</a> must be installed</li>
</ul>
<h2 id="usage">Usage</h2>
<p><code>sudo ./BeamDemo [options]</code></p>
<p><strong>Options:</strong></p>
<blockquote>
<p><code>-n [1-4] set the number of beams (defaults to 1)</code><br />
<code>-s [1-15] set the frame speed (defaults to 1, 15 is slowest)</code><br />
<code>-l [1-7] set the number of frame loops (defaults to 7)</code><br />
<code>-t "some text" display text on the beam</code><br />
<code>-f "some path" load and display a frames file</code><br />
<code>-h print this help</code></p>
</blockquote>
<p>To run a demo specify the -n [1-4] option or no options</p>
<h2 id="examples">Examples</h2>
<p><strong>Run Demo on 1 beam:</strong></p>
<blockquote>
<p><code>sudo ./BeamDemo</code></p>
</blockquote>
<p><strong>Run Demo on 2 beams:</strong></p>
<blockquote>
<p><code>sudo ./BeamDemo -n 2</code></p>
</blockquote>
<p><strong>Text on 1 beam:</strong></p>
<blockquote>
<p><code>sudo ./BeamDemo -t "my text here"</code></p>
</blockquote>
<p><strong>Text on 3 beams:</strong></p>
<blockquote>
<p><code>sudo ./BeamDemo -n 3 -t "my text here"</code></p>
</blockquote>
<p><strong>Custom frames:</strong></p>
<blockquote>
<p><code>sudo ./BeamDemo -f "./sample-frames.txt"</code></p>
</blockquote>
<p><strong>Custom frames on 3 beams:</strong></p>
<blockquote>
<p><code>sudo ./BeamDemo -n 3 -f "./sample-frames.txt"</code></p>
</blockquote>