How to make software voltage divider?

larryd:
You can use some fixed resistors in the divider which are shorted out with an opto fet.

Can you give me more details about please?