AnalogOut Hello World

Dependencies:   mbed

Use

The AnalogOut API is used to convert a digital number to an analog value. The output value is set as a percentage of the supply voltage. The percentage is specified as a floating point number between 0 to 1. This example demonstrates a ramp from 0 to 1 in 10% increments.

Note

Not all boards support analog output. The board must have a Digital to Analog Converter (DAC) to use the API. The compiler will throw a warning if the AnalogOut API is not available for a target board. Alternatively the target platform will list its components on the Platforms page.

API

API reference.

Import librarymbed

No documentation found.

History

removed print statement default tip

2014-09-22, by mbedAustin [Mon, 22 Sep 2014 20:19:09 +0000] rev 4

removed print statement


added comment for clarity

2014-09-22, by mbedAustin [Mon, 22 Sep 2014 20:07:32 +0000] rev 3

added comment for clarity


added comment on what program does

2014-09-21, by mbedAustin [Sun, 21 Sep 2014 19:13:01 +0000] rev 2

added comment on what program does


updated libs

2014-09-21, by mbedAustin [Sun, 21 Sep 2014 19:10:53 +0000] rev 1

updated libs


First commit

2013-02-22, by mbed_official [Fri, 22 Feb 2013 13:22:54 +0000] rev 0

First commit