Outputting a voltage

With PWM, 0 would correspond to 0, 128 to ~2.5V, and 255 to 5V.