Analog Class
Configures and reports analog inputs via Arduino pins A0 to A7.
Namespace: RoboTx.ApiAssembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
public sealed class Analog
Public NotInheritable Class Analog
[<SealedAttribute>]
type Analog = class end
- Inheritance
- Object Analog
A0 |
Gets the analog reading of pin A0 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A1 |
Gets the analog reading of pin A1 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A2 |
Gets the analog reading of pin A2 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A3 |
Gets the analog reading of pin A3 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A4 |
Gets the analog reading of pin A4 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A5 |
Gets the analog reading of pin A5 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A6 |
Gets the analog reading of pin A6 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
A7 |
Gets the analog reading of pin A7 whose value is between 0 and 1023 inclusive.
The pin must be enabled for analog input before values become available.
|
DisableInputsA |
Disables analog inputs whose sources are Arduino pins A0, A1, A2, A3, A4, A5, A6 and A7.
Digital inputs for the specified Arduino pins are also disabled.
|
EnableInputsA |
Enables analog inputs whose sources are Arduino pins A0, A1, A2, A3, A4, A5, A6 and A7.
The default sample rate is 10Hz.
A short delay may need to be implemented after a call to this method to allow analog values to start being received.
Enable only the input sources that are needed.
Digital inputs for the specified Arduino pins are disabled.
|
SetSampleRate |
Sets the rate at which the analog pins are sampled.
|
UseConverter |
Assigns a function to one or more analog inputs to convert the normal range of analog values from 0 to 1023,
to another range of values.
|