cc
Embed:
(wiki syntax)
Show/hide line numbers
Exercice_1.cpp
00001 /* // Reads input through the ADC, 00002 // and transfers to PC terminal 00003 #include "mbed.h" 00004 Serial pc(USBTX, USBRX); 00005 AnalogIn Ain(p20); 00006 float ADCdata; 00007 int main() { 00008 pc.printf("ADC Data Values... \n\r"); 00009 while (1) { 00010 ADCdata=Ain.read(); 00011 pc.printf("%f \n\r",ADCdata); 00012 wait (0.5); 00013 } 00014 } */
Generated on Wed Jul 13 2022 07:32:21 by
1.7.2