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
public class DipSwitch

Properties

this[int]

Returns the ISwitch at the specified index.

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

Switches

Returns the switch array.

View Source
public ISwitch[] Switches { get; }

Methods

HandleSwitchChanged(int)

Event handler when switch value has been changed

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

Events

Changed

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

View Source
public event ArrayEventHandler Changed
Event Type

Meadow.Foundation.ArrayEventHandler