Skip to content

Commit 3414b73

Browse files
authored
Add analogReadResolution() docs (#631)
1 parent 3bcbb24 commit 3414b73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/analog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ int analogRead(pin_size_t pin = A0..A3)
1313
Returns a value from 0...4095 correspionding to the ADC reading
1414
of the specific pin.
1515

16+
void analogReadResolution(int bits)
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
Determines the resolution (in bits) of the value returned by the analogRead() function.
19+
Default resolution is 10bit.
20+
1621
float analogReadTemp()
1722
~~~~~~~~~~~~~~~~~~~~~~
1823
Returns the temperature, in Celsius, of the onboard thermal sensor.

0 commit comments

Comments
 (0)