PulseCounter Class

Configures and calculates period of input pulses on configurable Arduino pin, as defined in the RoboTx firmware settings (default is A2). This feature is only available in the Education Edition of the RoboTx API.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
C#
public sealed class PulseCounter
Inheritance
Object    PulseCounter

Properties

Period Gets the pulse period (in milliseconds) reported by the pulse counter. Pulse counter must be enabled before values become available.

Methods

Disable Disables the pulse counter.
Enable Initializes and enables the pulse counter. Used for measuring pulses applied to a designated input pin defined. Max pulse frequency 500hz. Inputs on A2 will not be registered as events whilst pulse counting is enabled.

See Also