@@ -19,11 +19,27 @@ subCategories: [ "Analog I/O" ]
19
19
=== Description
20
20
Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options are:
21
21
22
+ Arduino AVR Boards (Uno, Mega, etc.)
23
+
22
24
* DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
23
25
* INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328P and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
24
26
* INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
25
27
* INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
26
28
* EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.
29
+
30
+ Arduino SAMD Boards (Zero, etc.)
31
+
32
+ * AR_DEFAULT: the default analog reference of 3.3V
33
+ * AR_INTERNAL: a built-in 2.23V reference
34
+ * AR_INTERNAL1V0: a built-in 1.0V reference
35
+ * AR_INTERNAL1V65: a built-in 1.65V reference
36
+ * AR_INTERNAL2V23: a built-in 2.23V reference
37
+ * AR_EXTERNAL: the voltage applied to the AREF pin is used as the reference
38
+
39
+ Arduino SAM Boards (Due)
40
+
41
+ * AR_DEFAULT: the default analog reference of 3.3V. This is the only supported option for the Due.
42
+
27
43
[%hardbreaks]
28
44
29
45
@@ -34,7 +50,7 @@ Configures the reference voltage used for analog input (i.e. the value used as t
34
50
35
51
[float]
36
52
=== Parameters
37
- `type`: which type of reference to use (DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, or EXTERNAL ).
53
+ `type`: which type of reference to use (see list of options in the description ).
38
54
39
55
[float]
40
56
=== Returns
0 commit comments