SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Make AnalogIn min/max compatible with ADC resolution changes #113

Open sofian opened 6 months ago

sofian commented 6 months ago

Ideally we should create a function that would return the resolution of the ADC but that would probably be hard. Some boards allow the change of the resolution, see: https://www.arduino.cc/reference/en/language/functions/analog-io/analogreadresolution/

... but there is no function that returns the resolution... so we need to figure that out on our own.