write(_:)

Sets the output value of the specific pin: true for high voltage and false for low voltage.

DigitalInOut.swift:249
func write(_ value: Bool)

Parameters

value

The output value: true or false.