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.
Fork of PR2EJ10 by
main.cpp
00001 #include "mbed.h" 00002 #include "rtos.h" 00003 00004 AnalogIn Sw (PB_0); // pulsador conectado al pin A3 00005 00006 int main () 00007 { 00008 float leer; 00009 float ver; 00010 00011 while (1) { 00012 leer = Sw.read(); // lee el valor 00013 ver = leer * 3.3; // convierte el valor al rango 0-5V 00014 // mostrar valores 00015 printf("medida = %f = %f mV\n\r", leer, ver); 00016 wait(1.0); 00017 } 00018 }
Generated on Wed Jul 20 2022 18:43:12 by
1.7.2
