B4J Question PiFace Inputs 4-7

Noble

Member
Licensed User
Longtime User
I'm trying to read the additional inputs on the PiFace board using the jPi4J library (PiFace methods).

I can read the inputs 0-3 with events perfectly using pface.GetSwitch(0-3) ...Question How do I read the inputs 4-7 ?

I have tried using GpioPinDigitalInput ... with statements like pin4.Initialize("pin4",4) ..

Can someone point me to the solution? Thank you.
 

Noble

Member
Licensed User
Longtime User
If I use "device as PiFace", I can use GetLED(), GetRelay(), GetSwitch(), and all work perfectly. I can't seem to Get Input pins 4-7
If I use "device as GpioController", I can in fact read pins 0-7, Just not with the simplicity if PiFace Members like GetSwitch()

A member like GetInputs(0-7) would be very nice! ( Working just like GetSwitch() )

Or maybe an example? if it's there and I'm missing it.
Thank you for your response.
 
Upvote 0
Top