I'd like to build a power supply for my desk. I've found a few projects based on the L200 adjustable voltage regulator.
In the example below, how could I replace R3 with a microcontroller, so that varying the current limit can be automated?

Likewise, how can R2/R1 be controlled?
Is there a better device for a task like this?