Skip to content

Ambiguous wording in analogReadResolution note re: setting higher resolution than supported #779

Open
@TimMathias

Description

@TimMathias

In the section "Notes and Warnings" there is ambiguous wording:

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.

Consider revising it to:

For example: using the Due with analogReadResolution(16) will give you an approximated 16-bit number with the most significant 12 bits containing the real ADC reading and the least significant 4 bits padded with zeros.

This would make it consistent with the wording of the following paragraph:

If you set the analogReadResolution() value to a value lower than your board’s capabilities, the extra least significant bits read from the ADC will be discarded.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions