AnalogController.ConvertPinNumberToAnalogChannelNumber(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public virtual int ConvertPinNumberToAnalogChannelNumber (int pinNumber);
abstract member ConvertPinNumberToAnalogChannelNumber : int -> int
override this.ConvertPinNumberToAnalogChannelNumber : int -> int
Public Overridable Function ConvertPinNumberToAnalogChannelNumber (pinNumber As Integer) As Integer
Parameters
- pinNumber
- Int32
Pin number
Returns
Analog channel number. Returns -1 if the given pin does not support analog input
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for