Table of Contents

Method Process

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

Process(IObservable<bool>)

Writes a sequence of binary states to the specified Arduino digital output pin.

public override IObservable<bool> Process(IObservable<bool> source)

Parameters

source IObservable<bool>

A sequence of bool values used to update the state of the specified Arduino output pin. If a value in the sequence is true, the pin will be set to HIGH; otherwise, the pin will be set to LOW.

Returns

IObservable<bool>

A sequence of the bool values which have been written into the Arduino output pin.

Remarks

This operator only subscribes to the source sequence after initializing the connection to the Arduino and configuring the digital pin mode to OUTPUT.