[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ecf-dev] Raspberry Pi GPIO Output and Input
- From: Scott Lewis <slewis@xxxxxxxxxxxxx>
- Date: Fri, 01 Aug 2014 15:26:51 -0700
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
As some of you know, I've been working on creating OSGi services for
accessing the GPIO pins on the Raspberry Pi. I've now got working both
a IGPIOPinOutput service interface (for controlling a single GPIO pin),
and Wim created a demo video of this .
Today I added IGPIOPinInputListener interface, to allow
callbacks/notifications when input happens on a given GPIO Pin.
The IGPIOPinInputListener uses the whiteboard pattern, where clients
register implementations of IGPIOPinInputListener, and are
asynchronously notified (handleInputEvent method called) when the input
changes on the desired pin.
I've created a short tutorial for this OSGi service API (Output and
Input) here . I may add a little more to it...please comment if you
feel this is necessary.
Next, I intend to create a new example that uses remote services to
export IGPIOPinOutput services for remote consumers, and possibly
creating an Eclipse-based UI to control the individual GPIO pins. If
others would like to contribute to this, or have suggestions of other
uses, please contact me and/or just respond publicly to this posting.