help
/
Info_2_TD
cc
Diff: Partie_2/Exercice_3.cpp
- Revision:
- 0:4651c5d6ca1e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Partie_2/Exercice_3.cpp Thu Jun 25 16:30:18 2020 +0000 @@ -0,0 +1,14 @@ +/* +#include "mbed.h" +int main() { + AnalogOut Sortie(p18); + while(1) { + Sortie.write(0.25); // 0.25*3.3V = 0.825V + wait(1); + Sortie.write(0.5); // 0.5*3.3V = 1.65V + wait(1); + Sortie.write(0.75); // 0.75*3.3V = 2.475V + wait(1); + } +} +*/ \ No newline at end of file