Switch Class

Sets a digital output to on or off. The Arduino digital pin and values that represent on and off are configured in the firmware settings.

Definition

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

Properties

DurationLapsed Returns true if a previously set duration in seconds for the output has lapsed. Returns false otherwise. See OnForDuration(Single).
IsOn Returns true if the switch is set to On, false otherwise.

Methods

Off Switches off the digital output.
On Switches on the digital output.
OnForDuration Switches on the digital output for the specified duration in seconds.

See Also