help
/
Info_2_TD
cc
Diff: Partie_2/Exercice_1.cpp
- Revision:
- 0:4651c5d6ca1e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Partie_2/Exercice_1.cpp Thu Jun 25 16:30:18 2020 +0000 @@ -0,0 +1,14 @@ +/* // Reads input through the ADC, +// and transfers to PC terminal +#include "mbed.h" +Serial pc(USBTX, USBRX); +AnalogIn Ain(p20); +float ADCdata; +int main() { + pc.printf("ADC Data Values... \n\r"); + while (1) { + ADCdata=Ain.read(); + pc.printf("%f \n\r",ADCdata); + wait (0.5); + } +} */ \ No newline at end of file