This example shows how to set a specified voltage level on analog output. In the example, voltage is repeatedly raised from 0V to VCC on the output pin in 0.1*VCC V increments. The voltage values are printed to console.
Note: Adjust the analog output pin name to your board specification.
MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.