<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>raspberry pi with piface</title><link>https://community.element14.com/products/raspberry-pi/f/forum/45047/raspberry-pi-with-piface</link><description>I have had not been able to get it working run all the programmed as explained in the quick start guild I wont to use the button on the piface to control two motors i have downloaded the wiring-pi program sudo nano etc/modprode.d/raspi-blacklist.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Thu, 27 Feb 2014 20:54:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/products/raspberry-pi/f/forum/45047/raspberry-pi-with-piface" /><item><title>RE: raspberry pi with piface</title><link>https://community.element14.com/thread/46833?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 20:54:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:91f8637b-d195-492a-811b-39a714b557f9</guid><dc:creator>iagorubio</dc:creator><description>&lt;p style="margin:0;"&gt;Checkout you are using the full path the the file:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Instead of &amp;quot;&lt;span style="color:#333333;font-family:Verdana;font-size:12px;"&gt;sudo nano etc/modprode.d/raspi-blacklist.conf&amp;quot;&lt;/span&gt; try :&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#333333;font-family:Verdana;font-size:12px;"&gt;sudo nano /etc/modprode.d/raspi-blacklist.conf&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#333333;font-family:Verdana;font-size:12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#333333;font-family:Verdana;font-size:12px;"&gt;The &amp;quot;/&amp;quot; at the start of the file&amp;#39;s path is important because it means to start searching for that file from the root directory. Without it it means to start searching for that file from current directory.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#333333;font-family:Verdana;font-size:12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#333333;font-family:Verdana;font-size:12px;"&gt;I am sorry but I don&amp;#39;t fully understand the other questions, but just as a pointer, every Python script you run in idle, can be run outside of idle.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;To download pyface emulator the best way is to boot your raspberry, log into it by ssh or plug a keyboard and screen to it, and on a terminal use the commands:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;code style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;"&gt;sudo apt-get update&lt;br /&gt;sudo apt-get upgrade&lt;br /&gt;&lt;/code&gt;&lt;code style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;"&gt;sudo apt-get install python{,3}-pifacedigitalio&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-external-small" href="https://github.com/piface/pifacedigitalio" rel="nofollow ugc noopener" target="_blank" title="https://github.com/piface/pifacedigitalio"&gt;https://github.com/piface/pifacedigitalio&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;You don&amp;#39;t need the emulator for the &lt;span style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;"&gt;pifacedigitalio&lt;/span&gt; library to work, but you can easily install it with the same method but with those commands:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;code style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;"&gt;sudo apt-get update&lt;br /&gt;sudo apt-get upgrade&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;code style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;"&gt;&lt;/code&gt;&lt;span style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;line-height:1.5em;"&gt;sudo apt-get install python3-pifacedigital-emulator&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;line-height:1.5em;"&gt;&lt;a class="jive-link-external-small" href="https://github.com/piface/pifacedigital-emulator" rel="nofollow ugc noopener" target="_blank"&gt;https://github.com/piface/pifacedigital-emulator&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:Consolas, &amp;#39;Liberation Mono&amp;#39;, Courier, monospace;font-size:12px;line-height:1.5em;"&gt;Usually for the buttons to make anything you need to write a program that reads the inputs from the buttons and makes something with this inputs.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;As example from the reference &lt;a class="jive-link-external-small" href="http://piface.github.io/pifacedigitalio/reference.html" rel="nofollow ugc noopener" target="_blank" title="http://piface.github.io/pifacedigitalio/reference.html"&gt;Reference — PiFace Digital I/O 3.0.5 documentation&lt;/a&gt; :&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="k" style="color:#007020;font-weight:bold;"&gt;def&lt;/span&gt; &lt;span class="nf" style="color:#06287e;"&gt;print_flag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="gp" style="color:#c65d09;font-weight:bold;"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="k" style="color:#007020;font-weight:bold;"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="o" style="color:#666666;"&gt;.&lt;/span&gt;&lt;span class="n"&gt;interrupt_flag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="n" style="font-size:10pt;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="n" style="font-size:10pt;line-height:1.5em;"&gt;listener&lt;/span&gt;&lt;span style="font-size:10pt;line-height:1.5em;"&gt; &lt;/span&gt;&lt;span class="o" style="font-size:10pt;line-height:1.5em;color:#666666;"&gt;=&lt;/span&gt;&lt;span style="font-size:10pt;line-height:1.5em;"&gt; &lt;/span&gt;&lt;span class="n" style="font-size:10pt;line-height:1.5em;"&gt;pifacedigitalio&lt;/span&gt;&lt;span class="o" style="font-size:10pt;line-height:1.5em;color:#666666;"&gt;.&lt;/span&gt;&lt;span class="n" style="font-size:10pt;line-height:1.5em;"&gt;InputEventListener&lt;/span&gt;&lt;span class="p" style="font-size:10pt;line-height:1.5em;"&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="n"&gt;listener&lt;/span&gt;&lt;span class="o" style="color:#666666;"&gt;.&lt;/span&gt;&lt;span class="n"&gt;register&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi" style="color:#208050;"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pifacedigitalio&lt;/span&gt;&lt;span class="o" style="color:#666666;"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IODIR_ON&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;print_flag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="n"&gt;listener&lt;/span&gt;&lt;span class="o" style="color:#666666;"&gt;.&lt;/span&gt;&lt;span class="n"&gt;activate&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="p"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="p"&gt;This program should print something to standard output each time you press a button.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>