For everyone's additional info:
I've created, committed, pushed 3 projects now to the RaspberryPI
repo:
1) A 'GPIO pin service type' (IGPIOPin) API project, with just
two interfaces: IGPIOPin and IGPIOPinAsync. In the future, this
may very well have a GPIO controller service type added, but for
now it's keep it simple. This is in project
bundles/org.eclipse.ecf.raspberrypi.gpio.
2) A pi4j-based implementation of this GPIO Pin service, in
project bundles/org.eclipse.ecf.raspberrypi.gpio.pi4j. When
started, this bundle creates 20 IGPIOPin instances using pi4j
PinImpl underneath, and registers these 20 instances with the OSGi
service registry.
3) A very very simple test bundle, in project
test/bundles/org.eclipse.ecf.raspberrypi.test.gpio. All this
bundle does (for now) is create a ServiceTracker and report to
System.out any IGPIOPin instances registered, but I'll probably
hook up a light or something to one of the GPIO pins and try out
the pin.toggle() to make sure pi4j works as expected.
After I do some basic testing on an actual raspberry pi I intend
to use remote services to export the IGPIOPin services and run
some basic test code...probably using Eclipse as a remote service
consumer.
Any comments appreciated.
Scott
On 7/10/2014 2:25 PM, Scott Lewis wrote:
For everyone's info:
I just created a new 'RaspberryPi' repo at ECF's github
organization [1]. Just a couple of empty interfaces for the
moment (IGPIOController IGPIOPin), but we can use this project
to express and share service API designs as things evolve, and
we can also add new bundle projects for (e.g.) the host impl,
GPIO service consumers, apps, test code, etc.
Scott
[1] https://github.com/ECF/RaspberryPI
On 7/10/2014 10:52 AM, Wim Jongman wrote:
Sounds good to me. I will try this
implementation.
However, I will be off the grid for the next three weeks.
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ecf-dev
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ecf-dev
|