![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
An example program driving the AnalogOut. Connect a pair of earphones!
Dependencies: mbed
Fork of app-board-AnalogOut by
main.cpp
- Committer:
- chris
- Date:
- 2012-10-16
- Revision:
- 0:1a38bf78f122
- Child:
- 1:754db1ff50f2
File content as of revision 0:1a38bf78f122:
#include "mbed.h" AnalogOut Aout(p18); AnalogIn pot1(p20); int main() { while(1) { for(float i=0.0; i<1.0; i+=0.1) { Aout = i; wait(0.00001+(0.0001*pot1.read())); } } }