I trying to add high voltage outputs to Arduino Due/Mega boards.
The idea would be to have an output with voltage between 0 and about 35 V with currents >=0.5 A.
That sounds like the specification for a programmable power supply. What's the application? For power electronics the first decision is analog v. switched, and for that you need to know what the load is.
Then what you are looking for is probably a "voltage programmed variable output linear power supply"...
If my memory serves me this may be an application for a chip like the LM317 plus an external
pass-transistor, using a DAC to set the programming voltage, but its been ages since I did anything
with a variable voltage regulator chip.
You are only wanting to source current? Most power supply designs assume no need to sink current.