Skip to content

Commit adbd5ec

Browse files
authored
Merge pull request arduino#932 from jacobhylen/jacobhylen/hardware_exception-analogRead
Update Hardware Exception analogRead()
2 parents 5fb5498 + 03bedb2 commit adbd5ec

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Language/Functions/Analog IO/analogRead.adoc

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@ On ATmega based boards (UNO, Nano, Mini, Mega), it takes about 100 microseconds
2020

2121
[options="header"]
2222
|===================================================
23-
|Board |Operating voltage |Usable pins |Max resolution
24-
|Uno |5 Volts |A0 to A5 |10 bits
25-
|Mini, Nano |5 Volts |A0 to A7 |10 bits
26-
|Mega, Mega2560, MegaADK |5 Volts |A0 to A14 |10 bits
27-
|Micro |5 Volts |A0 to A11* |10 bits
28-
|Leonardo |5 Volts |A0 to A11* |10 bits
29-
|Zero |3.3 Volts |A0 to A5 |12 bits**
30-
|Due |3.3 Volts |A0 to A11 |12 bits**
31-
|MKR Family boards |3.3 Volts |A0 to A6 |12 bits**
23+
|Board |Operating voltage |Usable pins |Max resolution
24+
|UNO R3 |5 Volts |A0 to A5 |10 bits
25+
|UNO R4 (Minima, WiFi) |5 Volts |A0 to A5 |14 bits**
26+
|Mini |5 Volts |A0 to A7 |10 bits
27+
|Nano, Nano Every |5 Volts |A0 to A7 |10 bits
28+
|Nano 33 (IoT, BLE, RP2040, ESP32)|3.3 Volts |A0 to A7 |12 bits**
29+
|Mega, Mega2560, MegaADK |5 Volts |A0 to A14 |10 bits
30+
|Micro |5 Volts |A0 to A11* |10 bits
31+
|Leonardo |5 Volts |A0 to A11* |10 bits
32+
|Zero |3.3 Volts |A0 to A5 |12 bits**
33+
|Due |3.3 Volts |A0 to A11 |12 bits**
34+
|GIGA R1 |3.3 Volts |A0 to A11 |16 bits**
35+
|MKR Family boards |3.3 Volts |A0 to A6 |12 bits**
3236
|===================================================
3337

3438
*A0 through A5 are labelled on the board, A6 through A11 are respectively available on pins 4, 6, 8, 9, 10, and 12 +
35-
**The default `analogRead()` resolution for these boards is 10 bits, for compatibility. You need to use link:../../zero-due-mkr-family/analogreadresolution[analogReadResolution()] to change it to 12 bits.
39+
**The default `analogRead()` resolution for these boards is 10 bits, for compatibility. You need to use link:../../zero-due-mkr-family/analogreadresolution[analogReadResolution()] to change it to a higher resolution.
3640

3741
[%hardbreaks]
3842

@@ -43,7 +47,7 @@ On ATmega based boards (UNO, Nano, Mini, Mega), it takes about 100 microseconds
4347

4448
[float]
4549
=== Parameters
46-
`pin`: the name of the analog input pin to read from (A0 to A5 on most boards, A0 to A6 on MKR boards, A0 to A7 on the Mini and Nano, A0 to A15 on the Mega).
50+
`pin`: the name of the analog input pin to read from.
4751

4852

4953
[float]

0 commit comments

Comments
 (0)