camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r947997 - in /websites/production/camel/content: cache/main.pageCache raspberrypi.html
Date Fri, 17 Apr 2015 10:18:56 GMT
Author: buildbot
Date: Fri Apr 17 10:18:55 2015
New Revision: 947997

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/raspberrypi.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/raspberrypi.html
==============================================================================
--- websites/production/camel/content/raspberrypi.html (original)
+++ websites/production/camel/content/raspberrypi.html Fri Apr 17 10:18:55 2015
@@ -85,14 +85,14 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="RaspberryPi-RaspberryPi(raspberrypi)Component">Raspberry
Pi (raspberrypi) Component</h2><p><strong>Available as of Camel 2.16+</strong></p><p>The
<strong>rbpi:</strong> component provides&#160;Raspberry Pi based <a shape="rect"
href="https://cwiki.apache.org/confluence/display/CAMEL/Endpoint">endpoints</a> for
consuming GPIO Event. It can generates GPIO output event<br clear="none"> The component
uses the <a shape="rect" class="external-link" href="http://pi4j.com/" rel="nofollow">pi4j</a>
library.</p><p>Maven users will need to add the following dependency to their
<code>pom.xml</code> for this component:</p><p>&#160;</p><div
class="container" title="Hint: double-click to select code"><p>&#160;</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+<div class="wiki-content maincontent"><h2 id="RaspberryPi-RaspberryPi(raspberrypi)Component">Raspberry
Pi (raspberrypi) Component</h2><p><strong>Available as of Camel 2.16+ on
Camel-extra-repository (in progress)<br clear="none"></strong></p><p>The
<strong>rbpi:</strong> component provides&#160;Raspberry Pi based <a shape="rect"
href="https://cwiki.apache.org/confluence/display/CAMEL/Endpoint">endpoints</a> for
consuming GPIO Event. It can generates GPIO output event<br clear="none"> The component
uses the <a shape="rect" class="external-link" href="http://pi4j.com/" rel="nofollow">pi4j</a>
library.</p><p>Maven users will need to add the following dependency to their
<code>pom.xml</code> for this component:</p><p>&#160;</p><div
class="container" title="Hint: double-click to select code"><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-raspberrypi&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;]]></script>
-</div></div><p>&#160;</p></div><h3 id="RaspberryPi-URIformat">URI
format</h3><p>The URI format to configure and manage PIN</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div></div><h3 id="RaspberryPi-URIformat">URI format</h3><p>The
URI format to configure and manage PIN</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[raspberrypi://type:id?mode={output}&amp;action={action}...
 raspberrypi:type:id[?options]]]></script>
 </div></div><div class="syntaxhighlighter nogutter java"><p>&#160;</p></div><h3
id="RaspberryPi-RaspberryOption">Raspberry Option</h3><p>&#160;</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th
colspan="1" rowspan="1" class="confluenceTh">Required</th><th colspan="1" rowspan="1"
class="confluenceTh">Enum Values</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">id</td><td colspan="1" rowspan="1"
class="confluenceTd">java.lang.String</td><td colspan="1" rowspan="1" class="confluenceTd">true</td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd">To configure the pin id (Pi4j index)</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">state</td><td colspan="1" rowspan="1"
class="confluenceTd">com.pi4j.io.gpio
 .PinState</td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td
colspan="1" rowspan="1" class="confluenceTd"><strong>LOW</strong><br clear="none">HIGH</td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure pin state :</p><p>if
DIGITAL_INPUT then it is the event&#160;trigger state</p><p>if&#160;DIGITAL_OUTPUT
then started state</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">mode</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinMode</td><td
colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>DIGITAL_OUTPUT</strong></p><p>DIGITAL_INPUT</p><p>PWM_OUTPUT</p><p>ANALOG_OUTPUT</p><p>ANALOG_INPUT</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure GPIO pin mode</p><p>Check
Pi4j library for more details</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">action</td><td colspan="1" rowspan="1" class="confluenceTd">org.apache.cam
 el.component.raspberrypi.PinAction</td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td
colspan="1" rowspan="1" class="confluenceTd"><p>TOGGLE</p><p>BUZZ</p><p>HIGH</p><p>LOW</p><p>HEADER</p></td><td
colspan="1" rowspan="1" class="confluenceTd">Default : use Body to if Action for ouput
Pin (TOGGLE, BUZZ, HIGH, LOW for digital only) (HEADER digital and analog TODO)</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">value</td><td colspan="1" rowspan="1"
class="confluenceTd">double</td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td
colspan="1" rowspan="1" class="confluenceTd">0</td><td colspan="1" rowspan="1"
class="confluenceTd"><p>To configure the started value</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">shutdownExport</td><td colspan="1"
rowspan="1" class="confluenceTd">boolean</td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td
colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowsp
 an="1" class="confluenceTd">To configure the pin shutdown behavior</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">shutdownState</td><td colspan="1"
rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinState</td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>LOW</strong><br
clear="none">HIGH</td><td colspan="1" rowspan="1" class="confluenceTd">To configure
the pin state value before exit</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">shutdownResistance</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinPullResistance</td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><strong>OFF</strong><br clear="none">PULL_DOWN<br
clear="none">PULL_UP</td><td colspan="1" rowspan="1" class="confluenceTd">To
configure the pin resistance before exit</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">pullResist
 ance</td><td colspan="1" rowspan="1" class="confluenceTd">com.pi4j.io.gpio.PinPullResistance</td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd">OFF<br clear="none">PULL_DOWN<br clear="none"><strong>PULL_UP</strong></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure the input pull resistance,</p><p>Avoid
strange value for info <a shape="rect" class="external-link" href="http://en.wikipedia.org/wiki/Pull-up_resistor"
rel="nofollow">http://en.wikipedia.org/wiki/Pull-up_resistor</a></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">type</td><td colspan="1" rowspan="1"
class="confluenceTd">org.apache.camel.component.raspberrypi.RaspberryType</td><td
colspan="1" rowspan="1" class="confluenceTd">true</td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>pin</strong></p><p>i2c</p><p>spi</p><p>serial</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>pin : GPIO pi4j and wiringpi
  mapping,</p><p>i2c, spi, serial not yet available</p></td></tr></tbody></table></div><p>&#160;</p><h3
id="RaspberryPi-Example:">Example :</h3><h4 id="RaspberryPi-Simplebuttonw/LEDmode">Simple
button w/ LED mode</h4><p>Plug an button on GPIO 1, and LED on GPIO 2 (with Resistor)
and code a route like this</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">



Mime
View raw message