Pull – defines the pull of a digital input pin

class digitalio.Pull

Enum-like class to define the pull value, if any, used while reading digital values in.

UP

When the input line isn’t being driven the pull up can pull the state of the line high so it reads as true.

DOWN

When the input line isn’t being driven the pull down can pull the state of the line low so it reads as false.