From c112377bfcdafe23fb9f477cd4de223fe507fcec Mon Sep 17 00:00:00 2001 From: Wulu Date: Mon, 29 Apr 2024 15:48:22 +0800 Subject: [PATCH] Add information about the UNO R4 to the documentation for analogReadResolution() --- Language/Functions/Analog IO/analogReadResolution.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Language/Functions/Analog IO/analogReadResolution.adoc b/Language/Functions/Analog IO/analogReadResolution.adoc index 8a935374e..56e6ebd08 100644 --- a/Language/Functions/Analog IO/analogReadResolution.adoc +++ b/Language/Functions/Analog IO/analogReadResolution.adoc @@ -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]