For some of you using command based programming, I noticed that the DigitalIOButton class wasn't working properly, so I programmed my own DigitalButton class using the very-functional DigitalInput class.
Code:
public class DigitalButton extends Button {
private int channel;
DigitalInput buttonInput;
public DigitalButton(int channel) {
this.channel = channel;
buttonInput = new DigitalInput(channel);
}
public int getChannel() {
return this.channel;
}
public boolean get() {
return buttonInput.get();
}
}