Table of Contents

Class DigitalInputReceivedEventArgs

Namespace
Bonsai.Arduino
Assembly
Bonsai.Arduino.dll

Provides data for the DigitalInputReceived event.

public class DigitalInputReceivedEventArgs : EventArgs
Inheritance
DigitalInputReceivedEventArgs
Inherited Members

Constructors

DigitalInputReceivedEventArgs(int, byte)

Initializes a new instance of the DigitalInputReceivedEventArgs class using the port number and port pin state received in the digital input message.

public DigitalInputReceivedEventArgs(int port, byte state)

Parameters

port int

The number identifying the digital port (i.e. collection of 8 pins) from which the state transition event originated.

state byte

The state of all the digital input pins in the specified port at the time the transition occurred.

Properties

Port

Gets the number identifying the digital port from which the event originated.

public int Port { get; }

Property Value

int

State

Gets the state of all the digital input pins in the specified port at the time the transition occurred.

public byte State { get; }

Property Value

byte