Skip to content

Add information about the UNO R4 to the documentation for analogReadResolution() #980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Language/Functions/Analog IO/analogReadResolution.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ subCategories: [ "Analog I/O" ]

[float]
=== Description
analogReadResolution() is an extension of the Analog API for the Zero, Due, MKR family, Nano 33 (BLE and IoT) and Portenta.
analogReadResolution() is an extension of the Analog API for the Zero, Due, MKR family, Nano 33 (BLE and IoT), UNO R4 (Minima and WiFi) and Portenta.

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.

The *Zero, Due, MKR family and Nano 33 (BLE and IoT)* 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. +
The *UNO R4 (Minima and WiFi)* boards have 14-bit ADC capabilities that can be accessed by changing the resolution to 14. This will return values from `analogRead()` between 0 and 16383. +
The *Portenta H7* has a 16 bit ADC, which will allow values between 0 and 65535.
[%hardbreaks]

Expand Down