Table of Contents

Method Process

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

Process(IObservable<int>)

Writes a sequence of angular position values to control a servomotor connected to the specified Arduino output pin.

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

Parameters

source IObservable<int>

A sequence of int values specifying angular positions, in degrees from 0 to 180, used to control the servomotor connected to the specified Arduino output pin.

Returns

IObservable<int>

A sequence of int values containing the angular positions which have been used to control the servomotor connected to the specified Arduino output pin.

Remarks

This operator only subscribes to the source sequence after initializing the connection to the Arduino and configuring the digital pin as a Servo output.