Site updated at 2016-08-22 08:21:42 UTC
This commit is contained in:
parent
f9d65cbe57
commit
4acb07bf8e
559 changed files with 18878 additions and 21688 deletions
|
@ -89,20 +89,18 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The <code>rpi_gpio</code> switch platform allows you to control the GPIOs of your <a href="https://www.raspberrypi.org/">Raspberry Pi</a>.</p>
|
||||
<p>The <code class="highlighter-rouge">rpi_gpio</code> switch platform allows you to control the GPIOs of your <a href="https://www.raspberrypi.org/">Raspberry Pi</a>.</p>
|
||||
|
||||
<p>To use your Raspberry Pi’s GPIO in your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
<p>To use your Raspberry Pi’s GPIO in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">switch</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">rpi_gpio</span></span>
|
||||
<span class="key">ports</span>:
|
||||
<span class="key">11</span>: <span class="string"><span class="content">Fan Office</span></span>
|
||||
<span class="key">12</span>: <span class="string"><span class="content">Light Desk</span></span>
|
||||
<span class="key">invert_logic</span>: <span class="string"><span class="content">false</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">switch</span><span class="pi">:</span>
|
||||
<span class="s">platform</span><span class="pi">:</span> <span class="s">rpi_gpio</span>
|
||||
<span class="s">ports</span><span class="pi">:</span>
|
||||
<span class="s">11</span><span class="pi">:</span> <span class="s">Fan Office</span>
|
||||
<span class="s">12</span><span class="pi">:</span> <span class="s">Light Desk</span>
|
||||
<span class="s">invert_logic</span><span class="pi">:</span> <span class="s">false</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>Configuration variables:</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue