Table of Contents

Class AnalogOutput

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

Represents an operator that writes the sequence of numerical values to the specified Arduino output pin using PWM.

public class AnalogOutput : Sink<int>
Inheritance
AnalogOutput
Inherited Members

Properties

Pin

Gets or sets the digital output (PWM) pin number on which to write values.

public int Pin { get; set; }

Property Value

int

PortName

Gets or sets the name of the serial port used to communicate with the Arduino.

[TypeConverter(typeof(PortNameConverter))]
public string PortName { get; set; }

Property Value

string

Methods

Process(IObservable<int>)

Writes a sequence of int values to the specified Arduino output pin using PWM.

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

Parameters

source IObservable<int>

A sequence of int values to write into the specified Arduino output pin.

Returns

IObservable<int>

A sequence of the int 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 output pin mode to PWM.