How to use diodes in microcontrollers to achieve different voltage outputs?

Using diodes with microcontrollers to achieve different voltage outputs is a simple and effective trick for low-cost, low-power designs…