[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] Raspberry Pi GPIO Output and Input

Hi Folks,

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 [1].

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 [2]. 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.

Thanks,

Scott

[1] https://www.youtube.com/watch?v=BtS_JDyiKkU&feature=youtu.be
[2] https://wiki.eclipse.org/Tutorial:_Raspberry_Pi_GPIO_with_OSGi_Services