Table of Contents

readanaloginput()

Function Definition: readanaloginput(pin = "A1")

Parameters

NameTypeDescriptionExpected ValuesDefault Value
pinstringThe specific pin number for which the analog reading is required."A1", "A2" or "A3""A1"

Description

The function reads the analog value of the sensors connected to the specified pin. The function returns the int value between 0 to 4096.

Pins Available:

  1. A1
  2. A2
  3. A3

Example

There are no examples documented for this article.