read

Reads value from a digital input pin.

DigitalIn.swift:177
func read() -> Bool

Returns

true or false of the logic value.