Skip to main content

Interface ICounterController

Contract for devices capable of creating ICounter instances.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface ICounterController : IPinController

Methods

CreateCounter(IPin, InterruptMode)

Creates an ICounter instance on the specified pin with the specified interrupt edge mode.

View Source
Declaration
ICounter CreateCounter(IPin pin, InterruptMode edge)
Returns

Meadow.Hardware.ICounter: The created counter instance.

Parameters
TypeNameDescription
Meadow.Hardware.IPinpinThe pin to create the counter on.
Meadow.Hardware.InterruptModeedgeThe interrupt edge mode for the counter.