<?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/"><channel><title>Raspberry  plus 2 cartes PiFace</title><link>/products/raspberry-pi/b/blog/posts/raspberry-plus-2-cartes-piface</link><description>Bonjour,J&amp;#39;achet&amp;#233; 1 RaspRack et 2 cartes Piface,le PiRack est fait pour ajouter plusieurs cartes Piface (elles sont adressables en hardware de 0 &amp;#224; 3 par des cavaliers).Aucune notice ou exemple, pour commenter la partie software !J&amp;#39;ai donc install&amp;#233; les</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Raspberry  plus 2 cartes PiFace</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-plus-2-cartes-piface</link><pubDate>Thu, 24 Oct 2013 12:36:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5640cb10-7e84-4a61-9f0d-b6fa9ea6b19e</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;1. You can send the command using &lt;/p&gt;&lt;p&gt;&lt;tt class="descname"&gt;digital_write&lt;/tt&gt;(&lt;em&gt;pin_num&lt;/em&gt;, &lt;em&gt;value&lt;/em&gt;, &lt;em&gt;hardware_addr=0&lt;/em&gt;) i.e &lt;span class="n"&gt;pfio&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;digital_write&lt;/span&gt;&lt;span class="p"&gt;(0&lt;/span&gt;&lt;span class="p"&gt;,1&lt;/span&gt;&lt;span class="p"&gt;,1&lt;/span&gt;&lt;span class="p"&gt;); &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="p"&gt;Turn Led 1 ON on board number 2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="p"&gt;2. You can read the state of an Input&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;tt class="descname"&gt;digital_read&lt;/tt&gt;(&lt;em&gt;pin_num&lt;/em&gt;, &lt;em&gt;hardware_addr=0&lt;/em&gt;) i.e pfio.digital_read(0,1);&lt;/p&gt;&lt;p&gt;Read Input pin 1 on board number 2&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;See here for Examples &lt;a class="jive-link-external-small" href="http://piface.github.io/pifacedigitalio/example.html" rel="nofollow ugc noopener" target="_blank"&gt;http://piface.github.io/pifacedigitalio/example.html&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Hope that helps &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-5640cb10-7e84-4a61-9f0d-b6fa9ea6b19e/contentimage_5F00_1.png:16:16]&lt;/span&gt; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16823&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>