I would like to use analogWrite with the Sparkfun Micro Pros with a higher PWM precision.
I see from the promicro data sheets that they seem to support 10 bit (on pins 5 and 6) and 16 bit resolution (on pins 9 and 10) (*unless I’m mis-reading these pdf’s?)…
https://cdn.sparkfun.com/assets/f/d/8/0 … 6MHzv2.pdf
https://cdn.sparkfun.com/assets/learn_t … oUSB-C.pdf
However, with the latest Boards Manager versions (*I am using version 1.1.13) – the analogWriteResolution does not appear to be settable.
You’ll get a compile error message: ‘analogWriteResolution’ was not declared in this scope
Looking at the board files in Library/Arduino15/packages/SparkFun/hardware/avr/1.1.13/variants/promicro
- I don’t see that you are setting the analog resolution anywhere for the promicro series
= Unlike the Adafruit Feather M0, where I see in its Boards Manager configuration
#define ADC_RESOLUTION 12
(and you can set analogWriteResolution with their boards)
Is there a configuration file change,
- or a newer beta boards manager version,
= that I can use to unlock the 10 bit (on pins 5 and 6) and 16 bit resolution (on pins 9 and 10) of the promicro series of boards?
My ideal would be to match the analogRead 10 bit precision with an analogWrite with the same 10 bit resolution.
It’s painful mapping an analog 10 bit input to a lower 8 bit resolution!
Thank you for you any insights you can offer.