Skip to main content

Class DipSwitch

Represents a DIP-switch wired in a bus configuration, in which all switches are terminated to the same ground/common or high pin.

Assembly: Meadow.Foundation.dll
View Source
Declaration
public class DipSwitch

Properties

this[int]

Returns the ISwitch at the specified index.

View Source
Declaration
public ISwitch this[int i] { get; }

Switches

Returns the switch array.

View Source
Declaration
public ISwitch[] Switches { get; }

Methods

HandleSwitchChanged(int)

Event handler when switch value has been changed

View Source
Declaration
protected void HandleSwitchChanged(int switchNumber)
Parameters
TypeName
System.Int32switchNumber

Events

Changed

Raised when one of the switches is switched on or off.

View Source
Declaration
public event ArrayEventHandler Changed
Event Type

Meadow.Foundation.ArrayEventHandler