Interface ICounterController
Contract for devices capable of creating ICounter
instances.
Assembly: Meadow.Contracts.dll
View Source
public interface ICounterController : IPinController
Methods
CreateCounter(IPin, InterruptMode)
Creates an ICounter
instance on the specified pin with the specified interrupt edge mode.
View Source
ICounter CreateCounter(IPin pin, InterruptMode edge)
Returns
Meadow.Hardware.ICounter: The created counter instance.
Parameters
Type | Name | Description |
---|---|---|
Meadow.Hardware.IPin | pin | The pin to create the counter on. |
Meadow.Hardware.InterruptMode | edge | The interrupt edge mode for the counter. |