help
/
Info_2_TD
Diff: Partie_2/Exercice_5.cpp
- Revision:
- 0:4651c5d6ca1e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Partie_2/Exercice_5.cpp Thu Jun 25 16:30:18 2020 +0000 @@ -0,0 +1,16 @@ +/* +//Sawtooth waveform on DAC output to view on oscilloscope + +#include "mbed.h" +AnalogOut Aout(p18); +float i; +int main() { + while(1) + { + for (i=0;i<1;i=i+0.01) + { + Aout.write(i); + wait(0.001); + } + } +} */ \ No newline at end of file