AnalogController Class

Definition

Base class for Analog Controllers. These control analog input pins.

public abstract class AnalogController : IDisposable
type AnalogController = class
    interface IDisposable
Public MustInherit Class AnalogController
Implements IDisposable
Inheritance
AnalogController
Implements

Constructors

AnalogController(PinNumberingScheme)

Initializes a new instance of the GpioController class that will use the specified numbering scheme and driver.

Properties

NumberingScheme

The numbering scheme used to represent pins provided by the controller.

PinCount

The number of pins provided by the controller.

VoltageReference

Reference voltage (the maximum voltage measurable). For some hardware, it might be necessary to manually set this value for the ReadVoltage() method to return correct values.

Methods

ClosePin(AnalogInputPin)

Closes the given pin

ConvertAnalogChannelNumberToPinNumber(Int32)

Convert logical pin to caller's pin numbering scheme.

ConvertLogicalNumberingSchemeToPinNumber(Int32)

Convert logical pin to caller's pin numbering scheme.

ConvertPinNumberToAnalogChannelNumber(Int32)

Convert the input pin number to an analog channel number. The analog channel number is typically named A0 - Axx on Arduino boards. E.g. on Uno and Nano boards, A0 equals digital pin 14.

ConvertPinNumberToLogicalNumberingScheme(Int32)

Convert the input pin number to logical pin numbers.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Disposes this instance

IsPinOpen(Int32)

Checks if a specific analog channel is open.

OpenPin(Int32)

Opens a pin in order for it to be ready to use.

OpenPinCore(Int32)

Overriden by derived classes: Returns an instance of the AnalogInputPin for the specified pin.

SupportsAnalogInput(Int32)

Returns true if the given pin supports analog input

Applies to