pullup resistor on digital sidecar

Sorry for this basic question, but I am sort of lost at this moment. How do the pull-up resistors function on the digital sidecar. I am well aware of how a pull-up resistor works. I would just like to know how to use it on the digital sidecar in java. I have found no constructors that set this for the class DigitalInput and I have found no methods for that class that do this. Does this need to be done on the digital sidecar itself or am I doing something horribly wrong in the code?

The pull-up resistor can’t be disabled/enabled in code. It is physically connected at all times.

You can test this by measuring the voltage on the SIG pin on any of the DIO on the sidecar. You’ll see it’s pulled up.

In terms of how to use it in Java, I always connect any switches between GND and SIG on the DIO. This takes advantage of the pull-up resistor, but the side-effect is that you will have reversed logic in your Java program.

When the switch is closed, the DIO will go to GND, and you’ll see a logical 0 (false).

When the switch is open, the DIO will be pulled-up, and you’ll see a logical 1 (true).

Thank you! Rep for you.