Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents an analog input
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT.Hardware..::..AnalogInput
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Class AnalogInput _
Implements IDisposable
public class AnalogInput : IDisposable
public ref class AnalogInput : IDisposable
type AnalogInput =
class
interface IDisposable
end
public class AnalogInput implements IDisposable
The AnalogInput type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
AnalogInput(Cpu. . :: . .AnalogChannel) | Initializes a new instance of the AnalogInput class with the specified channel. |
![]() |
AnalogInput(Cpu. . :: . .AnalogChannel, Int32) | Initializes a new instance of the AnalogInput class with the specified channel and precision. |
![]() |
AnalogInput(Cpu. . :: . .AnalogChannel, Double, Double, Int32) | Initializes a new instance of the AnalogInput class with the specified channel, scale, offset, and precision. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Offset | Gets or sets a constant factor to apply to the raw sensor reading before the value is returned. |
![]() |
Pin | Gets the GPIO pin for the channel. |
![]() |
Precision | Gets the precision in bits for this channel. |
![]() |
Scale | Gets or sets a multiplicative factor to apply to the raw sensor reading before the value is returned. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Dispose | Releases the resources used by this AnalogInput object. |
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Releases the resources used by this AnalogInput object before it is reclaimed by the garbage collector. (Overrides Object. . :: . .Finalize() () () ().) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() |
Initialize | Sets initial values for the AnalogInput object. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
Read | Reads from the analog port. |
![]() |
ReadRaw | Reads from the AnalogInput and returns the raw reading. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)
.gif)