
embedded system Q3
Revision 1:92cc47cc4e16, committed 2020-08-08
- Comitter:
- liammchale
- Date:
- Sat Aug 08 11:42:12 2020 +0000
- Parent:
- 0:0955f54a0564
- Commit message:
- replaced /n with/r
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0955f54a0564 -r 92cc47cc4e16 main.cpp --- a/main.cpp Sat Aug 08 11:34:11 2020 +0000 +++ b/main.cpp Sat Aug 08 11:42:12 2020 +0000 @@ -15,7 +15,7 @@ green = pot2; pot1value = pot1.read(); pot2value = pot2.read(); - pc.printf("pot1 = %.3f %.3fV | pot2 = %.3f %.3fV\n", pot1value, + pc.printf("pot1 = %.3f %.3fV | pot2 = %.3f %.3fV\r", pot1value, pot1value*3.3, pot2value, pot2value*3.3); //shows the current value of the poteniometers in the range 0-1, //also shows the voltage value