getInputMode

Gets the configuration of the internal pull-up and pull-down resistor on a specified input pin.

DigitalInOut.swift:177
func getInputMode() -> DigitalIn.Mode

Returns

The current input mode: .pullUp, .pullDown or .pullNone.