Table of Contents

Class DigitalInput

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

Represents an operator that generates a sequence of digital state transitions from the specified Arduino input pin.

public class DigitalInput : Source<bool>
Inheritance
DigitalInput
Inherited Members

Properties

Pin

Gets or sets the digital input pin number from which to take readings.

PortName

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

Methods

Generate()

Configures the digital pin as INPUT and generates an observable sequence of all its state transitions.