setChannelOutput

abstract suspend fun setChannelOutput(channel: Channel, isPinStateHigh: Boolean, updateProgress: suspend (progress: Progress) -> Unit = {})

Sets the output pin for a given channel. Following sensors are supported: SensorModel.IO_CONTROL_AS_OK_ALARM

Parameters

channel

Channel on which the output pin should be set

isPinStateHigh

If true then pin will be set to high state. Otherwise to low state.