Conversor ADC to RS232

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
franni
Date:
Mon Sep 16 14:55:00 2019 +0000
Parent:
0:a942d6b61747
Commit message:
ADC

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Sep 16 13:34:51 2019 +0000
+++ b/main.cpp	Mon Sep 16 14:55:00 2019 +0000
@@ -9,7 +9,7 @@
     while(1){
         valor_adc = lm35;
         temperatura= (valor_adc*3300/10);
-        rs232.printf("1.2f \n\r",temperatura);
+        rs232.printf("%1.2f \n\r",temperatura);
         wait(0.2);
 
     }