<p>In this series I cover how I listen to podcasts and how the process has changed over the years. In this episode I cover the 1st add-on board I purchased for one of my raspberry pi’s I then go on to explain what I do with it.</p>
<ul>
<li><p>Raspberry pi<br />
<a href="https://en.wikipedia.org/wiki/Raspberry_Pi" class="uri">https://en.wikipedia.org/wiki/Raspberry_Pi</a></p></li>
<li><p>Piface Digital IO, pictures and links<br />
<a href="https://www.piface.org.uk/products/piface_digital/" class="uri">https://www.piface.org.uk/products/piface_digital/</a><br />
<a href="https://www.piface.org.uk/products/piface_digital_2/" class="uri">https://www.piface.org.uk/products/piface_digital_2/</a><br />
Software Documentation <a href="https://piface.github.io/pifacedigitalio/" class="uri">https://piface.github.io/pifacedigitalio/</a></p></li>
<li>Command used to install the software &amp; libraries to use the Piface Digital IO board, command from companies website:</li>
</ul>
<pre><code>    sudo apt-get install python{,3}-pifacedigitalio</code></pre>
<p><img src="https://hackerpublicradio.org/eps/hpr2901/Picture-01.JPG" alt="Picture 1" /><br />
Picture 1, shows the Piface Digital IO board installed on top of my raspberry pi</p>
<p><img src="https://hackerpublicradio.org/eps/hpr2901/Picture-02.JPG" alt="Picture 2" /><br />
Picture 2, shows the extension board I built. The extension board increases the number of available LED’s and switches. The board is attached via a ribbon cable with the ends of the wire inserted into the green and orange screw down chocolate blocks attached to the Piface Digital IO board.</p>
<ul>
<li><p>Command to toggle between play and pause in moc is<br />
<code>mocp -G</code> or <code>mocp –toggle-pause</code><br />
moc man page <a href="https://www.mankier.com/1/mocp" class="uri">https://www.mankier.com/1/mocp</a><br />
moc homepage <a href="https://moc.daper.net/" class="uri">https://moc.daper.net/</a></p></li>
<li><p>Uptime man page <a href="https://linux.die.net/man/1/uptime" class="uri">https://linux.die.net/man/1/uptime</a></p></li>
</ul>
<h3 id="explanation-of-how-to-read-a-binary-display">Explanation of how to read a binary display</h3>
<p>The board I built which attaches to the Piface Digital board has a total of 8 LED’s. I use the 8 LED’s to display a number in binary format. In binary each LED has only two values either on or off, with 1 LED you can count to 1 with two LED’s you can count to 3. This may seem confusing if you’ve never dealt with binary before. Starting from the right each subsequent LED represents double the value of the previous one so the 1st LED has a value of 1 the 2nd LED has a value of 2, the third LED has a value of 4 and so on. See below</p>
<pre><code>LED Number   8   7   6   5  4  3  2  1
LED VALUES 128, 64, 32, 16, 8, 4, 2, 1</code></pre>
<p>LED on represents 1, LED off represents 0</p>
<p><code>[Example 1]    0   0   0   0  0  0  0  1  [Represented value 1]</code><br />
1st LED on value = 1</p>
<p><code>[Example 2]    0   0   0   0  0  0  1  1  [Represented value 3]</code><br />
1st and 2nd LED on, LED VALUE 1 + 2 = 3</p>
<p><code>[Examples 3]   0   0   0   0  1  0  1  0  [Represented value 10]</code><br />
2nd and 4th LED on, LED VALUE 2 + 8 = 10</p>
<p>With practice it gets easy to convert from binary to decimal, at my work we still have a very old computer which contains a front panel with LED’s and binary switches. To load the computer instructions must be loaded in binary using flip switches and LED’s with practice it becomes second nature.</p>
<h3 id="links">Links</h3>
<ul>
<li><p>Further information on binary numbers <a href="https://en.wikipedia.org/wiki/Binary_number" class="uri">https://en.wikipedia.org/wiki/Binary_number</a></p></li>
<li><p><code>df</code> man page (Disk Free) <a href="https://linux.die.net/man/1/df" class="uri">https://linux.die.net/man/1/df</a></p></li>
<li><p><code>aplay</code> man page <a href="https://linux.die.net/man/1/aplay" class="uri">https://linux.die.net/man/1/aplay</a></p></li>
</ul>
