Frank Girald
/
serialTXNucleo
Conversor ADC to RS232
Revision 1:8d0067d6d183, committed 2019-09-16
- 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 |
diff -r a942d6b61747 -r 8d0067d6d183 main.cpp --- 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); }