digitals module

digitals.digital(port)

Gets the current value of the digital port. Returns 1 if the switch is closed, 0 if the switch is open.

digitals.get_digital_output(port)

Gets the current digital mode. Returns 1 for output mode, 0 for input mode.

digitals.get_digital_pullup(port)

Gets the current digital pullup state. Returns 1 for active, 0 for inactive. (Deprecated: not applicable on the Wallaby)

digitals.get_digital_value(port)

Gets the current value of the digital port. Returns 1 if the switch is closed, 0 if the switch is open.

digitals.set_digital_output(port, out)

Sets the digital mode. Parameters: port: The port to modify. out: 1 for output mode, 0 for input mode.

digitals.set_digital_pullup(port, pullup)

Sets the current digital pullup state. Parameters: port: The port to modify. pullup: The pullup state (1 for active, 0 for inactive). (Deprecated: not applicable on the Wallaby)

digitals.set_digital_value(port, value)

Sets the value of the digital port in output mode. Parameters: port: The port to modify. value: The value to set (1 for high, 0 for low).