Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 /*Program Example 5.1: Uses analog input to control LED brightness, through DAC output 00002 */ 00003 #include "mbed.h" 00004 AnalogOut Aout(p18); //defines analog output on Pin 18 00005 AnalogIn Ain(p20); //defines analog input on Pin 20 00006 00007 int main() { 00008 while(1) { 00009 Aout=Ain; //transfer analog in value to analog out, both are type float 00010 } 00011 } 00012
Generated on Sun Aug 7 2022 02:36:15 by
1.7.2