What can Arduino MICRO input pins be used for?

The language has similarities to basic,
what is available in books or code for Arduino.

analogRead(pin)integer values range from 0 to 1023
analogWrite(pin,value) range from 0 to 255

So:
0 to 5v
Write limit = 256
5/256= 0.01953125v resolution

It can do what the op-amp does within limited resolution.

I understand the PWM output spending more time high for increasing voltage.
Is their an example code for Arduino input and output used as follower?
Any tricks to getting more resolution.

6 PWM outputs adds versatility
Still, Arduino is of interest!