analogWriteResolution()
Set resolution of PWM used in analogWrite(). This allows to make smoother change of PWM than the default 256 steps. analogWriteResolution(resolution) resolution the number bits to use: 1–16 None Most popular resolutions are:resolution in bits | Description | range of values passed to analogWrite() |
8 (default) | Arduino Uno compatibility mode | 0–255 |
16 | maximum possible in Z-Uno | 0–65535 |