EES Stephen Perse Sixth Form
/
SRF05_HelloWorld
works
Fork of SRF05_HelloWorld by
Diff: main.cpp
- Revision:
- 3:1b2fffffb566
- Parent:
- 2:f9045153af1e
- Child:
- 4:87d6d45092c5
--- a/main.cpp Tue Nov 29 16:12:11 2016 +0000 +++ b/main.cpp Tue Nov 29 16:21:32 2016 +0000 @@ -14,7 +14,7 @@ while(1) { curval = srf.read(); percentage = 100-((curval-5)/range)*100; - printf ("Percentage Remaining: %.0f", percentage); + printf ("Percentage Remaining: %.0f (%.0f)\n\r", percentage, curval); wait(0.2); } } \ No newline at end of file