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.
Namespace: RoboTx.ApiAssembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
public sealed class Switch
Public NotInheritable Class Switch
[<SealedAttribute>]
type Switch = class end
- Inheritance
- Object Switch
| 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.
|
| Off |
Switches off the digital output.
|
| On |
Switches on the digital output.
|
| OnForDuration |
Switches on the digital output for the specified duration in seconds.
|