Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BCCA10B75 for ; Fri, 17 Apr 2015 10:18:56 +0000 (UTC) Received: (qmail 81024 invoked by uid 500); 17 Apr 2015 10:18:56 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 80972 invoked by uid 500); 17 Apr 2015 10:18:56 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 80963 invoked by uid 99); 17 Apr 2015 10:18:56 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 10:18:56 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 5F5B9AC00B5 for ; Fri, 17 Apr 2015 10:18:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r947997 - in /websites/production/camel/content: cache/main.pageCache raspberrypi.html Date: Fri, 17 Apr 2015 10:18:56 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150417101856.5F5B9AC00B5@hades.apache.org> 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 @@ -

Raspberry Pi (raspberrypi) Component

Available as of Camel 2.16+

The rbpi: component provides Raspberry Pi based endpoints for consuming GPIO Event. It can generates GPIO output event
The component uses the pi4j library.

Maven users will need to add the following dependency to their pom.xml for this component:

 

 

+

Raspberry Pi (raspberrypi) Component

Available as of Camel 2.16+ on Camel-extra-repository (in progress)

The rbpi: component provides Raspberry Pi based endpoints for consuming GPIO Event. It can generates GPIO output event
The component uses the pi4j library.

Maven users will need to add the following dependency to their pom.xml for this component:

 

-

 

URI format

The URI format to configure and manage PIN

+

URI format

The URI format to configure and manage PIN

 

Raspberry Option

 

NameTypeRequiredEnum ValuesDescription
idjava.lang.Stringtrue To configure the pin id (Pi4j index)
statecom.pi4j.io.gpio .PinState LOW
HIGH

To configure pin state :

if DIGITAL_INPUT then it is the event trigger state

if DIGITAL_OUTPUT then started state

modecom.pi4j.io.gpio.PinModetrue

DIGITAL_OUTPUT

DIGITAL_INPUT

PWM_OUTPUT

ANALOG_OUTPUT

ANALOG_INPUT

To configure GPIO pin mode

Check Pi4j library for more details

actionorg.apache.cam el.component.raspberrypi.PinAction 

TOGGLE

BUZZ

HIGH

LOW

HEADER

Default : use Body to if Action for ouput Pin (TOGGLE, BUZZ, HIGH, LOW for digital only) (HEADER digital and analog TODO)
valuedouble 0

To configure the started value

shutdownExportboolean trueTo configure the pin shutdown behavior
shutdownStatecom.pi4j.io.gpio.PinState LOW
HIGH
To configure the pin state value before exit
shutdownResistancecom.pi4j.io.gpio.PinPullResistance OFF
PULL_DOWN
PULL_UP
To configure the pin resistance before exit
pullResist ancecom.pi4j.io.gpio.PinPullResistance OFF
PULL_DOWN
PULL_UP

To configure the input pull resistance,

Avoid strange value for info http://en.wikipedia.org/wiki/Pull-up_resistor

typeorg.apache.camel.component.raspberrypi.RaspberryTypetrue

pin

i2c

spi

serial

pin : GPIO pi4j and wiringpi mapping,

i2c, spi, serial not yet available

 

Example :

Simple button w/ LED mode

Plug an button on GPIO 1, and LED on GPIO 2 (with Resistor) and code a route like this