Skip to content

Allow to configure the bit-depth of the adc.#5

Open
ensonic wants to merge 7 commits into
Nyanyan:masterfrom
ensonic:master
Open

Allow to configure the bit-depth of the adc.#5
ensonic wants to merge 7 commits into
Nyanyan:masterfrom
ensonic:master

Conversation

@ensonic
Copy link
Copy Markdown

@ensonic ensonic commented Apr 29, 2025

The wiring library supports analogReadResolution() to e.g. specify 12 bits for some MCUs.

Stefan Sauer added 7 commits April 29, 2025 21:40
The wiring library supports analogReadResolution() to e.g. specify 12
bits for some MCUs.
* drop voltage param - this is not needed
* rename the variables to match the readme
* add more class member to extract static values
* configure the instance via constructor
* configure pins in begin()
* align variable names with README
* avoid all caps
* change all math to float, this is sufficient and faster.
* check return value of touch() to unsingled long to align with e.g.
  millis()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant