Go to advanced search

by cyberde
Wed Mar 27, 2013 7:14 am
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 14077

Re: Pi-Face + Java + Pi4J

Correct, just the button events are not firing (as well as the wire-connectors that go with them). The rest works perfectly. I've also done the apt-get update/upgrade last week, tonight when I get home I will do it again. But last time it didn't help. I also tried the firmware-update script availabl...
by cyberde
Tue Mar 26, 2013 6:27 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 14077

Re: Pi-Face + Java + Pi4J

It should initialize on the constructor of 'PiFaceDevice'. When I was working with mine, I never loaded any Python or Perl code, only Java. I can retest it on my system in a few days. -Robert That would be awesome. By the way, everything else works, leds, output pins, relays just not the buttons. I...
by cyberde
Sun Mar 24, 2013 3:09 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 14077

Re: Pi-Face + Java + Pi4J

I see, but it should work anyway right? I'm using the folowing code (very simple and removed a lot of stuff), basically it's like this: private final PiFaceSwitch SWITCH = PiFaceSwitch.S1; PiFace piface = new PiFaceDevice(PiFace.DEFAULT_ADDRESS, Spi.CHANNEL_0); piface.getSwitch(SWITCH).addListener(n...
by cyberde
Sun Mar 17, 2013 3:55 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 14077

Re: Pi-Face + Java + Pi4J

I am having some diffuculties with Pi4J and the PiFace, I've setup a listener on a switch which is working perfectly. But it seems like it's not always registering if the switchstate changed. For example when I press the switch I see that the state changes to LOW, which is perfect, but when I let go...

Go to advanced search