Skip to main content

Class Extensions

Extension methods for T3 modules

Assembly: Temco.T3xxx.dll​
View Source​
Declaration
public static class Extensions

Methods​

CreateDigitalInputPort(T3xxxPin)​

Creates an IDigitalInputPort using the specified pin.

View Source​
Declaration
public static IDigitalInputPort CreateDigitalInputPort(this T3xxxPin pin)
Returns​

Meadow.Hardware.IDigitalInputPort: an IDigitalInputPort instance

Parameters​
TypeNameDescription
Meadow.Foundation.IOExpanders.T3xxxPinpinThe pin to use for the input port

CreateCurrentInputPort(IPin)​

Creates an ICurrentInputPort using the specified pin.

View Source​
Declaration
public static ICurrentInputPort CreateCurrentInputPort(this IPin pin)
Returns​

Meadow.Hardware.ICurrentInputPort

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin to use for the input port

CreateCounter(IPin)​

Creates a counter associated with the specified pin.

View Source​
Declaration
public static ICounter CreateCounter(this IPin pin)
Returns​

Meadow.Hardware.ICounter: An Meadow.Hardware.ICounter instance that can be used to count events on the specified pin.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin for which the counter is to be created. The pin must support digital input functionality.
Exceptions​

System.NotSupportedException
Thrown if the specified <code class="paramref">pin</code> does not support digital input.