getMode

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

DigitalIn.swift:139
func getMode() -> Mode

Returns

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