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 #include "mbed.h" 00002 Serial PC(PA_2,PA_3,115200); 00003 00004 AnalogOut Aout (PA_4); 00005 AnalogIn Ain (PC_1); 00006 float lectura; 00007 float i=0; 00008 00009 int main() { 00010 while(1) { 00011 for (i=0; i<1; i++){ 00012 Aout =1; 00013 lectura=Ain.read(); 00014 PC.printf("%1.0f \r\n",lectura); 00015 wait(0.5); 00016 } 00017 for (i=0; i<1; i++){ 00018 Aout =0; 00019 lectura=Ain.read(); 00020 PC.printf("%1.0f \r\n",lectura); 00021 wait(0.5); 00022 } 00023 } 00024 }
Generated on Fri Aug 19 2022 08:54:58 by
1.7.2