Class DigitalInput
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.
public int Pin { get; set; }
Property Value
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
Methods
Generate()
Configures the digital pin as INPUT and generates an observable sequence of all its state transitions.
public override IObservable<bool> Generate()
Returns
- IObservable<bool>
A sequence of bool values that report the binary state transitions of the specified Arduino input pin: true if the pin is now HIGH; false if the pin is now LOW.