Skip to content

Commit 5642087

Browse files
committed
Fix typos on analogReadResolution page
Fixes arduino/Arduino#6528
1 parent 105dee6 commit 5642087

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Language/Functions/Zero, Due, MKR Family/analogReadResolution.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ subCategories: [ "Zero, Due & MKR Family" ]
1717

1818
[float]
1919
=== Description
20-
analogReadResolution() is an extension of the Analog API for the Arduino Due.
20+
analogReadResolution() is an extension of the Analog API for the Arduino Due, Zero and MKR Family.
2121

22-
Sets the size (in bits) of the value returned by analogRead(). It defaults to 10 bits (returns values between 0-1023) for backward compatibility with AVR based boards.
22+
Sets the size (in bits) of the value returned by `analogRead()`. It defaults to 10 bits (returns values between 0-1023) for backward compatibility with AVR based boards.
2323

24-
The *Due, Zero and MKR Family* boards have 12-bit ADC capabilities that can be accessed by changing the resolution to 12. This will return values from analogRead() between 0 and 4095.
24+
The *Due, Zero and MKR Family* boards have 12-bit ADC capabilities that can be accessed by changing the resolution to 12. This will return values from `analogRead()` between 0 and 4095.
2525
[%hardbreaks]
2626

2727

@@ -32,7 +32,7 @@ The *Due, Zero and MKR Family* boards have 12-bit ADC capabilities that can be a
3232

3333
[float]
3434
=== Parameters
35-
`bits`: determines the resolution (in bits) of the value returned by `analogRead()` function. You can set this 1 and 32. You can set resolutions higher than 12 but values returned by `analogRead()` will suffer approximation. See the note below for details.
35+
`bits`: determines the resolution (in bits) of the value returned by the `analogRead()` function. You can set this between 1 and 32. You can set resolutions higher than 12 but values returned by `analogRead()` will suffer approximation. See the note below for details.
3636

3737
[float]
3838
=== Returns
@@ -82,15 +82,15 @@ void loop() {
8282
Serial.print(", 8-bit : ");
8383
Serial.println(analogRead(A0));
8484
85-
// a little delay to not hog serial monitor
85+
// a little delay to not hog Serial Monitor
8686
delay(100);
8787
}
8888
----
8989
[%hardbreaks]
9090

9191
[float]
9292
=== Notes and Warnings
93-
If you set the `analogReadResolution()` value to a value higher than your board's capabilities, the Arduino will only report back at its highest resolution padding the extra bits with zeros.
93+
If you set the `analogReadResolution()` value to a value higher than your board's capabilities, the Arduino will only report back at its highest resolution, padding the extra bits with zeros.
9494

9595
For example: using the Due with `analogReadResolution(16)` will give you an approximated 16-bit number with the first 12 bits containing the real ADC reading and the last 4 bits *padded with zeros*.
9696

0 commit comments

Comments
 (0)